gesk1995
Пользователь
- Регистрация
- 8 Июн 2017
- Сообщения
- 339
- Симпатии
- 12
- Пол
- Мужской
хай всем , Хочу сделать оповещения в чат и Дхуд Девушка + Админ , когда ставлю себе права (ds ) то приставка работает , а когда ставлю полные права Админа (abcdefijmntus ) то почему то приставка Админ+ вип , но почему , подскажите ..
Так тоже пробывал
new const WOMEN_ADMIN_FLAGS = ADMIN_BAN | ADMIN_LEVEL_G | ADMIN_LEVEL_H;
Так тоже пробывал
new const WOMEN_ADMIN_FLAGS = ADMIN_BAN | ADMIN_LEVEL_G | ADMIN_LEVEL_H;
Код:
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_RCON;
new const WOMEN_ADMIN_FLAGS = ADMIN_BAN | ADMIN_LEVEL_G;
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:isWomenAdmin = bool:((iFlags & WOMEN_ADMIN_FLAGS) == WOMEN_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)
{
ChatColor(0, "%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)
{
ChatColor(0, "%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(isWomenAdmin)
{
ChatColor(0, "%L" , LANG_PLAYER , "WOMEN_ADMIN_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_ADMIN_CONNECT_HUD" , s_Name );
}
else if (isWomenVip)
{
ChatColor(0, "%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)
{
ChatColor(0, "%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)
{
ChatColor(0, "%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)
{
ChatColor(0, "%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 );
}