04.07.2014, 11:24
here you go
pawn Код:
CMD:f(playerid,params[])
{
new str[200],name[24];
GetPlayeName(playerid, name, 24);
format(str, sizeof(str), "{f0f000}[TEAM CHAT] {00cc00}%s : {ffffff}%s",name,params);
for(new i=0; i<=MAX_PLAYERS; i++)
{
If(!IsPlayerConnected(i))continue;
if(gteam[playerid] != gteam[i])continue;
SendClientMessage(i, -1, str);
}
return 1;
}