12.12.2010, 15:31
I think that this code can solve your problem:
I hope that i have helped
pawn Код:
dcmd_c(playerid,params[])
{
new string[128],
new string2[128];
new name[30];
GetPlayerName(playerid, name, 30);
if (sscanf(params, "s",string2)) SendClientMessage(playerid, cinza, "/c <texto>");
format(string, sizeof(string),"%s [ID:%d]: %s", name, playerid, string2);
foreach (Player, i)
{
if(GetPlayerTeam(playerid) == GetPlayerTeam(i))
{
SendClientMessage(i, agua, string);
}
}
return 1;
}
I hope that i have helped
