DJWolf3

[LUA] Prophunt Code for Points2Shop

May 28th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.28 KB | None | 0 0
  1. local amount = 25;
  2. local hasWon = false
  3.  
  4. hook.Add( "PlayerDeath", "FeedMeMore", function( victim, weapon, killer )
  5.     if( IsValid( killer ) and IsValid( victim ) ) then
  6.         if( killer:IsPlayer() and victim:IsPlayer() ) then
  7.             if ( killer:Team() == ROLE_HUNTER and victim:Team() == ROLE_PROP ) then
  8.                 killer:PS_GivePoints( 25 );
  9.                 killer:PS_Notify("You've been given '25' Points for Killing that Prop, Nice shot!");
  10.             end;
  11.         end;
  12.     end;
  13. end )
  14. hook.Add("RoundEnd", "InComesTheAeroplane", function()
  15.     for k,v in pairs (team.GetPlayers(ROLE_PROP)) do
  16.         if(v:Alive) then
  17.             v:PS_GivePoints( 25 );
  18.             v:PS_Notify("You've been given '25' Points for Winning, Nice Spot!");
  19.             hasWon = true
  20.         end
  21.     end
  22.     if(hasWon) then
  23.         for k,v in pairs (team.GetPlayers(ROLE_PROP)) do
  24.             if(not v:Alive) then
  25.                 v:PS_Notify("You Died but Hey You Get Points!");
  26.                 v:PS_GivePoints( 10 );
  27.             end
  28.         end
  29.     end
  30. end)
  31.  
  32.  
  33. -- Coded in the official MS Notepad <3
  34. -- Re-coded partly in notepad++ makes a good combination, especially when a tab space does a 100 space leap
  35.  01001000 01101111 01110111 00100000 01110100 01101111 00100000 01101100 01110101 01100001 00100000 00110001 00110000 00110001
  36.  01001001 00100111 01101101 00100000 01100001 01101110 00100000 01101001 01100100 01101001 01101111 01110100
Advertisement
Add Comment
Please, Sign In to add comment