Quote:
|
Originally Posted by XunTric
Umm...
I dont get your point...
You mean if you have numbers from 1 to 20;
and if you use number 5, then all numbers under 5 will get disabled?
What about all numbers over 5 then?
And what you mean with enable?
Are those cmds supposed to be cvars?
------------------------------------------
EDIT:
Like this?
Code:
#include <amxmodx>
new bool:A
new bool:B
new bool:C
new bool:D
new bool:E
public plugin_init()
{
register_concmd("amx_a", "amx_a")
register_concmd("amx_b", "amx_b")
register_concmd("amx_c", "amx_c")
register_concmd("amx_d", "amx_d")
register_concmd("amx_e", "amx_e")
}
public amx_a()
{
//Enable A
A = true
}
public amx_b()
{
//Disable A
A = false
//Enable B
B = true
}
public amx_c()
{
//Disable A and B
A = false
B = false
//Enable C
C = true
}
public amx_d()
{
//Disable A,B and C
A = false
B = false
C = false
//Enable D
D = true
}
public amx_e()
{
//Disable A,B,C and D
A = false
B = false
C = false
D = false
//Enable E
E = true
}
|
i mean that, if i have numbers 1 to 20 and i enable 5.
ALL other numbers will be disabled (if its activated) but 5

.
then if i wanna enable 8, all the rest will be disabled.
so IOW, if 1 number is enabled, the rest will be disabled.
__________________