Пользователь
- Сообщения
- 33
- Реакции
- 0
- Ошибка
-
хай всем , Хочу сделать оповещения в чат и Дхуд Девушка + Админ , когда ставлю себе права (ds ) то приставка работает , а когда ставлю полные права Админа (abcdefijmntus ) то почему то приставка Админ+ вип , но почему , подскажите ..
Так тоже пробывал
new const WOMEN_ADMIN_FLAGS = ADMIN_BAN | ADMIN_LEVEL_G | ADMIN_LEVEL_H;
Человек который помог тут сделать Девушка + ВИП , ОТЗОВИСЬ только видимо ты свой код знаешь..
- ОС
- Linux
- Билд
-
REHLDS
- ReGamedll
-
5.3.0.222
- Список метамодулей
-
meta list
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] VoiceTranscoder RUN - VoiceTranscoder. v2017RC3 ini ANY ANY
[ 2] AMX Mod X RUN - amxmodx_mm_i386. v1.8.3-R ini Start ANY
[ 3] Reunion RUN - reunion_mm_i386. v0.1.75 ini Start Never
[ 4] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 5] Rechecker RUN - rechecker_mm_i38 v2.4 ini Chlvl ANY
[ 6] ProcessCmds RUN - processcmds_mm_i v1.1.3 ini Start Never
[ 7] ReSRDetector RUN - resrdetector_mm_ v0.1.0 ini Chlvl ANY
[ 8] WHBlocker RUN - whblocker_mm_i38 v1.5.692 ini Chlvl ANY
[ 9] Fun RUN - fun_amxx_i386.so v1.8.3-d pl2 ANY ANY
[10] Engine RUN - engine_amxx_i386 v1.8.3-d pl2 ANY ANY
[11] FakeMeta RUN - fakemeta_amxx_i3 v1.8.3-d pl2 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx v1.8.3-d pl2 ANY ANY
[13] CStrike RUN - cstrike_amxx_i38 v1.8.3-R pl2 ANY ANY
[14] ReAPI RUN - reapi_amxx_i386. v5.2.0.1 pl2 ANY Never
[15] CSX RUN - csx_amxx_i386.so v1.8.3-R pl2 ANY ANY
[16] MySQL RUN - mysql_amxx_i386. v1.8.3-d pl2 ANY ANY
16 plugins, 16 running
- Список плагинов
-
amx_plugins
Currently loaded plugins:
name version author file status
[ 1] [182] AMXBans RBS 17.10.30 Larte Team & SKA amxbans_rbs.amx running
[ 2] Admin Commands 1.8.3 AMXX Dev Team admincmd.amxx running
[ 3] Slots Reservation 1.8.3 AMXX Dev Team adminslots.amxx running
[ 4] Multi-Lingual System 1.8.3 AMXX Dev Team multilingual.am running
[ 5] Commands Menu 1.8.3-Re AMXX Dev Team cmdmenu.amxx running
[ 6] Players Menu 1.7 neugomon players_menu.am running
[ 7] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 8] Plugin Menu 1.8.3 AMXX Dev Team pluginmenu.amxx running
[ 9] Admin Chat 1.8.3 AMXX Dev Team adminchat.amxx running
[ 10] Anti Flood 1.8.3 AMXX Dev Team antiflood.amxx running
[ 11] Admin Votes 1.8.3 AMXX Dev Team adminvote.amxx running
[ 12] TimeLeft 1.8.3-Re AMXX Dev Team timeleft.amxx running
[ 13] Restrict Weapons 1.8.3-Re AMXX Dev Team restmenu.amxx running
[ 14] Pause Plugins 1.8.3 AMXX Dev Team pausecfg.amxx running
[ 15] Stats Configuration 15.07.15 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 16] StatsX RBS 15.07.24 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 17] [ReAPI] VIPka 1.3.9 neygomon, Dager* re_vipka.amxx running
[ 18] Golden AK-47 & M4A1 1.2a neygomon golden_ak_and_m running
[ 19] NameChangeTime 0.0.1 Vaqtincha block_change_ni running
[ 20] RealWorld 2.4 Authors real_world.amxx running
[ 21] [ReAPI] No Reset MOney 0.0.5 Vaqtincha Reset_money.amx running
[ 22] [182] Chat RBS 17.10.30 SKAJIbnEJIb chat_rbs.amxx running
[ 23] [183] Army Ranks Ultim 17.10.30 SKAJIbnEJIb army_ranks_ulti running
[ 24] Advanced Gag 1.9.0 neygomon amx_gag.amxx running
[ 25] Anti Reklama 1.1 MarcaD anti_reklama.am running
[ 26] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 27] DemoRecoder 1.1 neygomon amx_demorec.amx running
[ 28] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 29] [183] AC Spectator ESP 17.08.09 SKAJIbnEJIb & Ko ac_esp.amxx running
[ 30] [ReAPI] AWPoff 1.2 PAffAEJIkA :3 awp_off.amxx running
[ 31] [183] AR Vampire 17.08.22 SKAJIbnEJIb ar_vampire.amxx running
[ 32] Menus Front-End 1.5 untest neugomon menufront_enda. running
[ 33] Lite MapChooser 2.6 neygomon mapchooserPubli running
[ 34] Weapon Admin Menu 0.1 Nesquik weaponmenu.amxx running
[ 35] Weapon Icon 1.2 hoboman313/Zenix weapon_icon.amx running
[ 36] Win Messages 1.0 neygomon win_messages.am running
[ 37] Ping Control 1.31 neygomon Ping_Control.am running
[ 38] Player Votes 1.0 neugomon player_votes.am running
[ 39] New Plugin 1.0 Stimul No_damage.amxx running
[ 40] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 41] VIP RBS 15.07.18 SKAJIbnEJIb vip_rbs.amxx running
[ 42] CsStats MySQL 15.07.15 SKAJIbnEJIb csstats_mysql.a running
[ 43] [ReAPI] Lite TeamBalan 2.3 neugomon lite_balancer_2 running
[ 44] Descriptive 'Fire in t 0.1 VEN GrenadeInfo.amx running
[ 45] Bomb Count Down HUD/Vo 0.2 RuS Mawe4ka117 bomb_hud.amxx running
[ 46] Custom Models 1.3.2 neugomon custom_models.a running
[ 47] Silly C4 1.1 Cheap_Suit sillyc4.amxx running
[ 48] Screen Player 15.09.25 SKAJIbnEJIb screen_player.a running
[ 49] CS Shop 1.1b neygomon & edite cs_shop.amxx running
[ 50] Top Award RBS 15.07.15 SKAJIbnEJIb topaward_rbs.am running
[ 51] Time for info 1.0 neugomon time_for_info.a running
[ 52] Money HUD Effect 1.15 Sh!nE / Safety1s money_hud_effec running
[ 53] unknown unknown unknown gamename_change running
[ 54] Admin Damager for Spec 1.0 neugomon damager_for_spe running
[ 55] HUD Message 1.5 neygomon hud_message.amx running
[ 56] [ReAPI] No Team Flash 0.0.2 Vaqtincha no_team_flash.a running
[ 57] SpecList 1.4 pUzzlik spectlist.amxx running
[ 58] Mode 2x2 2.5re s1lent mode.amxx running
[ 59] Steam Bonus 1.3e Gudaus steam_bonus.amx running
[ 60] Check Steam Players 1.0 Leo_[BH] steam_check.amx running
60 plugins, 60 running
- Исходный код
-
ноу
Код:
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 );
}
В этой теме было размещено решение! Перейти к решению.