AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Requesting Weapon Restriction for Admins:) Thank you (https://forums.alliedmods.net/showthread.php?t=70775)

Andih 05-01-2008 08:37

Requesting Weapon Restriction for Admins:) Thank you
 
I'm requestion a Weapon restriction.. Whitch allowes Admins to restrict weapons. And admins should be able to buy the restricted weapons, and the normal players should NOT be able to buy the restricted weapons. I found a plugin matching to this description, but it is SourceMOD. Can someone make this for CS 1.6?



CS:S-> http://forums.alliedmods.net/showthread.php?t=69987

hleV 05-01-2008 14:29

Re: Requesting Weapon Restriction for Admins:) Thank you
 
1 Attachment(s)
I've modified the default restmenu.sma so admins with immunity flag could buy restricted items.

You can change admin level in #41 line:
Code:
#define ADMIN_LEVEL ADMIN_IMMUNITY

Here's the list of admin levels:
Code:

#define ADMIN_ALL  0 /* everyone */
#define ADMIN_IMMUNITY  (1<<0) /* flag "a" */
#define ADMIN_RESERVATION (1<<1) /* flag "b" */
#define ADMIN_KICK  (1<<2) /* flag "c" */
#define ADMIN_BAN  (1<<3) /* flag "d" */
#define ADMIN_SLAY  (1<<4) /* flag "e" */
#define ADMIN_MAP  (1<<5) /* flag "f" */
#define ADMIN_CVAR  (1<<6) /* flag "g" */
#define ADMIN_CFG  (1<<7) /* flag "h" */
#define ADMIN_CHAT  (1<<8) /* flag "i" */
#define ADMIN_VOTE  (1<<9) /* flag "j" */
#define ADMIN_PASSWORD  (1<<10) /* flag "k" */
#define ADMIN_RCON  (1<<11) /* flag "l" */
#define ADMIN_LEVEL_A  (1<<12) /* flag "m" */
#define ADMIN_LEVEL_B  (1<<13) /* flag "n" */
#define ADMIN_LEVEL_C  (1<<14) /* flag "o" */
#define ADMIN_LEVEL_D  (1<<15) /* flag "p" */
#define ADMIN_LEVEL_E  (1<<16) /* flag "q" */
#define ADMIN_LEVEL_F  (1<<17) /* flag "r" */
#define ADMIN_LEVEL_G  (1<<18) /* flag "s" */
#define ADMIN_LEVEL_H  (1<<19) /* flag "t" */
#define ADMIN_MENU  (1<<20) /* flag "u" */
#define ADMIN_ADMIN  (1<<24) /* flag "y" */
#define ADMIN_USER  (1<<25) /* flag "z" */
#define FLAG_KICK  (1<<0) /* flag "a" */
#define FLAG_TAG  (1<<1) /* flag "b" */
#define FLAG_AUTHID  (1<<2) /* flag "c" */
#define FLAG_IP  (1<<3) /* flag "d" */
#define FLAG_NOPASS  (1<<4) /* flag "e" */


neogeo 05-01-2008 16:05

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Quote:

Originally Posted by hleV (Post 619825)
I've modified the default restmenu.sma so admins with immunity flag could buy restricted items.

You can change admin level in #41 line:
Code:
#define ADMIN_LEVEL ADMIN_IMMUNITY
Here's the list of admin levels:
Code:

#define ADMIN_ALL  0 /* everyone */
#define ADMIN_IMMUNITY  (1<<0) /* flag "a" */
#define ADMIN_RESERVATION (1<<1) /* flag "b" */
#define ADMIN_KICK  (1<<2) /* flag "c" */
#define ADMIN_BAN  (1<<3) /* flag "d" */
#define ADMIN_SLAY  (1<<4) /* flag "e" */
#define ADMIN_MAP  (1<<5) /* flag "f" */
#define ADMIN_CVAR  (1<<6) /* flag "g" */
#define ADMIN_CFG  (1<<7) /* flag "h" */
#define ADMIN_CHAT  (1<<8) /* flag "i" */
#define ADMIN_VOTE  (1<<9) /* flag "j" */
#define ADMIN_PASSWORD  (1<<10) /* flag "k" */
#define ADMIN_RCON  (1<<11) /* flag "l" */
#define ADMIN_LEVEL_A  (1<<12) /* flag "m" */
#define ADMIN_LEVEL_B  (1<<13) /* flag "n" */
#define ADMIN_LEVEL_C  (1<<14) /* flag "o" */
#define ADMIN_LEVEL_D  (1<<15) /* flag "p" */
#define ADMIN_LEVEL_E  (1<<16) /* flag "q" */
#define ADMIN_LEVEL_F  (1<<17) /* flag "r" */
#define ADMIN_LEVEL_G  (1<<18) /* flag "s" */
#define ADMIN_LEVEL_H  (1<<19) /* flag "t" */
#define ADMIN_MENU  (1<<20) /* flag "u" */
#define ADMIN_ADMIN  (1<<24) /* flag "y" */
#define ADMIN_USER  (1<<25) /* flag "z" */
#define FLAG_KICK  (1<<0) /* flag "a" */
#define FLAG_TAG  (1<<1) /* flag "b" */
#define FLAG_AUTHID  (1<<2) /* flag "c" */
#define FLAG_IP  (1<<3) /* flag "d" */
#define FLAG_NOPASS  (1<<4) /* flag "e" */


thx for this ,but can you add something like when a player take on the floor a restrict weapon ,it will automaticaly drop it ? thanks.

Andih 05-01-2008 18:52

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Shit man!Thank you so much!! i have been looking for this for days!:D you rock!:D:D:D Btw do you know how to make flashlights bigger for CTS? I'm having zombie mod on my server.. i also wonder how to make longjump for zombies... the normal leap makes longjump for its unlimited longjump.. maybe you could make a cooldown on 15secs or so, before they can do a longjump again?

Andih 05-02-2008 05:35

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Umm Hlev? why can't i restrict weapons? In game im using AmxModMenu to restrict weapons.. but now i can't restrict the weapons. I think its bugged:S

hleV 05-02-2008 07:09

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Fixed. Please redownload the plugin.

Andih 05-02-2008 07:36

Re: Requesting Weapon Restriction for Admins:) Thank you
 
hleV:( i still can't enter Restrict Weapon from the amxmodmenu.. What can be wrong? When i enter amxmodmenu i press 9(next) then 7(restrict weaopn) and then it doesnt show the restricting menu:( What can be wrong?

hleV 05-02-2008 08:08

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Enable restmenu.amxx in your plugins.ini.

Andih 05-02-2008 09:25

Re: Requesting Weapon Restriction for Admins:) Thank you
 
still not working:(

Andih 05-02-2008 09:59

Re: Requesting Weapon Restriction for Admins:) Thank you
 
I'm having zombie swarm 2.4 on my server but, that shouldnt effect it.. Theres automatic something that restricts nightvision.. but that should be normal?

Andih 05-02-2008 10:58

Re: Requesting Weapon Restriction for Admins:) Thank you
 
; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)
; Chat / Messages
adminchat.amxx ; console chat commands
antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands
; Map related
nextmap.amxx ; displays next map in mapcycle
mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map
; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands
; Counter-Strike
restmenu.amxx ; restrict weapons menu
statsx.amxx ; stats on death or round end (CSX Module required!)
miscstats.amxx ; bunch of events announcement for Counter-Strike
stats_logging.amxx ; weapons stats logging (CSX Module required!)
; Enable to use AMX Mod plugins
amxmod_compat.amxx ; AMX Mod backwards compatibility layer
; Custom - Add 3rd party plugins here

hleV 05-02-2008 11:59

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Try to reinstall AMX Mod X and then change default restmenu.amxx with the custom one (my version). Then enable it in plugins.ini.
Or you can ask for a friend to try it and see if it works for him.

Andih 05-02-2008 12:10

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Can't you test it for me? becourse i'm having a mod on it and i dont want to delete is:(

hleV 05-02-2008 12:27

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Quote:

Originally Posted by Andih (Post 620260)
Can't you test it for me? becourse i'm having a mod on it and i dont want to delete is:(

When I upload a plugin I test it first. It means that it works for me.
Can somebody else try this and tell if it works?

Andih 05-02-2008 12:55

Re: Requesting Weapon Restriction for Admins:) Thank you
 
hleV... i put the amxx into the plugins.. and the sma into the scripting.. as i know it should work like this (doesnt say that your wrong) but it doesnt work for me:S

Andih 05-02-2008 14:14

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Umm i just wonder if i have to add someone to the amxx.cfg file?

Andih 05-02-2008 14:26

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Ok hleV.. my friend just tested this and it doesn't work for him.. We are using amxmodx 1.8.0... your plugin doesnt work for both of our servers so.. try and fix it please :)

hleV 05-02-2008 15:02

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Please edit your posts instead of creating a new ones.

Can someone else try this and tell if it works? I don't trust Andih and still thinking that he does something wrong.

Andih 05-02-2008 15:19

Re: Requesting Weapon Restriction for Admins:) Thank you
 
hleV i'm not doing anything wrong.. ill describe what i am doing then.. Restmenu.amxx file is put into the Plugins folder.. it asks me to replace it and i press yes.. Restmenu.sma is put into the Scripting folder.. It asks me to replace it and i press yes... And i enabled it in the Plugin.ini... so dont say that i am doing it wrong.. I have got alot of mods on my server whitch have been running right :)

hleV 05-02-2008 17:47

Re: Requesting Weapon Restriction for Admins:) Thank you
 
1 Attachment(s)
If this wont work I will shoot myself...

Andih 05-02-2008 18:18

Re: Requesting Weapon Restriction for Admins:) Thank you
 
I can do it for you:P just kidding.. i will tell you when i have tested this:)



This works fine!! Thank you xD, now you don't have to shoot your self :P

RHSteven 02-15-2009 09:48

Re: Requesting Weapon Restriction for Admins:) Thank you
 
Quote:

Originally Posted by hleV (Post 620429)
If this wont work I will shoot myself...

How can i set in the sma, if i just want the b - reservation (can join on reserved slots) can buy the retriction weapon


All times are GMT -4. The time now is 08:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.