SA-MP Forums Archive
toggling weapon change - 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: toggling weapon change (/showthread.php?tid=486329)



toggling weapon change - iBots - 08.01.2014

let me tell you what i want,i am making a thing like:
if i shot using shotgun and i have deagle,and i change my weapon to deagle it will let me hold the shotgun again till the timer is over,i have made a timer,but how to let him get the weapon he used to shoot?
please help


Re: toggling weapon change - Voxel - 08.01.2014

Same way a armed body system would look like, as example you can use this armed by script by yezizhu
https://sampforum.blast.hk/showthread.php?tid=205666
Instead of AttatchObject in this script you could use GivePlayerWeapon and then insert the variables.

Good luck!