20.02.2009, 18:42
pawn Код:
if(strfind(text[1], "#", true) != -1)
{
new Msg[256];
new PName[MAX_PLAYER_NAME];
strdel(cmdtext, 0, 7);
GetPlayerName(playerid, PName, sizeof(PName));
format(Msg, sizeof(Msg), "[TEAM CHAT] %s: %s", PName, cmdtext);
for(new i; i < GetMaxPlayers(); i++) if(FactionNum[playerid] == FactionNum[i]) SendClientMessage(i, 0x00FF00FF, Msg);
}

