AlliedModders

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

Torge 07-01-2012 08:39

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

Liverwiz 07-01-2012 12:25

Re: Command question
 
I suppose you could grab their admin privileges from users.ini

Torge 07-01-2012 14:54

Re: Command question
 
Quote:

Originally Posted by Liverwiz (Post 1740457)
I suppose you could grab their admin privileges from users.ini

You're not helping me.

fysiks 07-01-2012 15:52

Re: Command question
 
Quote:

Originally Posted by Torge (Post 1740553)
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.

Torge 07-02-2012 04:15

Re: Command question
 
Quote:

Originally Posted by fysiks (Post 1740599)
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.

Liverwiz 07-02-2012 10:08

Re: Command question
 
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.

fysiks 07-02-2012 19:07

Re: Command question
 
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.

Torge 07-03-2012 11:37

Re: Command question
 
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 :)

Liverwiz 07-03-2012 11:44

Re: Command question
 
Quote:

Originally Posted by Torge (Post 1742281)
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.

fysiks 07-03-2012 19:17

Re: Command question
 
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).


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

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