Advertisement
Guest User

Untitled

a guest
Feb 13th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement