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; }