Pay for Driving - 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: Pay for Driving (
/showthread.php?tid=552673)
Pay for Driving -
cyberlord - 25.12.2014
Hello can some1 tell my or give some guide how to make that u get money for driving for example police car or others ,
Re: Pay for Driving -
GuardedMerchant - 26.12.2014
Quote:
Originally Posted by cyberlord
Hello can some1 tell my or give some guide how to make that u get money for driving for example police car or others ,
|
I'll give you a guide on how to start the code.
You want to first Getvehiclemodel, and check if the player is in that vehicle, If so, Then you want to start a timer which will start timing how long player in the vehicle. and then once player exit vehicle, Giveplayercash.
I know its not much help, But tryna give you an Idea. I do hope this did help alittle.
Re: Pay for Driving -
cyberlord - 26.12.2014
Quote:
Originally Posted by GuardedMerchant
I'll give you a guide on how to start the code.
You want to first Getvehiclemodel, and check if the player is in that vehicle, If so, Then you want to start a timer which will start timing how long player in the vehicle. and then once player exit vehicle, Giveplayercash.
I know its not much help, But tryna give you an Idea. I do hope this did help alittle. 
|
yes i allready have police cars and everything now just need to add few more commands for police and make that they get some money for driving , i was thinking the same way as u do except do not give money when player exit just make variable to store those money lei earning and after day as example transfer those money to player bank account , for real i never used timers till now , i have searching on several gamemodes how they are done but i could find this on playerstatedriver , so they do this in other way
Re: Pay for Driving -
cyberlord - 26.12.2014
please give my som example or something how to start and how it done