Raised This Month: $ Target: $400
 0% 

Admin Flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 01-03-2007 , 19:53   Admin Flags
Reply With Quote #1

My new plugin has only cvars. What should i add to the script to check it the person who is changing the cvar is an admin?
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 01-03-2007 , 19:54   Re: Admin Flags
Reply With Quote #2

not you cant...
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 01-03-2007 , 20:06   Re: Admin Flags
Reply With Quote #3

I know you cant specifically to the cvars... I was wondering what to add to the plugin that would make sure the admin is using the plugin...it doesnt have to be a cvar...
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 01-03-2007 , 20:29   Re: Admin Flags
Reply With Quote #4

Try the access function?

http://www.amxmodx.org/funcwiki.php?go=func&id=594
hlstriker is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 01-03-2007 , 20:45   Re: Admin Flags
Reply With Quote #5

No, he's talking about cvars not commands. Just add FCVAR_SPONLY (I think this should wrong, if not not interpreting the description of it wrong) to the cvar flags when registering.

But just one question. Why would you want to make sure an admin is changing the cvar, when the only way if you're in game is through amx_cvar?
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 01-03-2007 , 23:57   Re: Admin Flags
Reply With Quote #6

*shrug* im still a young padawan...

But thanks for the help guys!
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
VEN
Veteran Member
Join Date: Jan 2005
Old 01-04-2007 , 04:35   Re: Admin Flags
Reply With Quote #7

As a side note: you can implement your own CVar's access levels system
Though you will have to provide the modified admincmd.sma as well as your plugin.

Last edited by VEN; 01-04-2007 at 04:39.
VEN is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 01-04-2007 , 18:11   Re: Admin Flags
Reply With Quote #8

VEN, thats really helpful. Thanks for showing me.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
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 22:22.


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