How to disable vending machine
#7

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.
Reply


Messages In This Thread
How to disable vending machine - by billy4601 - 31.07.2011, 22:31
Re: How to disable vending machine - by billy4601 - 31.07.2011, 22:37
Re: How to disable vending machine - by iggy1 - 31.07.2011, 22:41
Re: How to disable vending machine - by Macluawn - 31.07.2011, 22:44
Re: How to disable vending machine - by iggy1 - 31.07.2011, 22:46
Re: How to disable vending machine - by billy4601 - 31.07.2011, 22:51
Re: How to disable vending machine - by Famalamalam - 31.07.2011, 23:00
Re: How to disable vending machine - by =WoR=Varth - 01.08.2011, 01:14

Forum Jump:


Users browsing this thread: 1 Guest(s)