clcmd for admin not working
register_clcmd("say /flymenu","flymenu",ADMIN_BAN)
im a newbie. its not working. all the clients can use it. what am i doing wrong? thx in advance |
Re: clcmd for admin not working
Are you checking to make sure that the client has ADMIN_BAN access? Cause, anyone can use it, but if you don't check it, it won't stop them
|
Re: clcmd for admin not working
Quote:
so the question would be, how to check it? (if thats what i have to do?) thx in advance |
Re: clcmd for admin not working
post the Full code and ill help you
|
Re: clcmd for admin not working
Quote:
u know, something like a motd pops up if u write /motd, but only for admin. think that would be a nice example, or wouldnt it? |
Re: clcmd for admin not working
PHP Code:
|
Re: clcmd for admin not working
Iwon, Didn't help him any. That would just allow ALL admins to access it, not check if they had the ADMIN_BAN flag.
@OP: You can check the users flag using !get_user_flags(id)&ADMIN_BAN |
Re: clcmd for admin not working
PHP Code:
|
Re: clcmd for admin not working
Quote:
Now it is fixed |
Re: clcmd for admin not working
Quote:
|
| All times are GMT -4. The time now is 05:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.