Raised This Month: $ Target: $400
 0% 

Admin Only print_chat help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-28-2006 , 09:41  
Reply With Quote #3

It's better to check like this:

Code:
case 1: {     if(is_user_admin(id)) {         client_print(id,print_chat,"text for admin %s",command)         server_print("text for admin %s",command)     } }

I also noticed you added a parameter to client_print and server_print without %s.

And also, the above example probably doesn't cover using it on more than one person. If you want to use it on all admins in the server, you must use get_players and then cycle through each player, checking if they each have admin.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode