client_print only to admins
I'm looking an answer for this stupid question but i can't find it...
actually i'm using client_print(0, print_chat,"@ blaaa... but maybe it's a better way of hardcoding the @ thanks! |
Re: client_print only to admins
The @ symbol does nothing. Your title and your post are completely different.
To print to only admins you need to loop through everyone and then check if they are an admin and then print to that one person. |
Re: client_print only to admins
In your function, check if the user is an admin by
if (!is_user_admin(id)) That will return false (or no), so go ahead and return PLUGIN_CONTINUE; after that statement. After return PLUGIN_CONTINUE; then print the chat message. |
Re: client_print only to admins
PHP Code:
|
Re: client_print only to admins
thanks!
|
Re: client_print only to admins
why getmaxplayers?
why not just: PHP Code:
|
Re: client_print only to admins
Quote:
|
Re: client_print only to admins
whats about if_is_admin(0) ? will this work ?
|
Re: client_print only to admins
Quote:
|
| All times are GMT -4. The time now is 15:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.