30.03.2013, 01:36
pawn Код:
CMD:r(playerid, params []) {
new
Str[144],
Nome[20]
;
if (isnull(params))
return SendClientMessage(playerid, Branco, "Use: /r(бdio) [ Texto ]");
GetPlayerName(playerid, Nome, 20);
format(Str, sizeof(Str), "CHAT -> %s Diz: {88AA88}%s", Nome, params);
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 true;
}