14.05.2015, 22:17
PHP код:
CMD:r(playerid, params[])
{
new Classes[24], string[128];
if(gClasse[playerid] == SOLDADO) Classes = "assalto";
if(gClasse[playerid] == SNIPER) Classes = "sniper";
if(gClasse[playerid] == ENGENHEIRO) Classes = "engenheiro";
if(gClasse[playerid] == PILOTO) Classes = "piloto";
if(gClasse[playerid] == MEDICO) Classes = "suporte";
format(string, sizeof(string), "[RADIO][%s][%d]%s: %s", Classes, playerid, nome(playerid), params);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && GetPlayerTeam(i) == GetPlayerTeam(playerid))
{
SendClientMessage(i, 0x00FF80AA, string);
}
}
return 1;
}