Transfender and Pay 'n' Spay help!!!!
#1

Fixed!
Reply
#2

You could check if the player loses $100 in a pay n spray, and check if they are in a pay n spray range. If they are, use your server-sided money function.
As for transfender, there's a function called OnVehicleMod I believe. Simply choose the component ID and charge the necessary price.
Reply
#3

Fixed!
Reply
#4

You could create a 1 sec timer or so, with a player loop, to check if a player is in range of a transfender or pay'n'spray with IsPlayerInRangeOfPoint, and then check if the player's money is lower than the server-side money, if so, set the server-side money to the player's money.
Reply
#5

Having a 1-second timer and checking their position, and comparing it can be intensive, and create lag. (It could maybe work using a threaded plugin, but SA-MP / PAWN isn't threaded.).

Just save vehicle modification / health data, and then when it changes, check if their health also has lost $100 or whatever(and also maybe near the according shop type).
Reply
#6

Fixed!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)