18.02.2012, 23:11
I hope it will be useful for you:
pawn Код:
public OnPlayerText(playerid, text[])
{
if (text[0] == '@') {
text[0] = ' ';
new msg[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(msg, sizeof(msg), "[Team][%s]:%s", pName, text);
for (new i = 0; i < GetMaxPlayers(); i++) {
if (GetPlayerTeam(playerid) == GetPlayerTeam(i))
SendPlayerMessageToPlayer(i, playerid, msg);
}
return 0;
}
return 1;
}