16.03.2013, 22:03
You see, i saw the code from below. The below one just does the same thing, instead it sends it to team chat.
I tried to remove the team chat, and just use it in normal chat.
I tried to remove the team chat, and just use it in normal chat.
pawn Код:
CMD:r(playerid, params[])
{
new text[128];
if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, C_GREY, "USAGE: /r [text]");
new string[128];
format(string, sizeof(string), "** %s %s [%d]: %s **", ClassName(playerid), Name(playerid), playerid, text);
foreach(Player, i)
{
if(gTeam[playerid] == gTeam[i])
{
SendClientMessage(i, C_RADIOBLUE, string);
}
}
return 1;
}