Raised This Month: $ Target: $400
 0% 

Print function to chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 12-31-2013 , 07:13   Re: Print function to chat
Reply With Quote #6

authorized can be called after putinserver, so use that function like fysiks said.

Or combine them. Use a variable to enable the message when authorized was called and when the putinserver is called, show the message. If they are out of sync you can create a task on putinserver to repeat until authorized has cleared.

Something like:
Code:
new is_authorized[33]; public client_authorized(id) {     is_authorized[id] = true; } public client_disconnect(id) {     is_authorized[id] = false; } public client_putinserver(id) {     set_task(2.0, "Function") } public Function(id) {     if(is_authorized[id] & is_user_connected(id)) {         new Name[33]         get_user_name(id,Name,32);                 if(get_user_flags(id) & ADMIN_LEVEL_E)             ColorChat(0, NORMAL, "Master^4 %s^1 joined the server!", Name);     }     else         set_task(1.0, "Function") }
__________________

Last edited by Black Rose; 12-31-2013 at 08:34.
Black Rose 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 10:04.


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