AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   HELP! Cannot add admins (https://forums.alliedmods.net/showthread.php?t=307488)

magiixog 05-12-2018 11:42

HELP! Cannot add admins
 
Hello. I simply... cannot add admins for sourcemod plugin.
I have warmod installed on my server - this server i log into online on clanforge to access the files there.

I have metamod, sourcemod & warmod installed. On launch of server, warmod is launched so it is smooth and successfully runs - but whenever i do !admin in chat or sm_admin in console, it says [SM] You do not have access to this command!

I've looked at tutorials, i've tried adding my steam id in the admin_simple.ini followed by "99:z" or "z" in the file, just literally it doesn't seem to work and it's been doing my head in for the past 24 hours. Please someone help me.

My current admin_simple screenshot
https://imgur.com/Gq9TOi9

My current admin.cfg screenshot
https://imgur.com/igT8BiV

My steamid.io so i'm not putting the wrong id (instead of STEAM_0:1:59442017 i've tried that and also STEAM_1:1:59442017 as the 1 is what comes up when i type status on the server)
https://imgur.com/jmACckc

Can someone PLEASE try help and figure this out with me? I'm so confused nothing will work.

MUN 05-12-2018 13:28

Re: HELP! Cannot add admins
 
You are missing a quote "" in your admin.cfg for the identity section.

magiixog 05-12-2018 13:39

Re: HELP! Cannot add admins
 
Quote:

Originally Posted by MUN (Post 2591883)
You are missing a quote "" in your admin.cfg for the identity section.

I fixed that and it's still giving me the same error.. https://imgur.com/SbDkfeh

MUN 05-12-2018 13:42

Re: HELP! Cannot add admins
 
Try removing the one in admin_simple as you don't need it in both.

magiixog 05-12-2018 14:31

Re: HELP! Cannot add admins
 
Quote:

Originally Posted by MUN (Post 2591886)
Try removing the one in admin_simple as you don't need it in both.

Done. Still same error message :(

shanapu 05-12-2018 14:59

Re: HELP! Cannot add admins
 
Have you restart your server &/or used sm_reloadadmins after editing these files?

please copy paste your cfg instead of a screenshot.
Maybe you use '' (two single ') instead of "

magiixog 05-12-2018 15:21

Re: HELP! Cannot add admins
 
Quote:

Originally Posted by shanapu (Post 2591893)
Have you restart your server &/or used sm_reloadadmins after editing these files?

please copy paste your cfg instead of a screenshot.
Maybe you use '' (two single ') instead of "

The server gets force restarted after every change, so yes.
Code:

/**
 * USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
 *
 * Each admin should have its own "Admin" section, followed by a name.
 * The name does not have to be unique.
 *
 * Available properties: (Anything else is filtered as custom)
 *      "auth"          - REQUIRED - Auth method to use.  Built-in methods are:
 *                        "steam"  - Steam based authentication
 *                        "name"  - Name based authentication
 *                        "ip"        - IP based authentication
 *                        Anything else is treated as custom.
 *                                        Note: Only one auth method is allowed per entry.
 *
 *      "identity"      - REQUIRED - Identification string, for example, a steamid or name.
 *                                        Note: Only one identity is allowed per entry.
 *
 *      "password"      - Optional password to require.
 *      "group"        - Adds one group to the user's group table.
 *      "flags"        - Adds one or more flags to the user's permissions.
 *                "immunity"                - Sets the user's immunity level (0 = no immunity).
 *                                                  Immunity can be any value.  Admins with higher
 *                                                  values cannot be targetted.  See sm_immunity_mode
 *                                                  to tweak the rules.  Default value is 0.
 *
 * Example:
        "BAILOPAN"
        {
                "auth"                        "steam"
                "identity"                "STEAM_0:1:16"
                "flags"                        "abcdef"
        }
 *
 */
Admins
{
        "maiL"
        {
                "auth"                        "steam"
                "identity"                "STEAM_0:1:59442017"
                "flags"                        "z"
        }
}

Admins.cfg ^


Code:

//
// READ THIS CAREFULLY! SEE BOTTOM FOR EXAMPLES
//
// For each admin, you need three settings:
//  "identity"                "permissions"                "password"
//
// For the Identity, you can use a SteamID or Name.  To use an IP address, prepend a ! character.
// For the Permissions, you can use a flag string and an optional password.
//
// PERMISSIONS:
//  Flag definitions are in "admin_levels.cfg"
//  You can combine flags into a string like this:
//  "abcdefgh"
//
//  If you want to specify a group instead of a flag, use an @ symbol.  Example:
//  "@Full Admins"
//
//        You can also specify immunity values.  Two examples:
//        "83:abcdefgh"                        //Immunity is 83, flags are abcdefgh
//        "6:@Full Admins"                //Immunity is 6, group is "Full Admins"
//
//        Immunity values can be any number.  An admin cannot target an admin with
//        a higher access value (see sm_immunity_mode to tweak the rules).  Default
//  immunity value is 0 (no immunity).
//
// PASSWORDS:
//  Passwords are generally not needed unless you have name-based authentication.
//  In this case, admins must type this in their console:
//
//  setinfo "KEY" "PASSWORD"
//
//  Where KEY is the "PassInfoVar" setting in your core.cfg file, and "PASSWORD"
//  is their password.  With name based authentication, this must be done before
//  changing names or connecting.  Otherwise, SourceMod will automatically detect
//  the password being set.
//
////////////////////////////////
// Examples: (do not put // in front of real lines, as // means 'comment')
//
//  "STEAM_0:1:16"                "bce"                                //generic, kick, unban for this steam ID, no immunity
//  "!127.0.0.1"                "99:z"                                //all permissions for this ip, immunity value is 99
//  "BAILOPAN"                        "abc"        "Gab3n"                //name BAILOPAN, password "Gab3n": gets reservation, generic, kick
//
////////////////////////////////

^ admin_simple

https://steamid.io/lookup/76561198079149763 For my steam ID

MUN 05-12-2018 15:39

Re: HELP! Cannot add admins
 
Just for giggles type "quit" in console, and see what happens!

magiixog 05-12-2018 15:43

Re: HELP! Cannot add admins
 
Quote:

Originally Posted by MUN (Post 2591901)
Just for giggles type "quit" in console, and see what happens!

That doesn't really help..

MUN 05-12-2018 15:48

Re: HELP! Cannot add admins
 
By default, sourcemod doesn't update anything applied to the the admin config. It doesn't restart the server when you make changes. So... quit can help.


All times are GMT -4. The time now is 12:44.

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