AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Admin counter (https://forums.alliedmods.net/showthread.php?t=214497)

jonnzus 04-27-2013 17:00

Admin counter
 
2 Attachment(s)
Hey, this is first my plugin witch I have fully made and published.

This counts how many admin has joined to server and have ability that admins can hide themselves.
This also notifies when admin connect to server without hide access.

Commands:
(say) /admins - Tells how many admin are in server.
amx_hideme - Hides you from counter admins (requires HIDDEN access)
amx_unhide - Un-hides you if you have hided yourself.

Cvar:
amx_adminnotify - If it's set to 1 this plugin will notify when admin connects to server.

Change log
1.0.0 - Release
1.0.1(+1.0.2) - Bug fixes
1.1.0 - Multi lingual added.
1.1.1 - Bug fix


Todo:
-Add color chat

Gredits:
-YamiKaitou and didoWEE for this:
https://forums.alliedmods.net/showthread.php?t=214487
-wickedd

wickedd 04-27-2013 18:27

Re: Admin counter
 
You should use get_players() instead of get_maxplayers().

Edit:
PHP Code:

get_user_name(idname31); 

:arrow:

PHP Code:

get_user_nameidnamecharsmaxname ) ); 

and

PHP Code:

if(!get_user_flags(id) & HIDDEN 

:arrow:

PHP Code:

if( !( get_user_flagsid ) & HIDDEN ) ) 


jonnzus 04-27-2013 18:29

Re: Admin counter
 
Okay, I will do that, btw I fixed few bug if you are still looking old code.

quilhos 04-27-2013 18:43

Re: Admin counter
 
the name of the topic should be more suggestive

Jhob94 04-27-2013 20:59

Re: Admin counter
 
Quote:

Originally Posted by jonnzus (Post 1941191)
Todo:
-Add color chat

Dont use inc files, use some stock in code :wink:

jonnzus 04-28-2013 19:21

Re: Admin counter
 
Quote:

Originally Posted by Jhob94 (Post 1941282)
Dont use inc files, use some stock in code :wink:

Can you give an example how to do that?:P

Jhob94 04-28-2013 19:39

Re: Admin counter
 
hum
Like lot of peolpe use inc files.
I think is better copy inc files stocks into plugin code, in this way, people dont need compile localy ;)

PoLiCe 04-30-2013 23:09

Re: Admin counter
 
I think this plugin already exist, and its called spyadmins

tonykaram1993 05-01-2013 09:21

Re: Admin counter
 
*burp* nvm

PoLiCe 05-11-2013 03:40

Re: Admin counter
 
Good Job Mate :)

hornet 05-11-2013 04:33

Re: Admin counter
 
This plugin seems unnecessary. There are other plugins that do very similar things.

@tonykaram thread hijacking is really not cool.

tonykaram1993 05-11-2013 11:47

Re: Admin counter
 
I did not mean to hijack the thread, it's just that:
Quote:

Originally Posted by tonykaram1993
I actually tried to read your code, but I did not understand how the hell it works


Napoleon_be 04-07-2020 12:50

Re: Admin counter
 
@HamletEagle

HamletEagle 04-07-2020 12:56

Re: Admin counter
 
Quote:

Originally Posted by hornet (Post 1949764)
This plugin seems unnecessary. There are other plugins that do very similar things.

@tonykaram thread hijacking is really not cool.

Agreed.


All times are GMT -4. The time now is 20:45.

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