How do you restrict weapons?

Post Reply
CplFGump
New to forums
New to forums
Posts: 5
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Apr 01, 2005 12:47 am

How do you restrict weapons?

Post by CplFGump »

admin_restrictweapon <4> <6> doesn't work like it did in 1.5 and it isn't allowed in my AMX. I would like to restrict the awp and the AR permanently. Thanks to anyone who helps.
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

that looks like the command for adminmod, if you're using amxmod, you need to do this:
amx_restrict on awp
amx_restrict save
then it should be restricted the next rount.
CplFGump
New to forums
New to forums
Posts: 5
Joined: Fri Apr 01, 2005 12:47 am

Post by CplFGump »

Is there a command I can put into the amxx.cfg file that will default the restrictions?
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

yes, just put this in amxx.cfg: amx_restrict on awp
if you do the amx_restrict save, you dont even need to have it in amxx.cfg.
CplFGump
New to forums
New to forums
Posts: 5
Joined: Fri Apr 01, 2005 12:47 am

Post by CplFGump »

Thanks for that. What about the autosniper? Corona, huh? I know the town well. :D
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

to get a list of the names of the guns, you can do amx_restrict list.

Code: Select all

22: H&K G3/SG-1 Sniper Rifle           g3sg1
23: Sig SG-550 Sniper                  sg550
So you would just need to add these lines to amxx.cfg:
amx_restrict on g3sg1
amx_restrict on sg550
or you can use the amx_restrict save method.
CplFGump
New to forums
New to forums
Posts: 5
Joined: Fri Apr 01, 2005 12:47 am

Post by CplFGump »

I have tried amx_restrict list and amx_restrictlist, nothing comes up.
When I type amxmodmenu I get many options. However the restrict weapon choice is not choosable. I placed the commands into the amxx.cfg file and reset the server. Weapons are not restricted. What else could it be?
CplFGump
New to forums
New to forums
Posts: 5
Joined: Fri Apr 01, 2005 12:47 am

Post by CplFGump »

It is fixed. I found the answer in another area. My plug-in was not activated in amx for weapon restriction. Thank you so much for your help.
Post Reply