SA-MP Forums Archive
[HELP]3 Warning. - 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)
+--- Thread: [HELP]3 Warning. (/showthread.php?tid=385696)



[HELP]3 Warning. - RenovanZ - 17.10.2012

Removed


AW: [HELP]3 Warning. - BiosMarcel - 17.10.2012

PHP код:
if(IsPlayerInRangeOfPoint(Id of a Player,Maximum Range between Point and Player,Float1,Float2,Float3)) 



Re : [HELP]3 Warning. - lelemaster - 17.10.2012

Код:
		if(IsPlayerInRangeOfPoint(playerid, DISTACE, X,Y,Z)) return 1;
Change X Y Z and DIASTANCE.

Here is a possibility but I don't know what is your variable in your enum:

if(IsPlayerInRangeOfPoint(playerid, 2, BusinessInfo[b][bposX],BusinessInfo[b][bPosY],BusinessInfo[b][bPoxZ])) return 1;

Don't forget to change bposX, bposY, bposZ for the good variable in your enum.

Edit: Damn you Marcel You answered before.


Re: [HELP]3 Warning. - RenovanZ - 17.10.2012

Removed


Re : [HELP]3 Warning. - lelemaster - 17.10.2012

You can make it 1 to 5 or more. It'is near enought.

Edit: Oh misunderstood your question, wait a sec.

Edit2: You cant look if he's near an interior, but you can check if he is near the exit. Check the players virtual world, if it's the same as you biz one, then you can get him out.


Re: [HELP]3 Warning. - RenovanZ - 17.10.2012

Removed


Re: [HELP]3 Warning. - frozen.iyan - 18.10.2012

1-5 range I think