AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Admin Flags (https://forums.alliedmods.net/showthread.php?t=49428)

soccdoodcss 01-03-2007 19:53

Admin Flags
 
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?

P34nut 01-03-2007 19:54

Re: Admin Flags
 
not you cant...

soccdoodcss 01-03-2007 20:06

Re: Admin Flags
 
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...

hlstriker 01-03-2007 20:29

Re: Admin Flags
 
Try the access function?

http://www.amxmodx.org/funcwiki.php?go=func&id=594

Zenith77 01-03-2007 20:45

Re: Admin Flags
 
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?

soccdoodcss 01-03-2007 23:57

Re: Admin Flags
 
*shrug* im still a young padawan...

But thanks for the help guys!

VEN 01-04-2007 04:35

Re: Admin Flags
 
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.

soccdoodcss 01-04-2007 18:11

Re: Admin Flags
 
VEN, thats really helpful. Thanks for showing me.


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

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