Command only for admin & dead users while alive
Hey,
I'm trying to make a command available only for admins with flag A and regular users when they're dead, but the best i could to is, to restrict the command for alive users and make it unavailable for users with ADMIN_USER (aka default). Code:
if (is_user_alive(id) && (get_user_flags(id) & ADMIN_USER)) |
Re: Command only for admin & dead users while alive
PHP Code:
|
Re: Command only for admin & dead users while alive
Nope... no matter what flags I add or if I'm dead or alive, I get "Only admins blablabla...".
|
Re: Command only for admin & dead users while alive
PHP Code:
|
Re: Command only for admin & dead users while alive
I was wrong the first time.
tested and working: PHP Code:
|
Re: Command only for admin & dead users while alive
Thanks. New problem now.
PHP Code:
|
Re: Command only for admin & dead users while alive
PHP Code:
|
Re: Command only for admin & dead users while alive
Removed
PHP Code:
|
| All times are GMT -4. The time now is 00:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.