Raised This Month: $120 Target: $400
 30% 

[css & csgo] Max Money admin groups


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Plugin ID:
6397
Plugin Version:
0.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Set global and admin groups own max money limit
    Old 01-08-2019 , 17:48   [css & csgo] Max Money admin groups
    Reply With Quote #1

    Not so important



    So, this idea should be simple.
    - You can set default max. money, players can gain. (Player respawn event reset money amount when over limit)
    - And you can also set max. money limit to each admin groups.

    Install
    - Place plugin file ...addons/sourcemod/plugins/maxmoney_admin_groups.smx
    - Place config file ...addons/sourcemod/configs/maxmoney_admin_groups.cfg




    Configure maxmoney_admin_groups.cfg
    - Add/rename admin groups with max. money value
    Code:
    //
    //	Place this file ...addons/sourcemod/configs/maxmoney_admin_groups.cfg
    //	Add admin group (admin_groups.cfg) and max. money value what specific group can gain overall.
    //	ex.
    //	"default"		"16000" // Use this to set default max. money value to everyone
    //	"Full Admins"	"32000"
    //
    //
    //
    
    "Groups"
    {
    
    	"default"		"16000" // Default max. money value to set everyone. Removing this line or set value -1, stop limit players max. money
    
    
    
    	"Vip Silver"	"20000" // Max. money value by this admin group
    	"Vip Gold"		"30000"
    	"Vip Platinum"	"65000"
    
    
    
    }



    How to set admin/vip ??
    - If you haven't know, you can give multiple admin groups to one admin.
    - You can create new empty admin group or use exist one.
    admin_groups.cfg
    Code:
    Groups
    {
    	/**
    	 * Allowed properties for a group:
    	 *
    	 *   "flags"           - Flag string.
    	 *   "immunity"        - Immunity level number, or a group name.
    	 *						 If the group name is a number, prepend it with an 
    	 *						 '@' symbol similar to admins_simple.ini.  Users 
    	 *						 will only inherit the level number if it's higher 
    	 *						 than their current value.
    	 */
    	"Default"
    	{
    		"immunity"		"1"
    	}
    	
    	"Vip Silver"
    	{
    
    	}
    	
    	"Vip Gold"
    	{
    
    	}
    	
    	"Vip Platinum"
    	{
    
    	}
    	
    	"Full Admins"
    	{
    		/**
    		 * You can override commands and command groups here.
    		 * Specify a command name or group and either "allow" or "deny"
    		 * Examples:
    		 * 		":CSDM"			"allow"
    		 *		"csdm_enable"	"deny"
    		 */
    		 Overrides
    		 {
    		 }
    		"flags"			"abcdefghi"
    
    		/* Largish number for lots of in-between values. */
    		"immunity"		"99"
    	}
    }
    admins.cfg

    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
    {   
    
    	"BAILOPAN"
    	{
    		"auth"			"steam"
    		"identity"		"[U:1:12345678]"
    		"group"			"Full Admins"
    		"group"			"Vip Silver"
    	}
    
    
    	"BAILOPAN"
    	{
    		"auth"			"steam"
    		"identity"		"STEAM_0:1:123"
    		"flags"			"abcde"
    		"group"			"Vip Gold"
    	}
    
    
    	"BAILOPAN"
    	{
    		"auth"			"steam"
    		"identity"		"STEAM_0:1:1234"
    		"group"			"Vip Platinum"
    	}
    
    
    	"BAILOPAN"
    	{
    		"auth"			"steam"
    		"identity"		"STEAM_0:1:12345"
    		"group"			"Vip Platinum"
    		"group"			"Vip Gold"
    		"group"			"Vip Silver" // Last group what have given is this player max. money amount
    	}
    
    }

    *edit
    Ou ye, I have not test in CSGO game.
    Attached Files
    File Type: cfg maxmoney_admin_groups.cfg (573 Bytes, 37 views)
    File Type: sp Get Plugin or Get Source (maxmoney_admin_groups.sp - 65 views - 2.2 KB)

    Last edited by Bacardi; 01-08-2019 at 17:57.
    Bacardi is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 01-08-2019 , 17:49   Re: [css & csgo] Max Money admin groups
    Reply With Quote #2

    When you have problem, please, dump admin cache file and plugin config in your post also.
    I'm tired ask this again, again, again, again.



    in server console
    sm_dump_admcache
    Code:
    Admin cache dumped to: F:\server\counter-strike source\cstrike\addons\sourcemod\data\admin_cache_dump.txt

    Last edited by Bacardi; 01-08-2019 at 18:03.
    Bacardi is offline
    vn_lind
    Junior Member
    Join Date: Jul 2017
    Old 01-09-2019 , 02:04   Re: [css & csgo] Max Money admin groups
    Reply With Quote #3

    hi Bacardi and thank you for your help

    i have tested but it is not working for me, i have given to me group silver and i expected to gain 20k after the round ends when i had 16k but it did not give it to me.

    here is my admin_groups

    Code:
    "Groups"
    {
    	"vip gold"
    	{
    		"flags"		"r"
    	}
    	"vip platinum"
    	{
    		"flags"		"t"
    	}
    	"vip silver"
    	{
    		"flags"		"s"
    	}
    	"simple server admin"
    	{
    		"flags"		"abcdfgjkq"
    		"immunity"		"90"
    	}
    }
    vn_lind is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 01-09-2019 , 02:11   Re: [css & csgo] Max Money admin groups
    Reply With Quote #4

    If game is counter-strike:source
    You need plugin to unbound max money 16000 limit.
    https://forums.alliedmods.net/showthread.php?t=176089


    However, you can test, by setting lower value than 16000, ex 800

    Also, group names are case sensitive, upper and lower letters should match.
    __________________
    Do not Private Message @me

    Last edited by Bacardi; 01-09-2019 at 02:11.
    Bacardi is offline
    vn_lind
    Junior Member
    Join Date: Jul 2017
    Old 01-09-2019 , 02:47   Re: [css & csgo] Max Money admin groups
    Reply With Quote #5

    ok i have loaded the other plugin as well ,, fixed the group names and set the money to :

    mp_maxmoney 65000

    but now everyone can get 65000 even if they are not vip group , what do i need to add for this to work only for the groups.

    my admin groups

    Code:
    "Groups"
    {
    	"vip gold"
    	{
    		"flags"		"r"
    	}
    	"vip platinum"
    	{
    		"flags"		"t"
    	}
    	"vip silver"
    	{
    		"flags"		"s"
    	}
    	"simple server admin"
    	{
    		"flags"		"abcdfgjkq"
    		"immunity"		"90"
    	}
    }
    my maxmoney_admin_groups

    Code:
    //
    //	Place this file ...addons/sourcemod/configs/maxmoney_admin_groups.cfg
    //	Add admin group (admin_groups.cfg) and max. money value what specific group can gain overall.
    //	ex.
    //	"default"		"16000" // Use this to set default max. money value to everyone
    //	"Full Admins"	"32000"
    //
    //
    //
    
    "Groups"
    {
    
    	"default"		"16000" // Default max. money value to set everyone. Removing this line or set value -1, stop limit players max. money
    
    
    
    	"vip silver"	"20000" // Max. money value by this admin group
    	"vip gold"		"30000"
    	"vip platinum"	"65000"
    
    
    
    }
    Attached Files
    File Type: txt admin_cache_dump.txt (676 Bytes, 36 views)

    Last edited by vn_lind; 01-09-2019 at 06:07.
    vn_lind is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 01-09-2019 , 04:56   Re: [css & csgo] Max Money admin groups
    Reply With Quote #6

    Can you do post#2?
    Dump admincache file, attach in your forum post ( advance mode)

    Any errors in sourcemod logs?

    Last edited by Bacardi; 01-09-2019 at 04:56.
    Bacardi is offline
    vn_lind
    Junior Member
    Join Date: Jul 2017
    Old 01-09-2019 , 06:08   Re: [css & csgo] Max Money admin groups
    Reply With Quote #7

    no errors in the logs, I have attached it to my previous post , tnx

    Last edited by vn_lind; 01-10-2019 at 23:48.
    vn_lind is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 01-10-2019 , 13:49   Re: [css & csgo] Max Money admin groups
    Reply With Quote #8

    Not sure what happen on your side.
    I copy exactly same config what you had in admin cache dump file, and it work.

    However, you had admin privileges behind password.
    - You won't see results until you enable admin by password and reconnect (or change map)
    Because this plugin check player once, admin groups, while he enter in server. Not every spawn.

    Plugin config file update when map change or plugin reloaded

    Do you have other money plugins, like money bet ?

    Last edited by Bacardi; 01-10-2019 at 13:50.
    Bacardi is offline
    vn_lind
    Junior Member
    Join Date: Jul 2017
    Old 01-10-2019 , 23:57   Re: [css & csgo] Max Money admin groups
    Reply With Quote #9

    I have this one installed:

    "Team Bets" (2.6) by GrimReaper - Original by ferret

    Quote:
    - You won't see results until you enable admin by password and reconnect
    where to set this ?
    vn_lind is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 01-11-2019 , 11:39   Re: [css & csgo] Max Money admin groups
    Reply With Quote #10

    Quote:
    Originally Posted by vn_lind View Post
    I have this one installed:

    "Team Bets" (2.6) by GrimReaper - Original by ferret
    If you have original plugin, it share bet winnings at end of round.
    And this mine plugin, would reset money at player spawn. So problem is not this for now.


    Quote:
    Originally Posted by vn_lind View Post
    where to set this ?
    Because you not know how this work and to avoid more confusion, you should remove "password" part from your admins config.
    You are using admins.cfg ?
    Spoiler
    Bacardi 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 23:49.


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