npc help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: npc help (
/showthread.php?tid=178515)
npc help -
iJumbo - 22.09.2010
how to make if player is in range of npc ?
Re: npc help -
Desert - 22.09.2010
How it's made depends on if you want to put the code in the NPC script or the gamemode/filterscript
Which one?
Re: npc help -
Voldemort - 22.09.2010
Quote:
Originally Posted by gigi1223
how to make if player is in range of npc ?
|
You answered your own question, damn!!!
player is in range of npc = if(IsPlauerInRangeOfPoint(playerid,5.0,NPCX,NPCY,N PCZ))