Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!strcmp(cmd, "/ma")) {
- if (PlayerInfo[playerid][pAdmin] == 0)
- return false;
- tmp = strtok(cmdtext, idx);
- if (!strlen(tmp))
- return SendClientMessage(playerid, COLOR_GRAD2, "USE: /ma [MENSAGEM]");
- new i, str[128], Float:Pos[3], myName[MAX_PLAYER_NAME];
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- GetPlayerName(playerid, myName, MAX_PLAYER_NAME);
- format (str, 128, "Administrador:%s - %s", myName, tmp);
- for ( i = 0; i < MAX_PLAYERS; ++i ) {
- if (IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 60.0, Pos[0], Pos[1], Pos[2]))
- SendClientMessage(i, COLOR_YELLOW, str);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement