public taskJoin( taskid )
{
if( !is_user_admin( taskid ) )
return PLUGIN_HANDLED;
new s_Name[32];
get_user_name( taskid , s_Name , charsmax( s_Name ) );
StartCheckPlayerAccess(taskid);
new const SUPER_ADMIN_FLAGS = ADMIN_BAN | ADMIN_RCON | ADMIN_LEVEL_H;
new const VIP_ADMIN_FLAGS = ADMIN_BAN | ADMIN_LEVEL_H;
new const WOMEN_VIP_FLAGS = ADMIN_LEVEL_H | ADMIN_LEVEL_G;
new iFlags = get_user_flags(taskid);
new bool:isSuperAdmin = bool:((iFlags & SUPER_ADMIN_FLAGS) == SUPER_ADMIN_FLAGS);
new bool:isVipAdmin = bool:((iFlags & VIP_ADMIN_FLAGS) == VIP_ADMIN_FLAGS);
new bool:isWomenVip = bool:((iFlags & WOMEN_VIP_FLAGS) == WOMEN_VIP_FLAGS);
new bool:isAdmin = bool:(iFlags & ADMIN_BAN);
new bool:isVip = bool:(iFlags & ADMIN_LEVEL_H);
new bool:isWomen = bool:(iFlags & ADMIN_LEVEL_G);
if (isSuperAdmin)
{
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 (isVipAdmin)
{
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 (isWomenVip)
{
client_print_color(0, taskid, "%L", LANG_PLAYER, "VIP_WOMEN_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_WOMEN_CONNECT_HUD" , s_Name );
}
else if (isAdmin)
{
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(isVip)
{
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(isWomen)
{
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] );
return 1;
}