PDA

View Full Version : Payments for pay n sprays


IndependentGaming
21/02/2018, 01:22 PM
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 ?

GaByM
21/02/2018, 01:31 PM
https://pastebin.com/zX96D4dA

IndependentGaming
21/02/2018, 01:47 PM
https://pastebin.com/zX96D4dA

this is a filterscript or include ?

ISmokezU
21/02/2018, 03:41 PM
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.

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 100); // $100 would be deducted when the player resprays the vehicle
return 1;
}

AstroPoid
21/02/2018, 03:46 PM
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