22.08.2011, 22:20
pawn Код:
public OnPlayerText(playerid, text[])
{
new tmp[128];
if(text[0] == ';')
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 9.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, 0xE31919FF, tmp);
}
}
}
return 1;
}
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 80.0, 10000);
format(string,sizeof(string),"[ID:%d]:%s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}