iPLEOMAX

Untitled

Dec 22nd, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. new RadioChat[128];
  2. CMD:r(playerid,params[])
  3. {
  4. if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /r [text] to talk in team radio");
  5. GetPlayerName(playerid, RadioChat, MAX_PLAYER_NAME);
  6. format(RadioChat, sizeof(RadioChat), "[R][Team Radio] %s: %s", RadioChat, params[0]);
  7.  
  8. for(new i = 0; i < MAX_PLAYERS; i++)
  9. {
  10. if(!IsPlayerConnected(i)) continue;
  11. if(gTeam[i] != gTeam[playerid]) continue;
  12. SendClientMessage(i, COLOR_GREEN, RadioChat);
  13. }
  14. return true;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment