Raised This Month: $ Target: $400
 0% 

Two flags problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 07-01-2012 , 19:01   Two flags problem
Reply With Quote #1

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
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.

Last edited by pokemonmaster; 07-01-2012 at 19:02.
pokemonmaster is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-01-2012 , 19:43   Re: Two flags problem
Reply With Quote #2

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.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 07-01-2012 , 20:40   Re: Two flags problem
Reply With Quote #3

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!
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.

Last edited by pokemonmaster; 07-01-2012 at 20:46.
pokemonmaster 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 15:16.


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