13.02.2012, 01:42
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '#') {
new n[24],s[128],Float:Pos[3];
GetPlayerName(playerid,n,24);
format(s,128,"%s diz:s%",n,text[1]);
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
for(new i = 0 ; i < GetMaxPlayers(); i++) {
if(IsPlayerInRangeOfPoint(i,2,Pos[0],Pos[1],Pos[2])) {
SendClientMessage(i,-1,s);
}
}
}
return false;
}