AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Two flags problem (https://forums.alliedmods.net/showthread.php?t=188927)

pokemonmaster 07-01-2012 19:01

Two flags problem
 
Well, I was making a plugin, which I think a lot of people want it, and I saw fysiks post (HERE)
and I have these admin types:
ADMIN : with ADMIN_MAP flag
GOLDEN: with ADMIN_LEVEL_H flag
SILVER: with ADMIN_LEVEL_G flag

But the problem is that when I try to activate solo round (the plugin I'm trying to make), it works with the ADMIN flag but with the others it doesn't work, here is the amx_solo function with the defines, hopefully someone will find what is wrong:
Spoiler

Emp` 07-01-2012 19:43

Re: Two flags problem
 
You most likely need all three flags in order to use the command if you do it like that.

You should also check your cmdaccess.ini (configs folder), it might have saved a previous admin flag that you set.

pokemonmaster 07-01-2012 20:40

Re: Two flags problem
 
Quote:

Originally Posted by pokemonmaster
Well, I was making a plugin, which I think a lot of people want it, and I saw fysiks post (HERE)

Did you see fysiks post about two flags or more?

If you did, then, what should I do to make it that if someone has any of these flags (ADMIN-SILVER-GOLDEN) command will work

Quote:

Originally Posted by Emp`
You should also check your cmdaccess.ini (configs folder), it might have saved a previous admin flag that you set.

OK, will do.

EDIT: THANKS A LOT! I checked it as you have told me, and then, I deleted the old command access flag line.
And it worked just fine. Thanks again!


All times are GMT -4. The time now is 15:16.

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