SA-MP Forums Archive
Question Regarding Pay n Sprays - 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: Question Regarding Pay n Sprays (/showthread.php?tid=539598)



Question Regarding Pay n Sprays - MikeEd - 28.09.2014

Hi, searched alot about this couldn't find a good answer.

Is there any efficient way of changing pay n spray price?. OnVehicleRespray calls in mod shops so i didn't bother using that.

Help well be very much appreciated


Re: Question Regarding Pay n Sprays - [CG]Milito - 28.09.2014

I think it is not possible but....

An idea:

Get the player cash before they enter the Pay N Spray and store it in a variable.
Then, when the player exits the Pay N Spray give them their money back but add (+) or rest (-) to the desired ammount.

Hope it helps.


Re: Question Regarding Pay n Sprays - MikeEd - 28.09.2014

how would to figure out if player is inside a pns?


Re: Question Regarding Pay n Sprays - [CG]Milito - 29.09.2014

Use OnEnterExitModShop callback


Re: Question Regarding Pay n Sprays - MikeEd - 29.09.2014

But aren't they used for Mod shops?, like Trasnfender and such?


Re: Question Regarding Pay n Sprays - [CG]Milito - 29.09.2014

Maybe, Haven't used that callback

Another way would be using IsPlayerInRangeOfPoint, just get the coords of the Pay n Spray and play around with that function.