Raised This Month: $ Target: $400
 0% 

client_infochanged


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 11-28-2011 , 14:58   client_infochanged
Reply With Quote #1

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
DjOptimuS is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 11-28-2011 , 15:06   Re: client_infochanged
Reply With Quote #2

Quote:
Originally Posted by DjOptimuS View Post
NOTE: The admin si set by nick. Thank you very much.
Why? Non-Steam?
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 11-28-2011 , 15:11   Re: client_infochanged
Reply With Quote #3

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.
DjOptimuS is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-28-2011 , 21:57   Re: client_infochanged
Reply With Quote #4

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.
__________________
fysiks is offline
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 11-29-2011 , 00:38   Re: client_infochanged
Reply With Quote #5

problem solved

client_infochanged is called everytime after the info change
DjOptimuS is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-29-2011 , 00:59   Re: client_infochanged
Reply With Quote #6

Default admin system already checks that.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 08:28.


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