daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (!strcmp(cmd, "/ma")) {
  2.  
  3.     if (PlayerInfo[playerid][pAdmin] == 0)
  4.         return false;
  5.        
  6.     tmp = strtok(cmdtext, idx);
  7.    
  8.     if (!strlen(tmp))
  9.         return SendClientMessage(playerid, COLOR_GRAD2, "USE: /ma [MENSAGEM]");
  10.        
  11.     new i, str[128], Float:Pos[3], myName[MAX_PLAYER_NAME];
  12.     GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  13.     GetPlayerName(playerid, myName, MAX_PLAYER_NAME);
  14.    
  15.     format (str, 128, "Administrador:%s - %s", myName, tmp);
  16.    
  17.     for ( i = 0; i < MAX_PLAYERS; ++i ) {
  18.    
  19.         if (IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 60.0, Pos[0], Pos[1], Pos[2]))
  20.             SendClientMessage(i, COLOR_YELLOW, str);
  21.     }
  22.     return 1;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top