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

[L4D2] Help with overrides, please!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
foquaxticity
Junior Member
Join Date: Jul 2018
Old 08-28-2018 , 15:35   [L4D2] Help with overrides, please!
Reply With Quote #1

So lets start with this:
"Master"
{
"flag" "t"
"tag" "[Master]"
"tagcolor" "{G}"
"namecolor" ""
"textcolor" "{N}"
}

And this:
"sm_lmc" "cejrt" //Change "sm_lmc" to the "cejrt" flag

Now, i have a friend which tests !lmc command as i gave him "Master" (t flag), he can use it ONLY when i do this:
"sm_lmc" "t"
But, i have multiple "Ranks" and i can't give 1 command to each one to work. What do i have to do to make it work? Also, he cant do !perks (shown below, it should be enabled for t flag)

Override file now:
"sm_give" "j" //Change "sm_give" to the "j" flag.
"sm_lmc" "cejrt" //Change "sm_lmc" to the "cejrt" flag.
"sm_csm" "z" //Change "sm_csm" to the "z" flag.
"sm_perks" "cejrt" //RK


List of tiers if that makes any change (also, im giving flags in admins.simple):
"Warrior"
{
"flag" "o"
"tag" "[Warrior]"
"tagcolor" "{N}"
"namecolor" ""
"textcolor" "{N}"
}

"Semi-pro"
{
"flag" "p"
"tag" "[Semi-pro]"
"tagcolor" "{G}"
"namecolor" ""
"textcolor" "{N}"
}

"Pro"
{
"tag" "[Pro]"
"tagcolor" "{G}"
"namecolor" ""
"flag" "q"
"textcolor" "{N}"
}

"Expert"
{
"flag" "s"
"tag" "[Expert]"
"tagcolor" "{G}"
"namecolor" ""
"textcolor" "{N}"
}
"Master"
{
"flag" "t"
"tag" "[Master]"
"tagcolor" "{G}"
"namecolor" ""
"textcolor" "{N}"
}
"Veteran"
{
"flag" "r"
"tag" "[Veteran]"
"tagcolor" "{O}"
"namecolor" ""
"textcolor" "{N}"
}
"Legend"
{
"flag" "c"
"tag" "[Legend]"
"tagcolor" "{O}"
"namecolor" ""
"textcolor" "{N}"
}
"Godlike"
{
"flag" "e"
"tag" "[Godlike]"
"tagcolor" "{O}"
"namecolor" ""
"textcolor" "{N}"
}
"Royal Knight"
{
"flag" "j"
"tag" "[Royal Knight]"
"tagcolor" "{O}"
"namecolor" "{G}"
"textcolor" "{N}"
}
"Xwipe Promotion"
{
"flag" "k"
"tag" "[Xwipe]"
"tagcolor" "{O}"
"namecolor" ""
"textcolor" "{N}"
}

I'm trying to do anything, but with my little knowledge, nothing's working.

EDIT:
Forgot to mention that commands are working for "Royal Knight" rank even though its flag is into that string (it's the j flag).

Last edited by foquaxticity; 08-28-2018 at 16:05.
foquaxticity is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 08-28-2018 , 16:06   Re: [L4D2] Help with overrides, please!
Reply With Quote #2

Do people pay for them ranks?
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
foquaxticity
Junior Member
Join Date: Jul 2018
Old 08-28-2018 , 16:09   Re: [L4D2] Help with overrides, please!
Reply With Quote #3

No, they are given manually for reaching certain kill count. But i need help with issue not explaining how server works.
foquaxticity is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 08-28-2018 , 16:11   Re: [L4D2] Help with overrides, please!
Reply With Quote #4

I know what the issue is with LMC, i just check override flag(s) not cmd access its self, i can update if you like?
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 08-28-2018 at 16:11.
Lux is offline
foquaxticity
Junior Member
Join Date: Jul 2018
Old 08-28-2018 , 16:27   Re: [L4D2] Help with overrides, please!
Reply With Quote #5

I didn't quite got what you mean there, i don't know what is cmd access. But yes, any help is accepted, thanks. But perks isn't working too for t flag. It reads only if i leave 1 flag in string, however "j" flag somehow gets accepted, its the only one working perfectly with all available commands.

Last edited by foquaxticity; 08-28-2018 at 16:30.
foquaxticity is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 08-28-2018 , 16:45   Re: [L4D2] Help with overrides, please!
Reply With Quote #6

i updated LMC to use override file
https://forums.alliedmods.net/showthread.php?p=2612637
All the other plugins would need to contact authors of those plugins.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
foquaxticity
Junior Member
Join Date: Jul 2018
Old 08-29-2018 , 14:54   Re: [L4D2] Help with overrides, please!
Reply With Quote #7

It still doesn't work, re-downloaded plugin and my friend says he still cant !lmc in t flag ("sm_lmc" "cejrt" //Change "sm_lmc" to the "cejrt" flag.).
foquaxticity is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 08-29-2018 , 15:20   Re: [L4D2] Help with overrides, please!
Reply With Quote #8

Quote:
Originally Posted by foquaxticity View Post
It still doesn't work, re-downloaded plugin and my friend says he still cant !lmc in t flag ("sm_lmc" "cejrt" //Change "sm_lmc" to the "cejrt" flag.).



That's the code, from my testing it worked fine! unless I did something wrong i dunno, have you checked you config is done correctly?

https://github.com/LuxLuma/Luxs-Mode...oosing.sp#L385

what i tested
Code:
Overrides
{
	/**
	 * By default, commands are registered with three pieces of information:
	 * 1)Command Name 		(for example, "csdm_enable")
	 * 2)Command Group Name	(for example, "CSDM")
	 * 3)Command Level		(for example, "changemap")
	 *
	 * You can override the default flags assigned to individual commands or command groups in this way.
	 * To override a group, use the "@" character before the name.  Example:
	 * Examples:
	 *		"@CSDM"			"b"				// Override the CSDM group to 'b' flag
	 * 		"csdm_enable"	"bgi"			// Override the csdm_enable command to 'bgi' flags
	 *
	 * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
	 * any setting that csdm_enable previously had.
	 *
	 * You can make a command completely public by using an empty flag string.
	 */
	 "sm_lmc" "b" //Change "sm_lmc" to the "cejrt" flag

}
Btw "sm_lmc" to the "cejrt" flag requires all those flags to use LMC put it to 1 flag and put those flag in the groups
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 08-29-2018 at 15:22.
Lux is offline
foquaxticity
Junior Member
Join Date: Jul 2018
Old 08-30-2018 , 14:27   Re: [L4D2] Help with overrides, please!
Reply With Quote #9

I understand exactly nothing when it comes to groups and with explanation google gives, i cant learn anything. Could you explain how putting multiple flags into 1 flag works. Or write in override file and paste here.
foquaxticity is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-30-2018 , 20:06   Re: [L4D2] Help with overrides, please!
Reply With Quote #10

Overriding a command to multiple flags requires ALL those flags, not any of those flags.
__________________
asherkin 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 10:45.


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