Raised This Month: $ Target: $400
 0% 

check plugin status


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 05-10-2005 , 07:34   check plugin status
Reply With Quote #1

i'll get straight to the point here.

if i have

amx_a
amx_b
amx_c
amx_d
amx_e

and if i want to enable amx_e and if anyone if amx_a/b/c/d is on, it will disable it and enable E automatically.

how do i do that? i know it has something to do with ifs?
__________________
Plugins:
none

n0obie4life is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 05-10-2005 , 07:38  
Reply With Quote #2

also


does anyone know how to use a command to check the amount of time left before the next vote
__________________
Plugins:
none

n0obie4life is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 05-12-2005 , 06:06  
Reply With Quote #3

help?
__________________
Plugins:
none

n0obie4life is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 05-14-2005 , 04:24  
Reply With Quote #4

ANYONE?
__________________
Plugins:
none

n0obie4life is offline
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 05-14-2005 , 16:13  
Reply With Quote #5

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 }
XunTric is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 05-15-2005 , 03:25  
Reply With Quote #6

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.
__________________
Plugins:
none

n0obie4life is offline
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 05-15-2005 , 04:57  
Reply With Quote #7

If your going to use many cmd's like this, this are gonna use a lot of code, though.

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      //Disable B,C,D and E      B = false      C = false      D = false      E = false } public amx_b() {      //Disable A      A = false      //Enable B      B = true      //Disable C,D and E      C = false      D = false      E = false } public amx_c() {      //Disable A and B      A = false      B = false      //Enable C      C = true      //Disable D and E      D = false      E = false } public amx_d() {      //Disable A,B and C      A = false      B = false      C = false      //Enable D      D = true      //Disable E      E = false } public amx_e() {      //Disable A,B,C and D      A = false      B = false      C = false      D = false            //Enable E      E = true }
XunTric is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 05-15-2005 , 05:03  
Reply With Quote #8

thanks.

how does the bool know which one is which? btw, it is possible to use "if" instead?[/small]
__________________
Plugins:
none

n0obie4life 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 16:44.


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