Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new RadioChat[128];
- CMD:r(playerid,params[])
- {
- if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /r [text] to talk in team radio");
- GetPlayerName(playerid, RadioChat, MAX_PLAYER_NAME);
- format(RadioChat, sizeof(RadioChat), "[R][Team Radio] %s: %s", RadioChat, params[0]);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(!IsPlayerConnected(i)) continue;
- if(gTeam[i] != gTeam[playerid]) continue;
- SendClientMessage(i, COLOR_GREEN, RadioChat);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment