Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:r(playerid, params[])
- {
- if(isnull(params)) return SendClientMessage(playerid, red, "Usage: /r < Text >");
- if(gTeam[playerid] == TEAM_COPS)
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(gTeam[i] == gTeam[playerid])
- {
- new str[500], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), " {FFFFFF}[{FF9933}RADIO{FFFFFF}] {FF9933}%s: {FFFFFF}%s", pName, params);
- SendClientMessage(i, 0xFF9933AA, str);
- }
- }
- else
- {
- SendClientMessage(playerid, -1, "{FF0000}[ {FFFFFF}* {FF0000}] You have your cop/army radio!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment