public taskJoin( taskid )
{
if( !is_user_admin( taskid ) )
return PLUGIN_HANDLED;
new s_Name[32], iSuperAdmin, iVipAdmin, iVip, iAdmin, iFlags;
get_user_name( taskid , s_Name , charsmax( s_Name ) );
StartCheckPlayerAccess(taskid);
iFlags = get_user_flags(taskid);
iSuperAdmin = ((iFlags & ADMIN_LEVEL_H) && (iFlags & ADMIN_BAN) && (iFlags & ADMIN_RCON)) ? 1:0;
iVipAdmin = ((iFlags & ADMIN_LEVEL_H) && (iFlags & ADMIN_BAN)) ? 1:0;
iVip = (iFlags & ADMIN_LEVEL_H) ? 1:0;
iAdmin = (iFlags & ADMIN_BAN) ? 1:0;
if (iSuperAdmin)
{
client_print_color(0, taskid, "%L", LANG_PLAYER, "SUPER_CONNECT_CHAT", s_Name);
set_dhudmessage(51, 153, 255, -1.0, 0.13, 0, 6.0, 5.0)
show_dhudmessage( 0 , "%L" , LANG_PLAYER , "SUPER_CONNECT_HUD" , s_Name );
}
else if (iVipAdmin)
{
client_print_color(0, taskid, "%L", LANG_PLAYER, "VIP_ADMIN_CONNECT_CHAT", s_Name);
set_dhudmessage(0, 255, 0, -1.0, 0.13, 0, 6.0, 5.0)
show_dhudmessage( 0 , "%L" , LANG_PLAYER , "VIP_ADMIN_CONNECT_HUD" , s_Name );
}
else if(iVip)
{
client_print_color( 0 , taskid , "%L" , LANG_PLAYER , "VIP_CONNECT_CHAT" , s_Name );
set_dhudmessage(205, 102, 0, -1.0, 0.13, 0, 6.0, 5.0)
show_dhudmessage( 0 , "%L" , LANG_PLAYER , "VIP_CONNECT_HUD" , s_Name );
}
else if (iAdmin)
{
client_print_color( 0 , taskid , "%L" , LANG_PLAYER , "ADMIN_CONNECT_CHAT" , s_Name );
set_dhudmessage(255, 255, 0, -1.0, 0.13, 0, 6.0, 5.0)
show_dhudmessage( 0 , "%L" , LANG_PLAYER , "ADMIN_CONNECT_HUD" , s_Name );
}
else if(get_user_flags(taskid) & ADMIN_LEVEL_G)
{
client_print_color( 0 , taskid , "%L" , LANG_PLAYER , "WOMEN_CONNECT_CHAT" , s_Name );
set_dhudmessage(153, 51, 153, -1.0, 0.13, 0, 6.0, 5.0)
show_dhudmessage( 0 , "%L" , LANG_PLAYER , "WOMEN_CONNECT_HUD" , s_Name );
}
if( strlen( gs_serverdata[connect_sound] ) > 0 )
client_cmd( 0 , "; spk %s" , gs_serverdata[connect_sound] );