licence help
#1

I have made a little licence system where you half to pay for your licence then go out side and take the test every thing works fine but im wondering how to make it to make it if you go under or over a certen speed it would fail you bacsically i have it setup when you pay for the test it starts licencerunning = 1; if you need more code to help just ask
Reply
#2

Do checks using GetVehicleVelocity or find the function GetVehicleSpeed.
Reply
#3

Quote:
Originally Posted by [HiC
TheKiller [Stuntp.com] ]
Do checks using GetVehicleVelocity or find the function GetVehicleSpeed.
i have to say this ur not to helpful so far
Reply
#4

Check under OnPlayerUpdate for their velocity. Then if their LicenceRunning[playerid] == 1 and it goes under a velocity or over it sets LicenceRinning to 0 and you add the rest of your code
Reply
#5

thanks scott that gives me a good idea on what to do
Reply
#6

Quote:
Originally Posted by ScottCFR
Check under OnPlayerUpdate for their velocity. Then if their LicenceRunning[playerid] == 1 and it goes under a velocity or over it sets LicenceRinning to 0 and you add the rest of your code
I wouldn't recommend doing it on OnPlayerUpdate, it adds too much to the server load. Make a timer going every 1000 ms.

Quote:
Originally Posted by IamNotKoolllll
Quote:
Originally Posted by [HiC
TheKiller [Stuntp.com] ]
Do checks using GetVehicleVelocity or find the function GetVehicleSpeed.
i have to say this ur not to helpful so far
Your post wasn't helpful either.
Reply
#7

Quote:
Originally Posted by [HiC
TheKiller [Stuntp.com] ]
Quote:
Originally Posted by ScottCFR
Check under OnPlayerUpdate for their velocity. Then if their LicenceRunning[playerid] == 1 and it goes under a velocity or over it sets LicenceRinning to 0 and you add the rest of your code
I wouldn't recommend doing it on OnPlayerUpdate, it adds too much to the server load. Make a timer going every 1000 ms.

Quote:
Originally Posted by IamNotKoolllll
Quote:
Originally Posted by [HiC
TheKiller [Stuntp.com] ]
Do checks using GetVehicleVelocity or find the function GetVehicleSpeed.
i have to say this ur not to helpful so far
Your post wasn't helpful either.
on player update isnt that bad
Reply
#8

Quote:
Originally Posted by [HiC
TheKiller [Stuntp.com] ]I wouldn't recommend doing it on OnPlayerUpdate, it adds too much to the server load
..if you don't know how and what to use in that callback.
Reply
#9

removed
Reply
#10

Quote:
Originally Posted by eblood1
how do i activate my licence
What the hell?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)