SA-MP Forums Archive
licence help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: licence help (/showthread.php?tid=143926)



licence help - [SF]RobMob - 24.04.2010

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


Re: licence help - [HiC]TheKiller - 24.04.2010

Do checks using GetVehicleVelocity or find the function GetVehicleSpeed.


Re: licence help - IamNotKoolllll - 24.04.2010

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


Re: licence help - ScottCFR - 24.04.2010

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


Re: licence help - [SF]RobMob - 24.04.2010

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


Re: licence help - [HiC]TheKiller - 25.04.2010

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.


Re: licence help - IamNotKoolllll - 25.04.2010

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


Re: licence help - Correlli - 25.04.2010

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.


Re: licence help - eblood1 - 20.05.2010

removed


Re: licence help - Steven82 - 20.05.2010

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