14.05.2015, 22:04
PHP код:
CMD:r(playerid, params[])
{
new Classes[120];
new 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";
}
String("[RADIO][%s][%d]%s: %s", Classes[playerid],playerid,nome(playerid),params);
foreach(Player,i)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && GetPlayerTeam(playerid) == GetPlayerTeam(playerid))
{
SendClientMessage(i,cor_verdeclaro,string);
}
}
}
return 1;
}