Не работает плагин невидимых наблюдателей

Статус
В этой теме нельзя размещать новые ответы.

tsybash

AMXX CRACKER
Сообщения
37
Реакции
-22
Ошибка
is_user_hltv
ОС
Windows
Amx Mod X
AMX Mod X 1.9.0.5271 (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: Jun 24 2020 13:53:37
Built from: https://github.com/alliedmodders/amxmodx/commit/5eea3e5b
Build ID: 5271:5eea3e5b
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.11.0.767-dev
Build date: 03:14:15 Oct 25 2021 (2753)
Build from: https://github.com/dreamstalker/rehlds/commit/471158b
ReGamedll
ReGameDLL version: 5.21.0.556-dev
Build date: 08:44:42 Jul 22 2022
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/1081301
Версия Metamod
Metamod-r v1.3.0.131, API (5:13)
Metamod-r build: 18:51:28 Jul 11 2022
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/adc9414
Список метамодулей
[ 1] SafeNameAndChat  RUN   -    safenameandchat.dll     v1.1            ini  ANY   ANY
[ 2] Reunion RUN - reunion_mm.dll v0.1.92d ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm.dll v0.1.6 ini Start Never
[ 4] VoiceTranscoder RUN - voicetranscoder.dll v2017RC5 ini ANY ANY
[ 5] AMX Mod X RUN - amxmodx_mm.dll v1.9.0.5271 ini Start ANY
[ 6] Rechecker RUN - rechecker_mm.dll v2.7 ini Chlvl ANY
[ 7] ReSemiclip RUN - resemiclip_mm.dll v2.3.9 ini Chlvl ANY
[ 8] WHBlocker RUN - whblocker_mm.dll v1.5.697 ini Chlvl ANY
[ 9] POD-Bot mm RUN - podbot_mm.dll vV3B24 ini Chlvl ANY
[10] Fun RUN - fun_amxx.dll v1.9.0.5271 pl5 ANY ANY
[11] Engine RUN - engine_amxx.dll v1.9.0.5271 pl5 ANY ANY
[12] FakeMeta RUN - fakemeta_amxx.dll v1.9.0.5271 pl5 ANY ANY
[13] GeoIP RUN - geoip_amxx.dll v1.9.0.5271 pl5 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx.dll v1.9.0.5271 pl5 ANY ANY
[15] AMXX CRACKER RUN - amxx_cracker_amxx.dll v1.0 pl5 ANY ANY
[16] ReAPI RUN - reapi_amxx.dll v5.6.0.157-dev pl5 ANY Never
[17] ReAimDetector RUN - reaimdetector_amxx.dll v0.2.2 pl5 ANY Never
[18] Orpheu RUN - orpheu_amxx.dll v2.6.3 pl5 ANY ANY
[19] CSX RUN - csx_amxx.dll v1.9.0.5271 pl5 ANY ANY
[20] CStrike RUN - cstrike_amxx.dll v1.9.0.5271 pl5 ANY ANY
20 plugins, 20 running
Список плагинов
[  1] Invisible Spectator     1.0         ReHLDS Team       invisible_spect  running
[ 2] Save map 1.0 Brian savemap.amxx running
[ 3] Stats new 1.0 meNe top15.amxx running
[ 4] Ping Faker 1.5a MeRcyLeZZ pingfaker.amxx running
[ 5] POD-Bot Menu 1.3 g4s|figurE.09 amxx_podbotmenu running
[ 6] Unreal Smoke 0.0.1 karaulov UnrealSmoke.amx running
[ 7] C4 Real Timer 15.02.10 Sanlerus c4_realtimer.am running
[ 8] BuyMenu RBS 15.04.22 SKAJIbnEJIb buymenu_rbs.amx running
[ 9] Restrict Weapons 15.02.19 AMXX Dev Team & restmenu_rbs.am running
[ 10] Army Ranks Ultimate 15.03.26 SKAJIbnEJIb army_ranks_ulti running
[ 11] AR Vampire 15.02.24 SKAJIbnEJIb ar_vampire.amxx running
[ 12] Chat RBS 15.02.28 SKAJIbnEJIb chat_rbs.amxx running
[ 13] BLock command 1.0 Mr. Frost status.amxx running
[ 14] Ledge Mantle 1.1 BARRY. ledge_mantle.am running
[ 15] Realistic Bullet Physi 2.0.1 EFFx realisticBullet running
[ 16] Steam Community Nick 1.0.4 Kia steamcomnick.am running
[ 17] New Plug-In 1.0 DarkGL statustext_test running
[ 18] hudTextArgs_Blocker 0.1 Admin hudTextArgs_Blo running
[ 19] Spectator Banner Ads 0.1.16 iG_os spec_banner_ads running
[ 20] Spectator Players Type 1.0 Nordic Warrior spec_type.amxx running
[ 21] [GM] VIP Test 1.2.0 [GM] NWC gm_vip_test.amx running
[ 22] BHOP BLOCK 1.6 Leo_[BH] bhop_block.amxx running
[ 23] Night DeathMatch 15.02.07 ShaTalKiN night_dm.amxx running
[ 24] Info. Messages 1.10.0.546 AMXX Dev Team imessage.amxx running
[ 25] Admin Base 1.10.0.546 AMXX Dev Team admin.amxx running
[ 26] Admin Votes 1.10.0.546 AMXX Dev Team adminvote.amxx running
[ 27] Pause Plugins 1.10.0.546 AMXX Dev Team pausecfg.amxx running
[ 28] Stats Configuration 1.10.0.546 AMXX Dev Team statscfg.amxx running
[ 29] Steal the Bomb 3.2 VEN/Satan stealthebomb.am running
[ 30] Online Map 2.5 Sebastian Gross onlinemap.amxx running
[ 31] GHW Pet Followers 2.2 GHW_Chronic GHW_Pet_Followe running
[ 32] CMD SHOW 2.0 Seroff cmd_show.amxx running
[ 33] CS Pickup Multiple Wea 2.0 GHW_Chronic GHW_Weap_Pickup running
[ 34] Kill Healed 2.1 Dev!l & [TagPro] kill_show.amxx running
[ 35] Team Score 2.0 REaL team_score.amxx running
[ 36] HL Weapons Floating 2.0.0 tuty HL_WeaponFloati running
[ 37] ScoreBoard Title 1.0 xPaw ScoreBoardTitle running
[ 38] HLTV Voice Record Fix serfreeman1337 hltvVoiceFix.am running
[ 39] Bullet Whizz 1.4 Cheap_Suit Bullet_Whizz.am running
[ 40] Vox Round Say 1.3 God@Dorin round_chat_msg. running
[ 41] warmup 0.4 Andrius Bentkus warmup.amxx running
[ 42] unknown unknown unknown ShowChangerName running
[ 43] CZ Tutor Messages - En 1.0 Sneaky.amxx | Gl gmst_cztutor_en running
[ 44] Tutor Manager 1.0 Dorus tutor_manager.a running
[ 45] Random Skies 1.1 tuty randomskies.amx running
[ 46] Bot Features 0.0.5 Vaqtincha BotFeatures.amx running
[ 47] Captcha 1.5 Factor CaptchaV1.5.amx running
[ 48] The Smartest 1.0 Krevedko sam_umniy.amxx running
[ 49] Reload Status Bar 0.1.1 VEN reload_status.a running
[ 50] Hostage no death T 1.0 Brute hostage_no_deat running
[ 51] DeathBones 1.1.0 mogel deathbones.amxx running
[ 52] Healthplus 1.0.4 PurposeLess healthplus.amxx running
[ 53] Ultimate Effects 15.03.25 jtp,KRoTaL,se7h ultimate_effect running
[ 54] Team Flash Control 1.1 Tender Team_Flash_Cont running
[ 55] HUD HP-AP 1.0 Error hp_ap.amxx running
[ 56] Auto Client CMD 1.0 Seroff autocmd.amxx running
[ 57] Unlimited ChooseTeam ( 1.0 ConnorMcLeod & p unlimited_choos running
[ 58] VIP Score Board 1.0 Leo_[BH] vip_score_board running
[ 59] Kills Counter 1.0 Safety1st killscounter.am running
[ 60] Bloody Knife 0.2.1 Dontask-jello bloodyknife.amx running
[ 61] Shake It baby! 1.0 ThantiK amx_shake.amxx running
[ 62] Bomb Plant Money Bonus 1.0 Locks amx_plant_bonus running
[ 63] Auto Screen 1.0 F4RR3LL auto_screen.amx running
[ 64] Realistic FlashBang 1.0.1 GlaDiuS Realistic_Flash running
[ 65] Migraine 0.0.4 ConnorMcLeod migraine.amxx running
[ 66] Marker RBS 15.01.06 stupok69 & SKAJI marker_rbs.amxx running
[ 67] Gas Grenades 1.6 ConnorMcLeod zp_gasnades.amx running
[ 68] HE Knockback 1.0 ThantiK amx_heconc.amxx running
[ 69] Weapons Skins Manager 0.0.1 Vaqtincha weapons_skins_m running
[ 70] Advanced Kill Assists 1.3d Xelson next21_kill_ass running
[ 71] CT Bomb Defusing 1.0 voed ct_bomb_defusin running
[ 72] GameName Changer 1.0 mx?! gamename_change running
[ 73] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 74] No Players Map 0.1 X-factor noplayers_map.a running
[ 75] C4 Crosshair Delete 1.0 Subb98 c4_crosshair_de running
[ 76] Team Join Management 0.3 Exolent team_join.amxx running
[ 77] Advanced Tracers 0.1 [email protected] advanced_tracer running
[ 78] auto reload on newroun 1.0 ConnorMcLeod autoreload_on_n running
[ 79] Team Grenade Trail 1.2 Numb team_grenade_tr running
[ 80] All Death Beams 0.9 SpaceDude all_death_beams running
[ 81] C4 Timer 0.0.1 ConnorMcLeod c4_timer.amxx running
[ 82] Say Signal 1.0 [jsn] say_signal.amxx running
[ 83] Obscura Cam 0.7 Nani (SkumTomteN ObscuraCam_0.7. running
[ 84] Timeleft as Roundtime AcidoX 1.2 TimeleftRoundti running
[ 85] Stuck RBS 15.01.06 NL)Ramon(NL & SK stuck_rbs.amxx running
[ 86] KnifeDuel Improved 15.03.17 NIXON knifeduel_impro running
[ 87] Map Manager: Core 3.0.7 Mistrick map_manager_cor running
[ 88] Map Manager: Scheduler 0.1.5 Mistrick map_manager_sch running
[ 89] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[ 90] Map Manager: Nominatio 0.1.2 Mistrick map_manager_nom running
[ 91] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 92] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 93] Map Manager: Effects 0.0.9 Mistrick map_manager_eff running
[ 94] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 95] Map Manager: GUI 0.0.4 Mistrick map_manager_gui running
95 plugins, 95 running
Автор плагина
dev
Версия плагина
1.0
Исходный код
#include <amxmodx>                                                              
#include <reapi>

#pragma semicolon 1

///Burayi kendinize gore ayarlayaniz
#define ACCESS_LEVEL_INVISIBLE (ADMIN_USER) // Amx_Spectate komutunu kullanma yetkisi

/*(Kapatmak icin basina // isaretini koyup pasiflestirin | Acmak icin isaretleri kaldirin) */
#define LOCK_SAY // Spec takiminin say ve say_team kullanma yasagi
#define AUTO_INVISIBLE_SPECTATOR // Spec takiminin otomatik gorunmez olmasi
///Burayi kendinize gore ayarlayaniz

new HookChain:g_hSV_WriteFullClientUpdate;
new bool:g_bPlayerInVisible[33];

/// === CSDURAGI.COM ===
// Bu Eklenti PurposeLess tarafindan ReHLDS Team kodlari kullanilarak yeniden, en iyi sekilde kodlanmistir ve Turkce'ye ceviri yapilmistir.
//Eklenti kodlarini editleyip veya editlemeden baska forumlarda ben yaptim diye sunan arkadaslara hakkimi helal etmiyorum. Izinsiz hicbir forumda paylasmayiniz.
/// === CSDURAGI.COM ===

public plugin_init() {
register_plugin("Invisible Spectator", "1.0", "ReHLDS Team");

#if defined LOCK_SAY
register_clcmd("say", "clcmd_say");
register_clcmd("say_team", "clcmd_say");
#endif

#if defined AUTO_INVISIBLE_SPECTATOR
register_event("TeamInfo", "Event_TeamInfo", "a", "2=TERRORIST", "2=CT", "2=SPECTATOR");
#else
register_event("TeamInfo", "Event_TeamInfo", "a", "2=TERRORIST", "2=CT");
register_clcmd("amx_spectate", "ClCmd_Spectate", ACCESS_LEVEL_INVISIBLE);
#endif

DisableHookChain((g_hSV_WriteFullClientUpdate = RegisterHookChain(RH_SV_WriteFullClientUpdate, "SV_WriteFullClientUpdate")));
}

public SV_WriteFullClientUpdate(const id, buffer, const receiver)
{
if(g_bPlayerInVisible[id])
{
set_key_value(buffer, "", "");
}
}

public client_putinserver(id)
{
g_bPlayerInVisible[id] = false;
}

#if defined LOCK_SAY
public clcmd_say(id)
{
if (g_bPlayerInVisible[id])
{
client_print_color(id, id, "^4Sen ^3gizli bir izleyicisin. ^4Konusmaman ^3gerek^1!");
return PLUGIN_HANDLED;
}

return PLUGIN_CONTINUE;
}
#endif


#if !defined AUTO_INVISIBLE_SPECTATOR
public ClCmd_Spectate(id, level, cid)
{
if(!(get_user_flags(id) & level))
{
return PLUGIN_HANDLED;
}

if (get_member(id, m_iTeam) != TEAM_SPECTATOR)
{
client_print_color(id, id, "^4Gorunmez olabilmen icin ^3once izleyici ^4olmalisin^1.");
return PLUGIN_HANDLED;
}

g_bPlayerInVisible[id] ^= true;
client_print_color(id, id, "^3Sen ^4suan ^3%s^1.", g_bPlayerInVisible[id] ? "gorunmezsin":"gorunmez degilsin");

if (!TryDisableHookChain())
{
EnableHookChain(g_hSV_WriteFullClientUpdate);
}

rh_update_user_info(id);
return PLUGIN_HANDLED;
}
#endif

stock bool:TryDisableHookChain()
{
new nCount;
for(new id = 1; id <= MAX_CLIENTS; id++)
{
if(is_user_hltv(id) || !is_user_connected(id))
{
continue;
}
if(g_bPlayerInVisible[id])
{
++nCount;
}
}

if (nCount <= 0)
{
DisableHookChain(g_hSV_WriteFullClientUpdate);
return true;
}

return false;
}

public client_disconnected(id)
{
if (g_bPlayerInVisible[id])
{
g_bPlayerInVisible[id] = false;
TryDisableHookChain();
}
}

//Endif komutu yuzunden { isareti kapanmiyor. Kapattiginiz takdirde hata veriyor
//Birakalim boyle kalsin.
public Event_TeamInfo()
{
new id = read_data(1);

#if defined AUTO_INVISIBLE_SPECTATOR
new bool:bState = g_bPlayerInVisible[id];

new szTeamName[2];
read_data(2, szTeamName, charsmax(szTeamName));

switch (szTeamName[0])
{
case 'C', 'T': {
g_bPlayerInVisible[id] = false;
}
case 'S': {
g_bPlayerInVisible[id] = true;
}
}

if (g_bPlayerInVisible[id] != bState)
{
if (!TryDisableHookChain())
{
EnableHookChain(g_hSV_WriteFullClientUpdate);
}
#else
if (g_bPlayerInVisible[id])
{
g_bPlayerInVisible[id] = false;
#endif
rh_update_user_info(id);
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/

Вложения

Сообщения
1,042
Реакции
206
Предупреждения
1
Помог
6 раз(а)
Орфей на рехлдс…
 
Сообщения
672
Реакции
144
Помог
11 раз(а)
POD-Bot на рехлдс работают? У меня они тупо в спектрах сидели, пришлось на yapbot переходить.
 
Сообщения
365
Реакции
9
Помог
5 раз(а)
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
15 модуль по счету - Amxx crecker
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу