21.12.2011, 01:33
pawn Код:
CMD:r(playerid, params[])
{
if (params[0]) return SendClientMessage(playerid,COLOR_TAN,"Usage: /r [Message]");
new pname[MAX_PLAYER_NAME],string[128];
GetPlayerName(playerid,pname,sizeof(pname));
if(GetPlayerTeam(playerid == TEAM_BLUE))
{
format(string,sizeof (string), "Radio: %s: %s",pname, params);
SendClientMessage(TEAM_BLUE, COLOR_TEAM_BLUE, string);
}
else if(GetPlayerTeam(playerid == TEAM_RED))
{
format(string, sizeof (string), "Radio: %s: %s",pname, params);
SendClientMessage(TEAM_RED, COLOR_TEAM_RED, string);
}
return 1;
}