Quote:
Originally Posted by ikey07
Here you go
pawn Код:
public OnPlayerUpdate(playerid) { new Float:x,Float:y,Float:z; GetPlayerPos(YOUR_NPC_ID,x,y,z); if(IsPlayerInRangeOfPoint(playerid,3.0,x,y,z)) { SendClientMessage(playerid,0xFFFFFFFF,"NPC Says: hello, Im NPC, what can I do for you?"); } return 1; }
|
Are you serious? that would spam your chatbox every 0.02 seconds or so.