Advertisement
garfield

[FS]: Vida/ Colete para todos os players;

Oct 20th, 2012
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.08 KB | None | 0 0
  1. #include a_samp
  2.  
  3. public OnPlayerCommandText(playerid, cmdtext[]){
  4.  
  5.     if(!strcmp(cmdtext, "/vidatodos", true)){
  6.  
  7.         if(!IsPlayerAdmin(playerid)){
  8.             return SendClientMessage(playerid, -1, "Você não é administrador");
  9.         }
  10.        
  11.        
  12.         static
  13.             Interator
  14.         ;
  15.  
  16.         Interator = GetMaxPlayers();
  17.  
  18.         for( ; Interator > -1 ; --Interator){
  19.             if(IsPlayerConnected(Interator)){
  20.                 SetPlayerHealth(Interator, 100);
  21.             }
  22.         }
  23.  
  24.         SendClientMessageToAll(-1,"Um administrador deu vida há todos");
  25.         return true;
  26.     }
  27.  
  28.     if(!strcmp(cmdtext, "/coletetodos", true)){
  29.  
  30.         if(!IsPlayerAdmin(playerid)){
  31.             return SendClientMessage(playerid, -1, "Você não é administrador");
  32.         }
  33.  
  34.  
  35.  
  36.         static
  37.             Interator
  38.         ;
  39.  
  40.         Interator = GetMaxPlayers();
  41.  
  42.         for( ; Interator > -1 ; --Interator){
  43.             if(IsPlayerConnected(Interator)){
  44.                 SetPlayerArmour(Interator, 100);
  45.             }
  46.         }
  47.  
  48.         SendClientMessageToAll(-1,"Um administrador deu colete há todos");
  49.         return true;
  50.     }
  51.    
  52.  
  53.  
  54.     return true;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement