access level problem
Hi guys. It's my first post here and I'm little uneasy. I'm trying to create a slaymenu, but I can't make it for admins only (access level 3). Ok I'm using kickmenu code from this forum (code from somebody here) and I can't make it to works only for admins ! I don't know why but if write the commnand amx_slaymenu and I'm not admin show me in console "you don't have an access to this command" (or something like this) and it's shows the menu... If I'm admin, doesn't show the message, but doesn't show the menu too, pff. I'm little confused about this. So I need you help :]] The code is not very good, but I think with your help I'll optimize it :)
p.s. I'm sorry about my poor english, but isn't my native ! PHP Code:
|
Re: access level problem
when ur not an admin .. it says u dont have access to this command ... and am kinda busy to help u with the other part , anyways i kinda forgot 90% of what i really knew cause i was away for 2 months
|
Re: access level problem
You need to understand what that 3 does. It says that it needs three arguments (including the command name). So, you should only have a 1 there. So, if you just type in "amx_slaymenu" in your console it shouldn't show it to anyone.
ADMIN_SLAY is the access level that the function is using. |
Re: access level problem
Ok, thanks for your help. Another question:
Quote:
PHP Code:
|
Re: access level problem
Its nothing to worry about.It doesnt affect the code.If your using amxx editor CTRL+I to use the Indenter tool.
|
Re: access level problem
Thank you SpeeDeeR. With Ctrl+I everything came to the place! By the way Благодаря !
|
Re: access level problem
You should not rely on such tool if you don't understand what mean indentation. http://en.wikipedia.org/wiki/Indent_style
|
Re: access level problem
I understand it very well. I have experience in programming, just dоn't know that, the software has this option!
|
| All times are GMT -4. The time now is 21:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.