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

Command question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Torge
Veteran Member
Join Date: Oct 2011
Old 07-01-2012 , 08:39   Command question
Reply With Quote #1

It's possible to check admin menu uses of not connected players with console command ?

Last edited by Torge; 07-01-2012 at 08:44.
Torge is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-01-2012 , 12:25   Re: Command question
Reply With Quote #2

I suppose you could grab their admin privileges from users.ini
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 07-01-2012 , 14:54   Re: Command question
Reply With Quote #3

Quote:
Originally Posted by Liverwiz View Post
I suppose you could grab their admin privileges from users.ini
You're not helping me.
Torge is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-01-2012 , 15:52   Re: Command question
Reply With Quote #4

Quote:
Originally Posted by Torge View Post
You're not helping me.
Then you need to more clearly say what you want because your first post doesn't really make any sense.
__________________
fysiks is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 07-02-2012 , 04:15   Re: Command question
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
Then you need to more clearly say what you want because your first post doesn't really make any sense.
I mean, like this:

(Console command)
zp_check_uses <nick>

And my question:
It's possible that I can check with this command admin menu uses if they're not connected.
Torge is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-02-2012 , 10:08   Re: Command question
Reply With Quote #6

You're going to have to populate a database with nicks, steamIDs, and access privlages. But because people can change their nick, you're kinda screwed there. But if you can then devise a way to relate the nick to a steamID, you can then query users.ini for the information you're looking for. But the biggest hurdle you'll have to get over is relating a nick of an un-connected user with their steamID. Its going to be difficult, i'd say. But i'm not in any right the smartest one here....just stating what i think.
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 07-02-2012 at 10:09.
Liverwiz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-02-2012 , 19:07   Re: Command question
Reply With Quote #7

1. You only need to use SteamIDs. Or, use SteamIDs with my name addon feature (I can't remember where that is).
2. Then, as Liverwiz stated, you would need a place to store SteamIDs and how many times they have used the command.


This concept is actually quite simple though you would need to edit the plugin which handles the command for which you want tracking.
__________________

Last edited by fysiks; 07-02-2012 at 19:08.
fysiks is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 07-03-2012 , 11:37   Re: Command question
Reply With Quote #8

I edited the main zombie plague plugin and I added a client command named /uses. With this command you can check admin menu uses. And I added console command for admins with rcon access flag. And my question was, It's possible that the console command can check also uses of non-connected players. If yes, show me how
Torge is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-03-2012 , 11:44   Re: Command question
Reply With Quote #9

Quote:
Originally Posted by Torge View Post
I edited the main zombie plague plugin and I added a client command named /uses. With this command you can check admin menu uses. And I added console command for admins with rcon access flag. And my question was, It's possible that the console command can check also uses of non-connected players. If yes, show me how
not that i'm willing to figure out for you. But it is possible in theory.
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 07-03-2012 at 11:46.
Liverwiz is offline
Old 07-03-2012, 13:16
Torge
This message has been deleted by Torge.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-03-2012 , 19:17   Re: Command question
Reply With Quote #10

So you have all of this stuff working with the in-game admins? (the counting uses and such?)

If yes, then all you need to do is read a tutorial (probably nvault) and you need to store the SteamID of the player along with the number of times the menu was used (usually when they disconnect you would update this in the vault).

It's quite simple. Read the nvault tutorial and see if it gets you anywhere (you should be able to do the whole thing).
__________________
fysiks 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:41.


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