SA-MP Forums Archive
toll - 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: toll (/showthread.php?tid=197536)



toll - LegendNissanGTR - 09.12.2010

Hi,i wanted to make like a toll system but how do i make like there's a barrier and the player is behind the barrier when he stops then it -15 of his cash ad the barrier open how can i make it? without any commands?


Re: toll - Alex_Valde - 09.12.2010

You will need to use these functions:
- GivePlayerMoney
- MoveObject
- CreatePickup



Re: toll - LegendNissanGTR - 09.12.2010

Thanks =)


Re: toll - LegendNissanGTR - 09.12.2010

I mean was like the players isinrangeofpoint then it do GivePlayerMoney -15 then the barrier automatically opens when he pay the price without using a command


Re: toll - Scenario - 09.12.2010

Quote:
Originally Posted by LegendNissanGTR
Посмотреть сообщение
I mean was like the players isinrangeofpoint then it do GivePlayerMoney -15 then the barrier automatically opens when he pay the price without using a command
You would need to run a timer which loops through all players in your server (use foreach), then check if they are in-range.


Re: toll - Steven82 - 09.12.2010

Well if you have cash, im sure i would make this thing for you for maybe 5$ or less.


Re: toll - LegendNissanGTR - 09.12.2010

Oh cool maybe i will pay maybe only xD


Re: toll - [LHT]Bally - 03.09.2011

here just edit this to how you like, change its coordinates to where you like

http://forum.sa-mp.com/showthread.ph...04#post1382504


Re: toll - =WoR=Varth - 03.09.2011

Quote:
Originally Posted by [LHT]Bally
Посмотреть сообщение
here just edit this to how you like, change its coordinates to where you like

http://forum.sa-mp.com/showthread.ph...04#post1382504
Don't you realized it's 2010 topic?


Re: toll - Improvement™ - 03.09.2011

I would suggest OnPlayerKeyStateChange and IsPlayerInRangeOfPoint instead of using useless timers (No offence RealCop ) that makes it more complicated later on.