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")
}
__________________