17.12.2010, 22:35
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '&')
{
new string[128],name[30];
GetPlayerName(playerid, name, 30);
format(string, sizeof(string), "CHAT: %s [ID: %d]: %s", name, playerid, text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[playerid][Team] == PlayerInfo[i][Team])
{
SendClientMessage(i,agua,string);
return 0;
}
}
return 0;
}
return 0;
}