Request - ammunition system - 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: Request - ammunition system (
/showthread.php?tid=580000)
Request - ammunition system -
JoshNudock - 01.07.2015
Hello, I am looking for a system but can not find, it is this, that ends the ammunition for a weapon, the weapon does not disappear from the player's hand, the more ammunition over, and shortly thereafter he must go to the gun store, buy more ammunition, apena want the system running out of ammunition and hold the gun yet.
Look!
Re: Request - ammunition system -
JoshNudock - 01.07.2015
up!!!
Re: Request - ammunition system -
Monotox - 01.07.2015
Use
AttachObjectToPlayer with selected weapon.
Re: Request - ammunition system -
Suicidal.Banana - 01.07.2015
That would be Attac
hObjectToPlayer*
Re: Request - ammunition system -
Monotox - 01.07.2015
Quote:
Originally Posted by Suicidal.Banana
That would be Attac hObjectToPlayer* 
|
I wrote quickly and came out this error. Thanks.
Re: Request - ammunition system -
Suicidal.Banana - 01.07.2015
Just saying

and just so we're clear i didn't mean anything negative with that, so no need to defend yourself hehe, i constantly make typo's like that too, and im a full-time programmer, go figure haha.
Btw, will the game understand that attaching a weapon object to a player means having it hold the weapon in its hands? or does he maybe actually need a different command that includes something like an attachment bone or something? just wondering, its been a while :P