SA-MP Forums Archive
Help with IsPlayerInRangeOfPoint - 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: Help with IsPlayerInRangeOfPoint (/showthread.php?tid=196306)



Help with IsPlayerInRangeOfPoint - Mehtab - 05.12.2010

can someone help what the first number describes in IsPlayerInRangeOfPoint . For example



if(IsPlayerInRangeOfPoint(playerid, 30, 1696.5543,-1053.4685,23.9063)). Please help me


Re: Help with IsPlayerInRangeOfPoint - dice7 - 05.12.2010

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint


Re: Help with IsPlayerInRangeOfPoint - Alex_Valde - 05.12.2010

That " 30 " is the range where some command or something will work .

Look here.


Re: Help with IsPlayerInRangeOfPoint - Mehtab - 05.12.2010

what is Float:range and how to know float:range


Re: Help with IsPlayerInRangeOfPoint - Alex_Valde - 05.12.2010

Float: range should be a decimal number( thats what the float means) like 7.0, or 8.56, or something like that.
You can't really know how much range you should put but try to think logical.

If you need to create some command like /enter to some unknown building. That command should work only in that small area for you to enter that building. So you should put something like 5.0 or 7.0. But if you want to create something what will have more range (I can't get any idea what command should that be, but you'll get the point) you should put range to something more. And of course you can always test it and see if it suits you