Posts: 97
Threads: 34
Joined: Nov 2008
Reputation:
0
well, i find a old post about this question. the answer is no.
can i make player use higher price to use vending machine ?
Posts: 613
Threads: 11
Joined: Aug 2010
Reputation:
0
There isn't a function or a callback for that, but you can disable them.
Posts: 470
Threads: 10
Joined: Apr 2011
Reputation:
0
Get all positions of Sprunk Machines in San Andreas. Put them into an array. Use OnPlayerKeyStateChange to check if KEY_EXIT (or whatever it's called) is pressed and if it is pressed use IsPLayerInRangeOfPoint to scan through the array of Sprunk Machine positions, if they are near a Sprunk machine, deduct some money. However, this could be buggy, you'd have to use a very small radius in IsPlayerInRangeOFPoint.
Posts: 1,988
Threads: 17
Joined: Apr 2011
Reputation:
0
For the easy way, you can use OnPlayerKeyStateChange and check if player applying sprunk animation after pressing F (With timer) then you can set their health back (With PVar,or decrease player's health by 30) or stop the anomation (IDK this method work or not).