toribio

toribio

Aug 31st, 2009
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. if(strcmp(cmdtext, "/infoxiter", true) == 0) //By Hell
  2. {
  3.     new pname[MAX_PLAYER_NAME];
  4.     if(IsPlayerConnected(playerid))
  5.     {
  6.         if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] < 1)
  7.         {
  8.             SendClientMessage(playerid, COLOR_GREY, "Você não está autorizado a ultilizar este comando");
  9.             return 1;
  10.         }
  11.         SendClientMessage(playerid, COLOR_RED, "Exibindo informações dos xiters online");
  12.         for(new i = 0; i < MAX_PLAYERS; i++)
  13.         {
  14.             if(GetPlayerAmmo(i) == 69)
  15.             {
  16.                 GetPlayerName(i, pname, sizeof pname);
  17.                 format(string, sizeof string, "Cuidado, pois %s está com 69 de balas em sua arma e pode ser um xiter", pname);
  18.                 SendClientMessage(playerid, COLOR_RED, string);
  19.             }
  20.         }
  21.     }
  22.     return 1;
  23. }
Add Comment
Please, Sign In to add comment