Alternative to is_user_admin() ?
Em Hi, probably my first post here. I found that is_user_admin() is not showing in funcwiki and It isn't working in my script too, perhaps only for me? :/
PHP Code:
Is there an alternative to it? Or If still is_user_admin() works? -Thanks. |
Re: Alternative to is_user_admin() ?
Are you sure you meant to post here? Looks like you're looking for AMXX.
|
Re: Alternative to is_user_admin() ?
Oh, I am sorry Sir, I clicked the wrong scripting section, Yes It is meant to be in AMXX section. Sorry. Can you or any mode' move it there, please?
|
Re: Alternative to is_user_admin() ?
It's native which is NOT included in the base amxmodx.
However you can make it yourself. BTW, Code:
set_task(float(get_pcvar_num(frequency)),..... |
Re: Alternative to is_user_admin() ?
get_user_flags it's better
|
Re: Alternative to is_user_admin() ?
get_user_flags is not better, is_user_admin is just fine.
Add this after #include <amxmodx> at top of plugin : #include <amxmisc> |
Re: Alternative to is_user_admin() ?
Ok, but I couldn't find it in funcwiki. Tell me if I am doing this wrong.
To check if user is not an admin. PHP Code:
|
Re: Alternative to is_user_admin() ?
I think the more correct is:
if(!is_user_admin(id)) |
Re: Alternative to is_user_admin() ?
It is rather the same, but boolean check is better.
|
Re: Alternative to is_user_admin() ?
Quote:
|
| All times are GMT -4. The time now is 10:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.