22.08.2011, 22:21
PHP код:
public OnPlayerText(playerid, text[])
{
if(text[0] == ';')
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
for(new i, p = GetMaxPlayers(); i < p; i++)
{
if(IsPlayerInRangeOfPoint(i, 9.0, Pos[0], Pos[1], Pos[2])) { SendClientMessage(i, 0xE31919FF, text); }
}
return 0;
}
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 80.0, 10000);
new sStr[128];
format(sStr, 128, "[ID:%d]: %s", playerid, text);
SendPlayerMessageToAll(GetPlayerColor(playerid),sStr);
return 0;
}