Raised This Month: $ Target: $400
 0% 

client_print only to admins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-23-2009 , 19:12   Re: client_print only to admins
Reply With Quote #7

Quote:
Originally Posted by One View Post
why getmaxplayers?

why not just:
PHP Code:
if(is_user_admin(id)
{
client_print(id,print_chat,"haha")

matiaslp asked for a way to print a message to admins. Yes, your code will only print if (id) is an admin but you show no means of where id is coming from. Antibots code will loop from 1->maxplayers, printing the message to all connected admins.
__________________
Bugsy is offline
 



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 15:03.


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