30.03.2013, 01:37
Tenta ae..
PHP код:
CMD:r(playerid, params [])
{
new
xCelulas [ 120 ],
xNome [ 24 ],
xText [ 125 ]
;
if (sscanf(params, "s[120]", xText))
{
SendClientMessage(playerid, Branco, "Use: /r(бdio) [ Texto ]");
}
else
{
GetPlayerName(playerid, xNome, 24);
format(xCelulas, sizeof(xCelulas), "CHAT -> %s Diz: {88AA88}%s", xNome, xText);
new orgid = rCr[playerid][Organizacao] ;
new Cor = GetPlayerColor(playerid);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && rCr[i][Organizacao] == orgid) SendClientMessage(i, Cor, xCelulas);
}
}
return 1;
}