SA-MP Forums Archive
[Attach Weapon] More Than One - 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: [Attach Weapon] More Than One (/showthread.php?tid=362959)



[Attach Weapon] More Than One - McCurdy - 26.07.2012

Hey all, i want to ask how to attach weapon more than one...

Example, i use this code AttachObjectToPlayer(playerid, weaponid) and when i put that again with different weapoin id and i just attach one weapon...

I want make just maximal 2 weapon attach in the body and when i attach M4 and i want attach AK47 again, that M4 must be gone, so i just can attach like deagel and M4 or AK47 and silenced...


Re: [Attach Weapon] More Than One - Ballu Miaa - 26.07.2012

Yeah that is possible , AttachObjectToPlayer has index parameter which is 0-9. That means you can attach 10 Objects per player.


Re: [Attach Weapon] More Than One - McCurdy - 26.07.2012

If use AttachObjectToPlayer i must set the coordinate too, and i can't find the coordinate of all weapon...


Re: [Attach Weapon] More Than One - McCurdy - 26.07.2012

~PROBLEM SOLVED~