11.08.2009, 00:13
Add this to your GM
pawn Код:
public OnPlayerText(playerid,text[])
{
if(text[0] == '@')
{
new string[128]; GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), "*Equip: %s: %s", string, text[1]);
printf("%s", string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string);
}
return 0;
}
return 1;
}