SA-MP Forums Archive
Payments for 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: Payments for pay n sprays (/showthread.php?tid=650132)



Payments for pay n sprays - IndependentGaming - 21.02.2018

Hello, I have been looking around but couldn't find anything is it possible like the sprunk machines to let people pay when they enter a pay n spray? is there like a function to add to your gm ?


Re: Payments for pay n sprays - GaByM - 21.02.2018

https://pastebin.com/zX96D4dA


Re: Payments for pay n sprays - IndependentGaming - 21.02.2018

Quote:
Originally Posted by GaByM
Посмотреть сообщение
this is a filterscript or include ?


Re: Payments for pay n sprays - ISmokezU - 21.02.2018

Quote:
Originally Posted by SacrificeGaming
Посмотреть сообщение
this is a filterscript or include ?
Yeaah, No.

I think you would want to charge the player when he resprays the vehicle and not when he enter the Pay n' Spray.

PHP код:
public OnVehicleRespray(playeridvehicleidcolor1color2)
{
    
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 100); // $100 would be deducted when the player resprays the vehicle
    
return 1;




Re: Payments for pay n sprays - AstroPoid - 21.02.2018

It's hard thing to edit things over the main function of gta ,i'll give you some ideas. you can make one out of default places, for example , make an DynamicArea , x-y , x1-y1 , or a command , so when player he have to pay and car will be fixed and take money from them