#1

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?
Reply
#2

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

Thanks =)
Reply
#4

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
Reply
#5

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.
Reply
#6

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

Oh cool maybe i will pay maybe only xD
Reply
#8

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

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

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?
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)