SA-MP Forums Archive
Range, 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: Range, HELP! (/showthread.php?tid=135559)



Range, HELP! - Assyria - 21.03.2010

Im using command

if(GetPlayerInterior(playerid)==10 && IsPlayerInRangeOfPoint(playerid,range,x,y,z)) {

if(GetPlayerInterior(playerid)==10 && IsPlayerInRangeOfPoint(playerid,,-1398.065307,-217.028900,1051.115844)) {

How can I know what is the range? (the position is a position of an interior.)


Regards,
Assyria



Re: Range, HELP! - Correlli - 21.03.2010

Use the range you like, like 10.0 - this means that the code will execute if player is in range of 10 (meters).