P1xeL

shonpromen counts

Oct 13th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.50 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4.  
  5. new counts[33];
  6.  
  7. public plugin_init() {
  8.     register_plugin("Counts", "v1.0", "P1xeL`");
  9.    
  10.     register_logevent("RoundIsStart", 2, "1=Round_Start");
  11.    
  12.     register_clcmd("say /ds", "Function");
  13. }
  14.  
  15. public RoundIsStart() {
  16.     for(new i=1; i<=get_maxplayers(); i++)
  17.     {
  18.         counts[i] = 0;
  19.     }
  20.     return 1;
  21. }
  22.  
  23. public Function(id) {
  24.     if(cs_get_user_team(id) == CS_TEAM_CT || is_user_admin(id))
  25.         return counts[id]++ > 1 ? 1 : 0;
  26.    
  27.     return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment