SA-MP Forums Archive
Sprunk Machines Pre-Coded? - 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: Sprunk Machines Pre-Coded? (/showthread.php?tid=124112)



Sprunk Machines Pre-Coded? - sidhu123 - 28.01.2010

Hello!

I'm just wondering, are the sprunk machines in the game precoded so you can buy a drink from them, or do you have to script it yourself for them to work? By script it yourself, I mean: get the positon and use a command or key to buy a drink.

Thank You!


Re: Sprunk Machines Pre-Coded? - Doppeyy - 28.01.2010

Its a standard samp function.
Just stand infront of them and press enter.

[Doppeyy


Re: Sprunk Machines Pre-Coded? - sidhu123 - 28.01.2010

Quote:
Originally Posted by ๔๏קקєyy
Its a standard samp function.
Just stand infront of them and press enter.

[Doppeyy
So I dont have to code that? And any clue if any money gets taken away and health gets re-gained?


Re: Sprunk Machines Pre-Coded? - Frankie_Siccaro - 28.01.2010

it takes 1 dollar and fills your health, I belive.


Re: Sprunk Machines Pre-Coded? - KevKo95 - 28.01.2010

Yes, it takes away $1 and gives about 30% health or so.


Re: Sprunk Machines Pre-Coded? - Doppeyy - 28.01.2010

Quote:
Originally Posted by Kevin Fallow / KevKo
Yes, it takes away $1 and gives about 30% health or so.
Agree.


Re: Sprunk Machines Pre-Coded? - sidhu123 - 28.01.2010

Any way I can change that dollar amount from $1 to like $2 and switch the health amount from 30% to like 5%?


Re: Sprunk Machines Pre-Coded? - J.W. - 28.01.2010

Yes actually.

You can check if a player is infront if a sprunk machine, if he is wait for him pressing enter or f and then take away 1 extra dollar, check the health he got before he pressed f/enter and set it to +5


Re: Sprunk Machines Pre-Coded? - Norn - 29.01.2010

Quote:
Originally Posted by [SAP
Sidhu ]
Any way I can change that dollar amount from $1 to like $2 and switch the health amount from 30% to like 5%?
Seif created an include for creating custom machines, sprunk and candy. Use that.


Re: Sprunk Machines Pre-Coded? - OKStyle - 03.02.2011

M... Here: http://forum.sa-mp.com/showpost.php?...03&postcount=9