SA-MP Forums Archive
Object spawn with button - 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: Object spawn with button (/showthread.php?tid=353496)



Object spawn with button - wpkchase - 23.06.2012

Welcome!
I say what I need and what I ask for your help!
30 sec after the start of the gamemode,
players of "5" key could spawn an explosive barrel behind them.
This can be used every 30 seconds.
$ 4,000 will be used occasionally.
Please help me I just can not figure it out.
Thank you in advance, for your help and your attention!


Re: Object spawn with button - Jonny5 - 23.06.2012

can you please re explain this i'm not really sure what you mean

players of key "5" ?
and the $4000 will be used?



i take it as
you want to let players create explosive barrels
every 30 secs, and take money from them when they do so,
and maybe use the Key "5" to create the barrel?


Re: Object spawn with button - wpkchase - 23.06.2012

I'm sorry!
I need to be exactly what you described!
Went the Rep!


Re: Object spawn with button - Jonny5 - 23.06.2012

you will need the following functions

https://sampwiki.blast.hk/wiki/CreateObject
https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/GetPlayerMoney
https://sampwiki.blast.hk/wiki/GivePlayerMoney
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/SetTimer


what you ask for is a request and does not go in this forum,
their is a Request Thread for this, people who like to build things
for others check it regularly.
or..
i suggest you to try and create it yourself and post any errors with your code.


good luck