Problem money - 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: Problem money (
/showthread.php?tid=456454)
Problem money -
ventilator1 - 06.08.2013
When i enter in the Pay n Spray to repair my car, i got -100$ for de paint car, but in 1 second it give me back the money +100$ .... Why?
Is same as MedicBill when i dye.
Re: Problem money -
Naruto_Emilio - 06.08.2013
Its like your using a server side money system try to search something like PlayerINfo[][cash or money], that only an example it could be different , then use PlayerInfo[playerid][Cash] = -100; in OnVEhcilePaint sorry for gramatical faults I am using a phone atm
Re: Problem money -
ThaCrypte - 06.08.2013
Well, on my RP server, i've made it like this:
I blocked the PNS with gates, and made a CMD spot infront of it.
Added IsPlayerNear etc etc. and in the end, people had to pay like 500 bucks to repair their car, by simply going to the Pickup infront of the PNS, type /fix and it got repaired :P
Re: Problem money -
Naruto_Emilio - 06.08.2013
Thats pretty unrealistic for RP servers as i said remove the gates detect if player is paint use the server side money or just create a custom new paint shop in another location and code it with realistic features this pretty easy if you need help pm me
Re: Problem money -
RajatPawar - 06.08.2013
https://sampforum.blast.hk/showthread.php?tid=360865
Use that, and then add 100$ first - to balance the total amount (-100$ by PNS as default and your 100$ making it +0$) and then finally subtract $500!
Re: Problem money -
ThaCrypte - 06.08.2013
Quote:
Originally Posted by Naruto_Emilio
Thats pretty unrealistic for RP servers as i said remove the gates detect if player is paint use the server side money or just create a custom new paint shop in another location and code it with realistic features this pretty easy if you need help pm me
|
Well, wasn't hardcore rp. but yeah.
Re: Problem money -
ventilator1 - 06.08.2013
I will try...
Re: Problem money -
ventilator1 - 06.08.2013
I can't... can samoeone help me
( i Can't find onplayerrespray or onplayerpaint
?
(
Re: Problem money -
ventilator1 - 06.08.2013
Someone?