30.08.2011, 17:44
pawn Код:
public OnPlayerText( playerid , text[] )
{
if(text[0] == ';')
{
for(new i; i < MAX_PLAYERS; i++)
{
new Float[3];
GetPlayerPos(playerid,p[0],p[1],p[2]);
if(IsPlayerInRangeOfPoint(i,20.0,p[0],p[1],p[2]))
{
new sStr[128];
GetPlayerName(playerid,sStr,23);
format(sStr,128,"%s (%i): %s",sStr,playerid,text[1]);
SendClientMessage(i,-1,sStr);
SetPlayerChatBubble(playerid,text[1],COLOR_WHITE,20,6000);
}
}
return true;
}
new string[128];
format(string,sizeof(string),"[ID:%d]:%s",playerid,text);
SendPlayerMessageToAll(playerid,string);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,10 0,6000);
return true;
}