Raised This Month: $ Target: $400
 0% 

How can I get the command access flag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 11-08-2007 , 09:27   Re: How can I get the command access flag
Reply With Quote #1

Vet, look closer at Chronic's code. The reason he set flag = ADMIN_SLAY is because by default, it is set to admin_slay.

But above that, it where the real work gets done.
get_concmd(i,cmd,31,flag,cmdinfo,7,52428799,-1)
That line sets the flag variable. Then it checks if it just set the slay command's info. If so, breaks the loop and leaves you with that flag. If not, keeps going. After it's done looping through all the registered commands, it checks to see if it found the slay command. If not, it sets the flag to admin_slay.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 11-08-2007 , 13:12   Re: How can I get the command access flag
Reply With Quote #2

Ah, thanks Wilson. I missed the !(NOT) in the if(!registered).

Thanks Chronic.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
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 01:22.


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