Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.45 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <hamsandwich>
  4.  
  5. #define MAXPLAYERS 32
  6.  
  7. new bool:g_alive[MAXPLAYERS + 1]
  8.  
  9. public plugin_init()
  10.     RegisterHam(Ham_Spawn, "player", player_spawn, 1)
  11.  
  12. public player_spawn(client)
  13. {
  14.     new temp = cs_get_user_team(client)
  15.    
  16.     if(!is_user_alive(client) || temp < 2)
  17.         return
  18.    
  19.     if(X < 1)
  20.     {
  21.         att(client, 2)
  22.         return
  23.     }
  24.    
  25.     if(temp == 2)
  26.         att(client, 2)
  27.    
  28.     else if(temp == 3)
  29.         att(client, 3)
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement