Участник
Пользователь
- Сообщения
- 105
- Реакции
- 6
- Ошибка
-
Не правильно работает, не всегда выдаёт вип!
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5263 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Oct 27 2019 16:23:31
Built from: https://github.com/alliedmodders/amxmodx/commit/15a14a0
Build ID: 5263:15a14a0
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.8.0.739-dev
Build date: 09:46:24 Apr 21 2021 (2566)
Build from: https://github.com/dreamstalker/rehlds/commit/6a916d7
- ReGamedll
-
ReGameDLL version: 5.20.0.505-dev
Build date: 11:06:14 Apr 17 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/e86284b
- Версия Metamod
-
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
- Список метамодулей
-
[ 1] Reunion RUN - reunion.so v0.1.0.137 ini Start Never
[ 2] AMX Mod X RUN - amxmodx.so v1.9.0.5263 ini Start ANY
[ 3] WHBlocker RUN - whblocker.so v1.5.697 ini ANY
[ 4] Revoice RUN - revoice.so v0.1.0.34 ini Start Never
[ 5] ReSemiclip RUN - resemiclip.so v2.3.9 ini ANY
[ 6] ReSRDetector RUN - resrdetector.so v0.1.0 ini ANY
[ 7] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 8] ReAPI RUN - reapi_amxx_i386.so v5.19.0.211-dev pl2 ANY Never
[ 9] AMXX CRACKER RUN - amxx_cracker_amxx_i386.so v1.0 pl2 ANY
[10] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[11] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[12] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[13] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[15] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl2 ANY Never
[16] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
- Список плагинов
-
[ 1] CSStatsX SQL v0.7.4+2 serfreeman1337 aes_csstatsx_sq running
[ 2] Bypass Guard v1.0.1 mx?! bypass_guard.am running
[ 3] Admin Loader v3.5 neygomon admin_loader.am running
[ 4] Lite Translit v2.8 neygomon lite_translit_c running
[ 5] Top Award RBS v15.02.09 SKAJIbnEJIb topaward_rbs.am running
[ 6] Ultimate Flags v29.10.19 by detu mou ultimate_flags. running
[ 7] FreshBans v1.4.2b kanagava fresh_bans.amxx running
[ 8] Admin Chat v1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 9] Admin Commands v1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 10] Anti Flood v1.9.0.5263 AMXX Dev Team antiflood.amxx running
[ 11] Commands Menu v1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 12] Info. Messages v1.9.0.5263 AMXX Dev Team imessage.amxx running
[ 13] Maps Menu v1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 14] NextMap v14.08 SKAJIbnEJIb & AM nextmap.amxx running
[ 15] MapChooser RBS v15.04.22 SKAJIbnEJIb & UF mapchooser_rbs. running
[ 16] Players Menu v1.9.0.5263 AMXX Dev Team plmenu.amxx running
[ 17] Plugin Menu v1.9.0.5263 AMXX Dev Team pluginmenu.amxx running
[ 18] Restrict Weapons v1.9.0.5263 AMXX Dev Team restmenu.amxx running
[ 19] TimeLeft v14.08 SKAJIbnEJIb & AM timeleft.amxx running
[ 20] Scrolling Message v1.9.0.5263 AMXX Dev Team scrollmsg.amxx running
[ 21] Admin Votes v1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 22] CS Misc. Stats v1.9.0.5263 AMXX Dev Team miscstats.amxx running
[ 23] CS Stats Logging v1.9.0.5263 AMXX Dev Team stats_logging.a running
[ 24] Stats Configuration v1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 25] [ReAPI] Healthnade v0.0.2 F@nt0M healthnade.amxx running
[ 26] Autoresponder/Advertis v0.5 MaximusBrood ad_manager.amxx running
[ 27] Rank Menu v0.1 h1k3 rankmenu.amxx running
[ 28] Demo Recorder RBS v15.02.15 SKAJIbnEJIb demorecorder_rb running
[ 29] Parachute v1.0 maeStro parachute.amxx running
[ 30] Colored FITH ReAPI v1.2 CHEL74 colored_fith_an running
[ 31] ReAimDetector API v0.2.2 ReHLDS Team reaimdetector.a running
[ 32] Weapon Icon v1.2 hoboman313/Zenix weapon_icon.amx running
[ 33] GameName Changer v1.0.0 Nordic Warrior GameNameChanger running
[ 34] Reset Score v1.0 Silenttt resetscore.amxx running
[ 35] [AMXX] Date and Time v0.2 ServerBy905 Team DateAndTime.amx running
[ 36] New Plug-In v1.0 Kpoxa premium_menu.am running
[ 37] Weapon Skin System v0.6.0-50 Mistrick weapon_skin_sys running
[ 38] Kills Counter v0.3 serfreeman1337 kills_counter.a running
[ 39] SF Warn Menu v0.1.3 serfreeman1337 sf_admin_warns. running
[ 40] Ultimate Gag v15.04.23 SKAJIbnEJIb ultimate_gag.am running
[ 41] Screen Shot Menu v1.2 Bonaqua | DimaS ss_menu.amxx running
[ 42] Teleport Menu v1.9.0.5235 AMXX Dev Team telemenu.amxx running
[ 43] Killa HP v1.6 jas0n killa_hp.amxx running
[ 44] Lite VoteBan v1.4 neygomon lite_voteban.am running
[ 45] Afk Control v0.5.1 neygomon afk_control.amx running
[ 46] Admin-Check v5.5 p1Mp & S1n[L]Ss Admin-Check.amx running
[ 47] Time Bonus v1.1 SKOBAR1K time_bonus.amxx running
[ 48] Top Round Damage v1.0.4 ReAP Dager* *.* -G- damage_round.am running
[ 49] [ReAPI] Custom Models v1.6.1 neugomon custom_models.a running
[ 50] say /me and /hp v0.3 neygomon say_me_and_hp.a running
[ 51] AES: StatsX Info Rank v0.1 serfreeman1337 aes_statsx_info running
[ 52] Knives Shop v1.2 OverGame knives.amxx running
[ 53] unknown vunknown unknown show_changer_na running
[ 54] Blue Fade v0.1 Stimul blue_fade.amxx running
[ 55] ScoreBoard Title v1.0 xPaw ScoreBoardTitle running
[ 56] Weapon Use Pickup v1.4 fl0wer & Purpose weapon_use_pick running
[ 57] VIPka v1.3.3 neygomon vip_system.amxx running
[ 58] amxmodmenu_new v1.12 Russian MaFi9 menu2.amxx running
[ 59] Menu v1.0 WaT_1 menu.amxx running
[ 60] amxmodmenu_new v1.12 Russian MaFi9 amxmodmenu.amxx running
[ 61] Team Balance Control v1.3.9 gyxoBka TeamBalanceCont running
[ 62] SF MultiJump v0.2 serfreeman1337 sf_multijump.am running
[ 63] Give Menu v1.0 ko2 new_give.amxx running
[ 64] MOTD Model v1.1.0 fl0wer motd_model.amxx running
[ 65] Auto VIP [ Steаm] v1.1 ArtHa auto_steam_vip. running
[ 66] [ReAPI] Random Weapons v2.4.9 neugomon/h1k3 random_weapons_ running
[ 67] Ping Checker v26.0.1 RC1 h1k3 ping_checker.am running
[ 68] No Team Flash v15.03.05 SKAJIbnEJIb NoTeamFlash.amx running
[ 69] [190] SlayLosers RBS v20.06.06 SKAJIbnEJIb & d3 slaylosers_rbs. running
[ 70] Refill Weapon On Kill v0.0.1 Vaqtincha refill_weapon_o running
[ 71] SF Bets v0.1.5 serfreeman1337 sf_bets.amxx running
[ 72] Bullet Damage v0.0.1 ConnorMcLeod damage.amxx running
[ 73] fb_forwards v0.1.4 Kanagava & Realu fb_forwards.amx running
[ 74] Block weapon Gold v0.1 Ace Blockweapon.amx running
[ 75] Custom Smoke v1.0 xPaw, Justick custom_smoke.am running
[ 76] Connect Info v1.0 Hypa_[KZ] connect_info.am running
[ 77] Advanced Experience Sy v0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 78] AES: StatsX v0.5.9 [REA serfreeman1337/s aes_statsx.amxx running
[ 79] AES: CStrike Addon v0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 80] AES: Informer v0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 81] AES: Admin Tools v0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 82] AES: Bonus System v0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 83] AES: Bonus CSTRIKE v0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
- Автор плагина
- detu mou
- Версия плагина
- 2
- Исходный код
-
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#if AMXX_VERSION_NUM < 183
#include <dhudmessage>
#endif
enum _:CVARS {NIGHTMODE, SHOW_TYPE, HUDSYSTEM, REMOVE_FLAG, REMOVE_ALL };
new Array:g_StartTime
new Array:g_EndTime
new Array:g_Flag
new Array:g_IgnoreFlag
new Float:g_posX;
new Float:g_posY;
new Float:g_time;
static szRgbRRR[8], szRgbGGG[8], szRgbBBB[8], szPosX[8], szPosY[8], szHoldTime[8], szHudType[8];
new szHudSettings[128], g_rgbR, g_rgbG, g_rgbB, g_type, Holiday_Start[384], Holiday_End[384], Holiday_Flag[16], Holiday_Ignore[16];
new g_bMode_Holiday, g_bMode_Night, give_holiday, give_night, ig_night, ig_holiday;
new g_pCvars[CVARS], g_Holiday_StartNum, g_Current, Night_Ignore[16];
public plugin_precache(){
Init_Cvars();
LoadSettings();
}
public plugin_init(){
g_StartTime=ArrayCreate(384);
g_EndTime=ArrayCreate(384);
g_Flag=ArrayCreate(16);
g_IgnoreFlag=ArrayCreate(16);
register_plugin("Ultimate Flags", "29.10.19", "by detu mou");
register_dictionary("ultimate_flags.txt");
register_event("ResetHUD","spawn_show","b","");
register_srvcmd("flags_holiday", "setholiday");
new szPath[64];
get_localinfo("amxx_configsdir", szPath, charsmax(szPath));
ExecConfigs(szPath);
}
stock Init_Cvars(){
g_pCvars[HUDSYSTEM] = register_cvar("flags_hud", "");
g_pCvars[NIGHTMODE] = register_cvar("flags_night", "");
g_pCvars[SHOW_TYPE] = register_cvar("flags_info", "1");
g_pCvars[REMOVE_ALL] = register_cvar("flags_remove", "1");
g_pCvars[REMOVE_FLAG] = register_cvar("flags_z", "1");
}
public LoadSettings(){
get_pcvar_string(g_pCvars[HUDSYSTEM], szHudSettings, charsmax(szHudSettings));
parse(szHudSettings, szRgbRRR, charsmax(szRgbRRR), szRgbGGG, charsmax(szRgbGGG), szRgbBBB, charsmax(szRgbBBB), szPosX, charsmax(szPosX), szPosY, charsmax(szPosY), szHoldTime, charsmax(szHoldTime), szHudType, charsmax(szHudType));
g_rgbR = str_to_num(szRgbRRR);
g_rgbG = str_to_num(szRgbGGG);
g_rgbB = str_to_num(szRgbBBB);
g_type = str_to_num(szHudType);
g_posX = str_to_float(szPosX);
g_posY = str_to_float(szPosY);
g_time = str_to_float(szHoldTime);
}
public client_putinserver(id){
if(g_bMode_Night){
set_task(10.0, "ConnectNight");
}
if(g_bMode_Holiday){
set_task(10.0, "ConnectHoliday");
}
}
public spawn_show(id){
set_task(0.1,"Task_Spawns",1,_,_,_,1)
}
public Task_Spawns(id){
TaskCheck_Holiday();
TaskCheck_Night();
if(g_bMode_Night){
if(get_pcvar_num(g_pCvars[REMOVE_FLAG])){
remove_user_flags(id, read_flags("z"));
}
if(~get_user_flags(id) & ig_night){
set_user_flags(id,give_night);
//ColorChat(0, NORMAL, "^1ТЕСТ^3 НОЧНОЙ РЕЖИМ ВКЛЮЧЕН И РАБОТАЕТ^1.");
}
}
if(g_bMode_Holiday){
if(get_pcvar_num(g_pCvars[REMOVE_FLAG])){
remove_user_flags(id, read_flags("z"));
}
if(~get_user_flags(id) & ig_holiday){
set_user_flags(id,give_holiday);
//ColorChat(0, NORMAL, "^1ТЕСТ^3 HOLIDAY РЕЖИМ ВКЛЮЧЕН И РАБОТАЕТ^1.");
}
}
}
public TaskCheck_Holiday(){
if (g_Current >= g_Holiday_StartNum)
g_Current = 0
if (g_Holiday_StartNum==0){
return;
}
ArrayGetString(g_StartTime, g_Current, Holiday_Start, charsmax(Holiday_Start));
ArrayGetString(g_EndTime, g_Current, Holiday_End, charsmax(Holiday_End));
ArrayGetString(g_Flag, g_Current, Holiday_Flag, charsmax(Holiday_Flag));
ArrayGetString(g_IgnoreFlag, g_Current, Holiday_Ignore, charsmax(Holiday_Ignore));
give_holiday = read_flags(Holiday_Flag);
ig_holiday = read_flags(Holiday_Ignore);
new bOldMode_Holiday = g_bMode_Holiday;
if(parse_time(Holiday_Start, "%d.%m.%y %H:%M") != parse_time(Holiday_End, "%d.%m.%y %H:%M") && (parse_time(Holiday_Start, "%d.%m.%y %H:%M") == get_systime() && parse_time(Holiday_End, "%d.%m.%y %H:%M") == get_systime())){
g_bMode_Holiday = true;
}else if(parse_time(Holiday_Start, "%d.%m.%y %H:%M") == parse_time(Holiday_End, "%d.%m.%y %H:%M")){
g_bMode_Holiday = true;
}else if(parse_time(Holiday_Start, "%d.%m.%y %H:%M") > parse_time(Holiday_End, "%d.%m.%y %H:%M") && (parse_time(Holiday_Start, "%d.%m.%y %H:%M") < get_systime() < parse_time(Holiday_End, "%d.%m.%y %H:%M"))){
g_bMode_Holiday = true;
}else if(parse_time(Holiday_Start, "%d.%m.%y %H:%M") < get_systime() < parse_time(Holiday_End, "%d.%m.%y %H:%M")){
g_bMode_Holiday = true;
}else{
g_bMode_Holiday = false;
++g_Current;
}
if(g_bMode_Holiday && !bOldMode_Holiday){
set_task(20.0, "StartHolidayShow");
}
if(!g_bMode_Holiday && bOldMode_Holiday){
set_task(20.0, "StopshowHoliday");
++g_Current;
}
}
public TaskCheck_Night(){
new szNight_Time[128], Night_Start[8], Night_End[8], Night_Flag[64], iStartHour, iStartMinutes, iEndHour, iEndMinutes;
get_pcvar_string(g_pCvars[NIGHTMODE], szNight_Time, charsmax(szNight_Time));
parse(szNight_Time, Night_Start, charsmax(Night_Start), Night_End, charsmax(Night_End), Night_Flag, charsmax(Night_Flag), Night_Ignore, charsmax(Night_Ignore));
get_int_time(Night_Start, iStartHour, iStartMinutes);
get_int_time(Night_End, iEndHour, iEndMinutes);
give_night = read_flags(Night_Flag)
ig_night = read_flags(Night_Ignore)
new iCurHour, iCurMinutes; time(iCurHour, iCurMinutes);
new bOldMode_Night = g_bMode_Night;
if(iStartHour != iEndHour && (iStartHour == iCurHour && iCurMinutes >= iStartMinutes || iEndHour == iCurHour && iCurMinutes < iEndMinutes)){
g_bMode_Night = true;
}else if(iStartHour == iEndHour && iStartMinutes <= iCurMinutes < iEndMinutes){
g_bMode_Night = true;
}else if(iStartHour > iEndHour && (iStartHour < iCurHour < 24 || 0 <= iCurHour < iEndHour)){
g_bMode_Night = true;
}else if(iStartHour < iCurHour < iEndHour){
g_bMode_Night = true;
}else{
g_bMode_Night = false;
}
if(g_bMode_Night && !bOldMode_Night){
set_task(15.0, "StartNightShow");
}
if(!g_bMode_Night && bOldMode_Night){
set_task(15.0, "StopshowNight");
}
}
public setholiday(){
read_argv(1, Holiday_Start, charsmax(Holiday_Start))
read_argv(2, Holiday_End, charsmax(Holiday_End))
read_argv(3, Holiday_Flag, charsmax(Holiday_Flag))
read_argv(4, Holiday_Ignore, charsmax(Holiday_Ignore))
g_Holiday_StartNum++
ArrayPushString(g_StartTime, Holiday_Start);
ArrayPushString(g_EndTime, Holiday_End);
ArrayPushString(g_Flag, Holiday_Flag);
ArrayPushString(g_IgnoreFlag, Holiday_Ignore);
return PLUGIN_HANDLED
}
public StartHolidayShow(id){
ArrayGetString(g_StartTime, g_Current, Holiday_Start, charsmax(Holiday_Start));
ArrayGetString(g_EndTime, g_Current, Holiday_End, charsmax(Holiday_End));
ColorChat(0, NORMAL, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_START_CHAT", Holiday_Start, Holiday_End);
if (g_type){
set_dhudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00);
show_dhudmessage(0, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_START_HUD", Holiday_Start, Holiday_End);
}else{
set_hudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00, -1);
show_hudmessage(0, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_START_HUD", Holiday_Start, Holiday_End);
}
return PLUGIN_HANDLED
}
public StartNightShow(id){
ColorChat(0, NORMAL, "%L", LANG_PLAYER, "FLAGS_NIGHT_START_CHAT");
if (g_type){
set_dhudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00);
show_dhudmessage(0, "%L", LANG_PLAYER, "FLAGS_NIGHT_START_HUD");
}else{
set_hudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00, -1);
show_hudmessage(0, "%L", LANG_PLAYER, "FLAGS_NIGHT_START_HUD");
}
return PLUGIN_HANDLED
}
ExecConfigs(amxxcfgdir[]){
new szFullDir[128];
formatex(szFullDir, charsmax(szFullDir), "%s/ultimate_flags.cfg", amxxcfgdir);
ExecCfg(szFullDir);
}
ExecCfg(const cfg[]){
server_cmd("exec %s", cfg);
server_exec();
}
get_int_time(string[], &hour, &minutes){
new left[4], right[4]; strtok(string, left, charsmax(left), right, charsmax(right), ':');
hour = str_to_num(left);
minutes = str_to_num(right);
}
public ConnectHoliday(id){
ArrayGetString(g_StartTime, g_Current, Holiday_Start, charsmax(Holiday_Start));
ArrayGetString(g_EndTime, g_Current, Holiday_End, charsmax(Holiday_End));
if(get_pcvar_num(g_pCvars[SHOW_TYPE]) == 1){
if (g_type){
set_dhudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00);
show_dhudmessage(id, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_START_HUD", Holiday_Start, Holiday_End);
}else{
set_hudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00, -1);
show_hudmessage(id, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_START_HUD", Holiday_Start, Holiday_End);
}
}
if(get_pcvar_num(g_pCvars[SHOW_TYPE]) == 2){
ColorChat(id, NORMAL, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_START_CHAT", Holiday_Start, Holiday_End);
}
if(get_pcvar_num(g_pCvars[SHOW_TYPE]) == 3){
ColorChat(id, NORMAL, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_START_CHAT", Holiday_Start, Holiday_End);
if (g_type){
set_dhudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00);
show_dhudmessage(id, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_START_HUD", Holiday_Start, Holiday_End);
}else{
set_hudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00, -1);
show_hudmessage(id, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_START_HUD", Holiday_Start, Holiday_End);
}
}
return PLUGIN_HANDLED
}
public ConnectNight(id){
if(get_pcvar_num(g_pCvars[SHOW_TYPE]) == 1){
if (g_type){
set_dhudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00);
show_dhudmessage(id, "%L", LANG_PLAYER, "FLAGS_NIGHT_START_HUD");
}else{
set_hudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00, -1);
show_hudmessage(id, "%L", LANG_PLAYER, "FLAGS_NIGHT_START_HUD");
}
}
if(get_pcvar_num(g_pCvars[SHOW_TYPE]) == 2){
ColorChat(id, NORMAL, "%L", LANG_PLAYER, "FLAGS_NIGHT_START_CHAT");
}
if(get_pcvar_num(g_pCvars[SHOW_TYPE]) == 3){
ColorChat(id, NORMAL, "%L", LANG_PLAYER, "FLAGS_NIGHT_START_CHAT");
if (g_type){
set_dhudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00);
show_dhudmessage(id, "%L", LANG_PLAYER, "FLAGS_NIGHT_START_HUD");
}else{
set_hudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00, -1);
show_hudmessage(id, "%L", LANG_PLAYER, "FLAGS_NIGHT_START_HUD");
}
}
return PLUGIN_HANDLED
}
public StopshowHoliday(id){
if(get_pcvar_num(g_pCvars[REMOVE_ALL]) == 1){
server_cmd("amx_reloadadmins");
if (g_type){
set_dhudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00);
show_dhudmessage(id, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_STOP_HUD");
}else{
set_hudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00, -1);
show_hudmessage(id, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_STOP_HUD");
}
}
if(get_pcvar_num(g_pCvars[REMOVE_ALL]) == 2){
server_cmd("amx_reloadadmins");
ColorChat(id, NORMAL, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_STOP_CHAT");
}
if(get_pcvar_num(g_pCvars[REMOVE_ALL]) == 3){
server_cmd("amx_reloadadmins");
ColorChat(id, NORMAL, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_STOP_CHAT");
if (g_type){
set_dhudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00);
show_dhudmessage(id, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_STOP_HUD");
}else{
set_hudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00, -1);
show_hudmessage(id, "%L", LANG_PLAYER, "FLAGS_HOLIDAY_STOP_HUD");
}
}
return PLUGIN_HANDLED
}
public StopshowNight(id){
if(get_pcvar_num(g_pCvars[REMOVE_ALL]) == 1){
server_cmd("amx_reloadadmins");
if (g_type){
set_dhudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00);
show_dhudmessage(id, "%L", LANG_PLAYER, "FLAGS_NIGHT_STOP_HUD");
}else{
set_hudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00, -1);
show_hudmessage(id, "%L", LANG_PLAYER, "FLAGS_NIGHT_STOP_HUD");
}
}
if(get_pcvar_num(g_pCvars[REMOVE_ALL]) == 2){
ColorChat(id, NORMAL, "%L", LANG_PLAYER, "FLAGS_NIGHT_STOP_CHAT");
}
if(get_pcvar_num(g_pCvars[REMOVE_ALL]) == 3){
server_cmd("amx_reloadadmins");
ColorChat(id, NORMAL, "%L", LANG_PLAYER, "FLAGS_NIGHT_STOP_CHAT");
if (g_type){
set_dhudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00);
show_dhudmessage(id, "%L", LANG_PLAYER, "FLAGS_NIGHT_STOP_HUD");
}else{
set_hudmessage(g_rgbR, g_rgbG, g_rgbB, g_posX, g_posY, 0, 0.00, g_time, 0.00, 0.00, -1);
show_hudmessage(id, "%L", LANG_PLAYER, "FLAGS_NIGHT_STOP_HUD");
}
}
return PLUGIN_HANDLED
}
public plugin_end(){
ArrayDestroy(g_StartTime);
ArrayDestroy(g_EndTime);
ArrayDestroy(g_Flag);
ArrayDestroy(g_IgnoreFlag);
}
Проблема в том что когда заходишь на сервер высвечивается в чат сообщение хотя я поставил hud сообщением, что делать? (настройка в кфг файле)
ещё одна проблема в том что он не всегда выдаёт игрокам вип (тоесть не всем), как ему захочется
ещё одна проблема в том что он не всегда выдаёт игрокам вип (тоесть не всем), как ему захочется
Download all Attachments
-
13.1 KB Просмотры: 177
-
3.4 KB Просмотры: 181
-
2.9 KB Просмотры: 156