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=97218)
SetPlayerArmedWeapon -
potato - 13.09.2009
What is SetPlayerArmedWeapon?
What it is used for?
And is it possible that I can give a weapon to a NPC so it would run around with that weapon (that weapon isn't at the spawn info)?
Re: SetPlayerArmedWeapon -
Correlli - 13.09.2009
Quote:
Originally Posted by RC5-1
- Added SetPlayerArmedWeapon. (bye SetDisabledWeapons :'( )
|
https://sampwiki.blast.hk/wiki/SetPlayerArmedWeapon
Re: SetPlayerArmedWeapon -
Balon - 13.09.2009
So it sets the weapon which will be shown for other players?
Re: SetPlayerArmedWeapon -
beckzy - 13.09.2009
Shame it doesn't work in vehicles. Would have been perfect for anti-driveby.
Re: SetPlayerArmedWeapon -
potato - 13.09.2009
Already checked the wiki for that function, didn't clear up anything.
Is this just simply a function that will scroll the weapons to a specific one?
And what about NPCs?
Re: SetPlayerArmedWeapon -
Calgon - 13.09.2009
Wait, so it synchronizes a weapon or it sets a weapon they already have in a slot?
Re: SetPlayerArmedWeapon -
brett7 - 13.09.2009
i think it just puts the gun you have in your hand
Re: SetPlayerArmedWeapon -
Misiek - 18.09.2009
Quote:
Originally Posted by Balon
So it sets the weapon which will be shown for other players?
|
It sets the weapon you want to be held by a player at the moment instead of having it hidden (You can obviously set it to 0, so the player gets unarmed).