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

Admin Check or adminrules.txt


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obsession
Member
Join Date: Jan 2012
Old 04-03-2012 , 03:28   Admin Check or adminrules.txt
Reply With Quote #1

hi

can you give .sma file or adminrules.txt

say :/admin - show admin
say:/adminrules show - rules admin

pleas show the download link of .sma file
Obsession is offline
Baghi
Senior Member
Join Date: Mar 2012
Location: Asia Pacific
Old 04-03-2012 , 05:07   Re: Admin Check or adminrules.txt
Reply With Quote #2

Make a separate thread for /adminrules.
__________________
new signature
Baghi is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 04-03-2012 , 09:32   Re: Admin Check or adminrules.txt
Reply With Quote #3

Try this one and this one.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Obsession
Member
Join Date: Jan 2012
Old 04-06-2012 , 04:46   Re: Admin Check or adminrules.txt
Reply With Quote #4

only the link :@ dont show link for search xD :@:@:

only link for download the

say :/admin - show admin
say:/adminrules show - rules admin - adminrulex.txt to edit
Obsession is offline
neoRT
Senior Member
Join Date: May 2011
Old 04-06-2012 , 05:13   Re: Admin Check or adminrules.txt
Reply With Quote #5

Here's one cool for /admins. It has a /hide function to hide admins visibility.
For rules, try to search.

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()
}

Later Edit:
Here's a very simple one for what you asked for /adminrules.
You'll have to make a .txt file called adminrules in your configs folder. In that file you will write your rules.

Code:
#include <amxmodx>

public plugin_init() {
   register_plugin("Admin Rules","1.0","neoRT")
   register_clcmd ("say /adminrules" , "adminrules" , -1);
   register_clcmd ("say_team /adminrules" , "adminrules" , -1);
   
}

public adminrules(id)
{
   show_motd(id,"addons/amxmodx/configs/adminrules.txt")
}

Last edited by neoRT; 04-06-2012 at 05:43.
neoRT is offline
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 06:46.


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