AlliedModders

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

DjOptimuS 11-28-2011 14:58

client_infochanged
 
Hello,

I want to check if a player is admin or not, before and after the nick change. I want to know if he was admin, and then he chosen to change his nick in order to be regular user, or, if he was a regular user, then he changed his nick, in order to became admin.

In short terms i need a function to check if the player was or not an admin. To check it after is pretty simple with a set_task. But i want to know if is there a posibility to check older nick admin flags.
NOTE: The admin si set by nick. Thank you very much.

PS. I looked into admin.sma to verify that method but is too complicated for what i need, only the ADMIN_RESERVATION flag wich is common to all my admins. Thanks

joshknifer 11-28-2011 15:06

Re: client_infochanged
 
Quote:

Originally Posted by DjOptimuS (Post 1604309)
NOTE: The admin si set by nick. Thank you very much.

Why? Non-Steam?

DjOptimuS 11-28-2011 15:11

Re: client_infochanged
 
i use it for storing in a mysql database the time played by an admin.

I have some admins set by nick, some of them by ip, some of them by steamid.

If you are not capable delivering an answer, stop posting.

fysiks 11-28-2011 21:57

Re: client_infochanged
 
You probably need to modify the existing authentication plugin. You could then make a function that you call every time that your event happens in the authentication code to do what you need to do.

It's hard to believe that anyone needs anything other than Steam ID authentication.

DjOptimuS 11-29-2011 00:38

Re: client_infochanged
 
problem solved

client_infochanged is called everytime after the info change

ConnorMcLeod 11-29-2011 00:59

Re: client_infochanged
 
Default admin system already checks that.


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

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