SA-MP Forums Archive
AntiWeapon - 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: AntiWeapon (/showthread.php?tid=77971)



AntiWeapon - [LNL]Remulis - 16.05.2009

Can someone tell me godd antiweapon?


Re: AntiWeapon - BP13 - 16.05.2009

you could disable every single weapon. would take very long though


Re: AntiWeapon - [LNL]Remulis - 16.05.2009

how to disable ?


Re: AntiWeapon - BP13 - 16.05.2009

SetDisabledWeapons(then weapon Id's here)


example:

SetDisabledWeapons(43,44,45);


Re: AntiWeapon - ProdrifterX - 02.12.2011

it work?!?!?!?! i dont test it. later imma goto test.
this
Quote:

SetDisabledWeapons(43,44,45);

where put under gamemodeinit right?!


Re: AntiWeapon - xMichaelx - 02.12.2011

well, why not put under onplayerupdate, ResetPlayerWeapons(playerid); then even if they have a weapon they cant use it for long, or you could use SetTimer for when the player connects and do the same.


Re: AntiWeapon - CyNiC - 02.12.2011

SetDisabledWeapons was removed on 0.3.

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

I did something like that a few days ago: https://sampforum.blast.hk/showthread.php?tid=298040