Raised This Month: $32 Target: $400
 8% 

ADMINS check


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 07-14-2011 , 04:46   ADMINS check
Reply With Quote #1

please somoen have plugin admin check, if he write in chat /admin it apear list of admin online please help
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
ggaadd
Junior Member
Join Date: Jun 2011
Old 07-14-2011 , 04:50   Re: ADMINS check
Reply With Quote #2

Don't have mode how you want
have admin cheak with now list ...
in 3 min i can build.... is simple

sorry of my english..
ggaadd is offline
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 07-14-2011 , 05:14   Re: ADMINS check
Reply With Quote #3

Quote:
Originally Posted by ggaadd View Post
Don't have mode how you want
have admin cheak with now list ...
in 3 min i can build.... is simple

sorry of my english..
no one asked for your opinion -.- and if you really make that in 3 min, make it and post it here
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
mehmetali
Senior Member
Join Date: Jan 2010
Location: Turkey
Old 07-14-2011 , 05:18   Re: ADMINS check
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?p=230189

?
mehmetali is offline
ggaadd
Junior Member
Join Date: Jun 2011
Old 07-14-2011 , 05:21   Re: ADMINS check
Reply With Quote #5

i say then i can't .
i am building new mode [ JB ]

and i have bag so i can't help you..
sorry man.
ggaadd is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 07-20-2011 , 10:21   Re: ADMINS check
Reply With Quote #6

Quote:
Originally Posted by mehmetali View Post
your right
Shadymn is offline
neoRT
Senior Member
Join Date: May 2011
Old 07-20-2011 , 16:41   Re: ADMINS check
Reply With Quote #7

Quote:
Originally Posted by Dolph_Ziggler View Post
please somoen have plugin admin check, if he write in chat /admin it apear list of admin online please help
try this, it`s very cool. if you want to hide of player check you can write /hide, to be available again write /unhide. /hide is available untill mapchange

Code:
#include <amxmodx>

/*---------------EDIT ME------------------*/
#define ADMIN_CHECK ADMIN_KICK
static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
/*----------------------------------------*/
new maxplayers
new gmsgSayText
new Trie:gTrieAdminHidden
public plugin_init() {
    register_plugin("Admin Check", "1.51", "OneEyed")
    maxplayers = get_maxplayers()
    gmsgSayText = get_user_msgid("SayText")
    register_clcmd("say", "handle_say")
    register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER)
    
    gTrieAdminHidden = TrieCreate()
}
public handle_say(id) {
    static said[192]
    read_args(said,192)
    if(get_user_flags(id) & ADMIN_CHECK)
    {
        static authid[32]
        get_user_authid(id, authid, charsmax(authid))
        if(equali(said, "^"/hide", 6))
        {
            print_message(id, "You are hidden from admin checks until mapchange or /unhide.")
            TrieSetCell(gTrieAdminHidden, authid, 1)
            return PLUGIN_HANDLED
        }
        if(equali(said, "^"/unhide", 8))
        {
            if (TrieKeyExists(gTrieAdminHidden, authid))
            {
                print_message(id, "You are no longer hidden from admin checks.")
                TrieDeleteKey(gTrieAdminHidden, authid)
                return PLUGIN_HANDLED
            }
            print_message(id, "You were not hidden from admin checks.")
            return PLUGIN_HANDLED
        }
    }
    if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/admin") != -1 )
        set_task(0.1,"print_adminlist",id)
    return PLUGIN_CONTINUE
}
public print_adminlist(user) 
{
    new adminnames[33][52]
    new message[256]
    new contactinfo[256], contact[112]
    new id, count, x, len
    
    for(id = 1 ; id <= maxplayers ; id++)
        if(is_user_connected(id))
            if(get_user_flags(id) & ADMIN_CHECK)
            {
                static authid[32]
                get_user_authid(id, authid, charsmax(authid))
                if (!TrieKeyExists(gTrieAdminHidden, authid))
                    get_user_name(id, adminnames[count++], 31)
                else if ((get_user_flags(user) & ADMIN_CHECK) && TrieKeyExists(gTrieAdminHidden, authid))
                {
                    get_user_name(id, adminnames[count], 31)
                    format(adminnames[count], 51, "%s ^x03(Hidden)%s", adminnames[count], COLOR)
                    count++
                }
            }
    len = format(message, 255, "%s ADMINS ONLINE: ",COLOR)
    if(count > 0) {
        for(x = 0 ; x < count ; x++) {
            len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
            if(len > 96 ) {
                print_message(user, message)
                len = format(message, 255, "%s ",COLOR)
            }
        }
        print_message(user, message)
    }
    else {
        len += format(message[len], 255-len, "No admins online.")
        print_message(user, message)
    }
    
    get_cvar_string("amx_contactinfo", contact, 63)
    if(contact[0])  {
        format(contactinfo, 111, "%s Contact Server Admin -- %s", COLOR, contact)
        print_message(user, contactinfo)
    }
}
print_message(id, msg[]) {
    message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
    write_byte(id)
    write_string(msg)
    message_end()
}
neoRT is offline
Trethy
Member
Join Date: Jun 2011
Old 07-20-2011 , 18:15   Re: ADMINS check
Reply With Quote #8

http://forums.alliedmods.net/showthread.php?p=230189
__________________
Im new at coding..
And i need things for my jailbreak server

But no one help me..
Trethy is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 07-20-2011 , 21:54   Re: ADMINS check
Reply With Quote #9

http://forums.alliedmods.net/showthr...ght=hide+admin

there are already many out there
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
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 21:01.


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