30.03.2013, 01:33
PHP код:
CMD:r(playerid, params [])
{
new
Str[120],
Nome[25],
Texto[125]
;
if (sscanf(params, "s[120]", Texto))
{
SendClientMessage(playerid, Branco, "Use: /r(бdio) [ Texto ]");
}
else
{
GetPlayerName(playerid, Nome, 25);
format(Str, sizeof(Str), "CHAT -> %s Diz: {88AA88}%s", Nome, Texto);
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, Str);
}
}
return 1;
}