Raised This Month: $51 Target: $400
 12% 

Finding an admin's login status?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NuclearWatermelon
Junior Member
Join Date: Jun 2010
Old 11-26-2010 , 19:16   Finding an admin's login status?
Reply With Quote #1

I have a situation where an admin is defined by their SteamID, but additionally requires a password.

I have been attempting to write a plugin that will rename them if they do not setinfo their password within one minute, but I have hit an issue regarding getting their current login status.

GetUserAdmin will give me a valid admin handle if they are logged in or not, so long as they are defined, and using GetAdminFlag(adminid, Admin_Generic) will return true if they are logged in or not as well.

So my question is how can I tell if an admin is fully logged in or not?

Edit:

CheckCommandAccess does the same? CheckCommandAccess(client, "sm_who" ADMFLAG_GENERIC)

Last edited by NuclearWatermelon; 11-26-2010 at 19:31.
NuclearWatermelon is offline
psychonic

BAFFLED
Join Date: May 2008
Old 11-26-2010 , 19:33   Re: Finding an admin's login status?
Reply With Quote #2

Use steam ids for admins instead. No need to log in.
psychonic is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 11-26-2010 , 19:38   Re: Finding an admin's login status?
Reply With Quote #3

He says SteamID + password. Heresy if you ask me.
__________________
FaTony is offline
NuclearWatermelon
Junior Member
Join Date: Jun 2010
Old 11-26-2010 , 19:40   Re: Finding an admin's login status?
Reply With Quote #4

Current verification is by steamID and password as the user in question shares the account.

We'd rather the secondary user not have administrative access (hence the password) and a different username forced on them. Which is why I am trying to find out if they are logged in or not.

Last edited by NuclearWatermelon; 11-26-2010 at 19:40. Reason: Grammar
NuclearWatermelon is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 11-26-2010 , 20:53   Re: Finding an admin's login status?
Reply With Quote #5

Sharing an account is against SSA. Ban him. :\
__________________
FaTony is offline
NuclearWatermelon
Junior Member
Join Date: Jun 2010
Old 11-29-2010 , 10:13   Re: Finding an admin's login status?
Reply With Quote #6

For future reference to anyone looking for an answer to this, GetClientInfo and GetAdminPassword used in combination will serve as a way to tell if an administrator is logged in or not.
NuclearWatermelon 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 13:14.


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