Raised This Month: $ Target: $400
 0% 

Requesting Weapon Restriction for Admins:) Thank you


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Andih
Junior Member
Join Date: Apr 2008
Old 05-01-2008 , 08:37   Requesting Weapon Restriction for Admins:) Thank you
Reply With Quote #1

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

Last edited by Andih; 05-01-2008 at 12:19.
Andih is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-01-2008 , 14:29   Re: Requesting Weapon Restriction for Admins:) Thank you
Reply With Quote #2

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" */
Attached Files
File Type: sma Get Plugin or Get Source (restmenu.sma - 747 views - 23.0 KB)
__________________

Last edited by hleV; 05-02-2008 at 07:09. Reason: Fixed code.
hleV is offline
neogeo
Senior Member
Join Date: Jul 2005
Old 05-01-2008 , 16:05   Re: Requesting Weapon Restriction for Admins:) Thank you
Reply With Quote #3

Quote:
Originally Posted by hleV View Post
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.
neogeo is offline
Andih
Junior Member
Join Date: Apr 2008
Old 05-01-2008 , 18:52   Re: Requesting Weapon Restriction for Admins:) Thank you
Reply With Quote #4

Shit man!Thank you so much!! i have been looking for this for days! you rock! 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 is offline
Andih
Junior Member
Join Date: Apr 2008
Old 05-02-2008 , 05:35   Re: Requesting Weapon Restriction for Admins:) Thank you
Reply With Quote #5

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
Andih is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-02-2008 , 07:09   Re: Requesting Weapon Restriction for Admins:) Thank you
Reply With Quote #6

Fixed. Please redownload the plugin.
__________________
hleV is offline
Andih
Junior Member
Join Date: Apr 2008
Old 05-02-2008 , 07:36   Re: Requesting Weapon Restriction for Admins:) Thank you
Reply With Quote #7

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?
Andih is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-02-2008 , 08:08   Re: Requesting Weapon Restriction for Admins:) Thank you
Reply With Quote #8

Enable restmenu.amxx in your plugins.ini.
__________________
hleV is offline
Andih
Junior Member
Join Date: Apr 2008
Old 05-02-2008 , 09:25   Re: Requesting Weapon Restriction for Admins:) Thank you
Reply With Quote #9

still not working
Andih is offline
Andih
Junior Member
Join Date: Apr 2008
Old 05-02-2008 , 09:59   Re: Requesting Weapon Restriction for Admins:) Thank you
Reply With Quote #10

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 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:59.


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