Advertisement
GaMeRFoReVeR

Deathrun TT Slay

Feb 15th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.69 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <cstrike>
  5.  
  6. #define PLUGIN "Deathrun Slay"
  7. #define VERSION "1.0"
  8. #define AUTHOR "Gamer"
  9.  
  10.  
  11. public plugin_init()
  12. {
  13.     register_plugin(PLUGIN, VERSION, AUTHOR)
  14.    
  15.     register_logevent("Round_End", 2, "1=Round_End")
  16. }
  17.  
  18. public Round_End()
  19. {
  20.     SlayTT()
  21. }
  22.  
  23. public SlayTT()
  24. {
  25.     new players[32]
  26.     new count, player
  27.    
  28.     get_players(players, count, "")
  29.    
  30.     for(new i = 0; i < count; i++)
  31.     {
  32.         player = players[i]
  33.        
  34.         if(is_user_alive(player))
  35.         {
  36.             switch(cs_get_user_team(player))
  37.             {
  38.                 case CS_TEAM_CT: return PLUGIN_CONTINUE
  39.                 case CS_TEAM_T: user_silentkill(player)
  40.             }
  41.         }
  42.     }
  43.     return PLUGIN_CONTINUE
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement