Raised This Month: $51 Target: $400
 12% 

[css & csgo] Max Money admin groups


Post New Thread Reply   
 
Thread Tools Display Modes
vn_lind
Member
Join Date: Jul 2017
Old 01-12-2019 , 07:19   Re: [css & csgo] Max Money admin groups
Reply With Quote #11

Ok it is almost working , but i forgot to tell you that this groups are not going into the admin file ,, they are separate plugin and the server recognizes them by flags.

My groups.cfg

Code:
"Groups"
{
	"vip gold"
	{
		"flags"		"r"
	}
	"vip platinum"
	{
		"flags"		"t"
	}
	"vip silver"
	{
		"flags"		"s"
	}
	"simple server admin"
	{
		"flags"		"abcdfgjkq"
		"immunity"		"90"
	}
}
It is a separate Vip plugin. So now if I need to add/remove someone to the group I need to edit every the time the admins.cfg , but I give Vip access by flags for certain time and when the time is up, the server auto delete that flags from the user. Can we change this to work with flags for my setup ? Sorry for the trouble but like that is difficult to manage. I taught when I give that flag to some players, your plugin will automatically gets the group and set the correct amount of money.

The whole idea of this is :

to give flag(vip group) to any player that is not an admin and in the same time if the admin has that flag and VIP also to use your plugin money, and on the other hand players that are not admins and has no VIP assigned to gain not more than 16 000 in wallet.

Once again sorry for the mess i created and I really appreciate your help.

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

ok, so try this version.
This will now check player admin groups every spawn, not when player enter in server (in team T and CT).

Would this work for you?

*edit
Updated. I forget continue code when player has no admin.

*edit
if this still not work, could you give a link to the VIP plugin ?
Attached Files
File Type: sp Get Plugin or Get Source (maxmoney_admin_groups.sp - 170 views - 2.0 KB)

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

my max money 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"	"17500" // Max. money value by this admin group
	"vip gold"		"19000"
	"vip platinum"	"65000"



}
My groups

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

Code:
"admins"
{
	"*Name*"
	{
		"auth"		"steam"
		"identity"		"STEAM_0:1:00000000"
		"flags"		"abcdefghijklmnqz"
		"immunity"		"99"
	}
I am entering the server as admin , i have changed vip silver , gold , platinum to me and i couldnt go over 16k , pasword is removed from my admin as you suggested. Do you think the flags should be checked in this case ? Wont be easier by flags ? Or i did something wrong ??
vn_lind is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-12-2019 , 11:57   Re: [css & csgo] Max Money admin groups
Reply With Quote #14

*edit
Do you reload admins after you have change your admin ?
sm_reloadadmins



show your sourcemod plugin list.
sm plugins list


and give link to your VIP plugin.

*edit edit
you could dump admcache again. And if possible with your VIP's

Last edited by Bacardi; 01-12-2019 at 12:00.
Bacardi is offline
vn_lind
Member
Join Date: Jul 2017
Old 01-13-2019 , 03:07   Re: [css & csgo] Max Money admin groups
Reply With Quote #15

admin_cache_dump.txt

Code:
"Groups"
{
	/* num = 1, gid = 0x0 */
	"vip gold"
	{
		"flags"			"r"
		"immunity"		"0"

		"Overrides"
		{
		}
	}

	/* num = 2, gid = 0x2D */
	"vip platinum"
	{
		"flags"			"t"
		"immunity"		"0"

		"Overrides"
		{
		}
	}

	/* num = 3, gid = 0x5E */
	"vip silver"
	{
		"flags"			"s"
		"immunity"		"0"

		"Overrides"
		{
		}
	}

	/* num = 4, gid = 0x8D */
	"simple server admin"
	{
		"flags"			"abcdfgjkq"
		"immunity"		"90"

		"Overrides"
		{
		}
	}
}

"Admins"
{
	/* num = 1, aid = 0xC5, serialno = 0x21*/
	""
	{
		"auth"			"steam"
		"identity"		"1:00000000"
		"flags"			"abcdefghijklmnzq"
		"immunity"		"99"
	}
}

"Overrides"
{
}
The plugin is private ,, it is not on the net. The strange thing was whEn i reloaded the admins when i read your message I could go up to 65k because i was at the time admin + vip platinum , then changed map and could only reached 16k , very strange why would it work the first time and then stopped after map reload. I removed vip platinum from me and loaded vip silver , entered the server and played with bot , slying the bot every round to get money on the next ,, i could go up to 16k ... i still believe this is because we maybe need to read flags every round instead of groups , not expert in this but this is what i think.
vn_lind is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-13-2019 , 04:06   Re: [css & csgo] Max Money admin groups
Reply With Quote #16

Alright.
Sounds like, your private plugin only use admin flags, which again not give you all benefit from SourceMod admin system (admin group and override settings).
I don't know how exactly your private plugin work, but I guess you will encounter this kind problem on some other plugins as well.


However, I want keep this plugin more simple and not hassle with admin flag letters. I can't help you more.
You should make request topic from Plugin/Gameplay Ideas and Requests , and mention in your topic that you have that private plugin in use.
Bacardi is offline
vn_lind
Member
Join Date: Jul 2017
Old 01-13-2019 , 10:23   Re: [css & csgo] Max Money admin groups
Reply With Quote #17

so we cant make this plugin to work with admin flags ?
vn_lind is offline
Reply



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 13:02.


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