SA-MP Forums Archive
Can't find what I'm looking for... - 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: Can't find what I'm looking for... (/showthread.php?tid=449403)



Can't find what I'm looking for... - Aerotactics - 08.07.2013

What I'm looking for is a bit of script or a function that will remove the weapon that is in a player's hand. ****** has given me nothing -_-


Respuesta: Can't find what I'm looking for... - Xabi - 08.07.2013

Store all the player's weapons/ammo except the one you want to remove into an array, after that, remove all weapons from the player and to finish the function, give to the player the stored weapons.


Re: Respuesta: Can't find what I'm looking for... - Aerotactics - 08.07.2013

Quote:
Originally Posted by Xabi
Посмотреть сообщение
Store all the player's weapons/ammo except the one you want to remove into an array, after that, remove all weapons from the player and to finish the function, give to the player the stored weapons.
Sounds complicated. Why can't there just be a function for this :/


Re: Can't find what I'm looking for... - tyler12 - 08.07.2013

https://sampwiki.blast.hk/wiki/ResetPlayerWeaponsEx