SA-MP Forums Archive
SetPlayerArmedWeapon - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetPlayerArmedWeapon (/showthread.php?tid=98556)



SetPlayerArmedWeapon - Brendan_Thomson - 21.09.2009

Doesn't work for fists, is this possible?


Re: SetPlayerArmedWeapon - Calgon - 21.09.2009

SetPlayerArmedWeapon(playerid, 0);

Makes the player only use their fist. Unless they cycle through the weapon inventory, then just use something to reset it back to 0, if you wish. This works for any weapon ID (but not jetpacks, connect/disconnect etc).


Re: SetPlayerArmedWeapon - Brendan_Thomson - 21.09.2009

Quote:
Originally Posted by Seif_ [adream-rp.com
]
Try with brass knuckles in that case, they're almost the same.
Yeh this is what I will probably end up doing as it's how i had it anyway, but it's just a pain in the ass that you can't use just fists.

I have server side weapons and it syncs up with the server every minute, then sets the weapon they were holding back as their armed weapon, cant' do that unless you use brass knuckles!