SA-MP Forums Archive
Detecting 'general' floor. - 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: Detecting 'general' floor. (/showthread.php?tid=400568)



Detecting 'general' floor. - Kyle - 19.12.2012

Hi,

I want to find out how I detect If they're on a road or near a road.

I need this as I want to stop the bugs where you can go underground or be teled underground after surfing a car and falling off to then check if they've gone underground to then re-teleport them to the above ground level.

Some may say MapAndreas but if you was to check and it returns Z height of 120, that may be a massive building so how can you distinguish between real floor / roads and buildings.


Re: Detecting 'general' floor. - RedCrossER - 19.12.2012

Something with altitude?


Re: Detecting 'general' floor. - ikey07 - 19.12.2012

SetPlayerPosFindZ could help