18.12.2010, 19:12
(
Последний раз редактировалось blackwave; 18.12.2010 в 19:14.
Причина: Forgot to close pawn tag
)
This one works. I use this one: e_e
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(GetPlayerTeam(playerid) == GetPlayerTeam(i)) // Send message to all players of the player which typed: & + text
{
SendClientMessage(i,0x00FFFFFF,string);
return 0;
}
}
return 0;
}
return 0;
}