Need help with a Toll System - 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: Need help with a Toll System (
/showthread.php?tid=377489)
Need help with a Toll System -
UnknownGamer - 14.09.2012
Hi Guys,
I've just started to code my own server, instead of 'copying' idea's from different servers, Gonna add in a car-park toll system.
At the LSAP, How would I make it so when a car parks there for several hours, it charges playerid, for every hour there their?
I've mapped in fencing etc, and a gate, how do I charge for several hours? Would it be part of the Set Timer?
Re: Need help with a Toll System -
TaLhA XIV - 14.09.2012
Hmm,you have to use timers and IsPlayerInRangeOfPoint functions.
Re: Need help with a Toll System -
clarencecuzz - 14.09.2012
You would actually have to use GetVehicleDistanceFromPoint functions.
https://sampwiki.blast.hk/wiki/GetVehicleDistanceFromPoint