witam plugin nie chce działać nie ładuje się wcale 0 errorów tylko to wyskakuje
L 01/05/2023 - 11:16:46: [AMXX] Plugin file open error (plugin "ze_block_events_messages.amx")
REHLDS version : 48/1.1.2.7/Stdio 3056 secure (10)
amx v1.8.3-dev+5169
#include <zombie_escape> // Variables new g_iFwSpawn // Cvars new g_pCvarBlockKillCmd, g_pCvarBlockMoneyHUD, g_pCvarBlockOtherHUD public plugin_init() { register_plugin("[ZE] Blocked Messages & Events", ZE_VERSION, AUTHORS) // Events. register_event("ResetHUD", "fw_ResetHUDs_Event", "b") // Block some messages register_message(get_user_msgid("TextMsg"), "Message_TextMsg") register_message(get_user_msgid("SendAudio"), "Message_SendAudio") // Fakemeta register_forward(FM_ClientKill, "Fw_ClientKill_Pre", 0) unregister_forward(FM_Spawn, g_iFwSpawn) // Hams RegisterHam(Ham_Touch, "weaponbox", "Fw_TouchWeaponBox_Pre", 0) RegisterHam(Ham_Touch, "armoury_entity", "Fw_TouchWeaponBox_Pre", 0) // Cvars g_pCvarBlockKillCmd = register_cvar("ze_block_kill", "1") g_pCvarBlockMoneyHUD = register_cvar("ze_block_money_hud", "1") g_pCvarBlockOtherHUD = register_cvar("ze_block_radar_ap_hp", "1") } public plugin_precache() { // Prevent Entities from being spawned like (Rain, Snow, Fog) It's registered here as this called before plugin_init() g_iFwSpawn = register_forward(FM_Spawn, "Fw_Spawn") } // Forward called after init. public plugin_cfg() { // Block buyzone in Map. set_member_game(m_bTCantBuy, true) set_member_game(m_bCTCantBuy, true) set_member_game(m_bMapHasBuyZone, false) } public Message_TextMsg() { new szMsg[22] get_msg_arg_string(2, szMsg, charsmax(szMsg)) // Block round end related messages if (equal(szMsg, "#Hostages_Not_Rescued") || equal(szMsg, "#Round_Draw") || equal(szMsg, "#CTs_Win") || equal(szMsg, "#Terrorists_Win") || equal(szMsg, "#Game_will_restart_in") || equal(szMsg, "#Game_Commencing")) return PLUGIN_HANDLED return PLUGIN_CONTINUE } public Message_SendAudio() { new szAudio[17] get_msg_arg_string(2, szAudio, charsmax(szAudio)) // Block CS round win audio messages if (equal(szAudio[7], "terwin") || equal(szAudio[7], "ctwin") || equal(szAudio[7], "rounddraw")) return PLUGIN_HANDLED return PLUGIN_CONTINUE } public fw_ResetHUDs_Event(id) { new iHideHUDs if (get_pcvar_num(g_pCvarBlockOtherHUD)) iHideHUDs |= HIDEHUD_HEALTH if (get_pcvar_num(g_pCvarBlockMoneyHUD)) iHideHUDs |= HIDEHUD_MONEY // Hide HUDs for player. set_member(id, m_iHideHUD, iHideHUDs) } public Fw_ClientKill_Pre(id) { // Block Kill Command if enabled if (get_pcvar_num(g_pCvarBlockKillCmd)) return FMRES_SUPERCEDE return PLUGIN_CONTINUE } public Fw_Spawn(iEnt) { // Invalid entity if (!pev_valid(iEnt)) return FMRES_IGNORED // Get classname new szClassName[32] get_entvar(iEnt, var_classname, szClassName, charsmax(szClassName)) // Prevent All (Rain, Snow, Fog) From the original map, So we can add our Weather if (equal(szClassName, "env_rain") || equal(szClassName, "env_snow") || equal(szClassName, "env_fog")) { engfunc(EngFunc_RemoveEntity, iEnt) return FMRES_SUPERCEDE } return FMRES_IGNORED } public Fw_TouchWeaponBox_Pre(iWeaponBox, iIndex) { if (!is_user_alive(iIndex)) return HAM_IGNORED // Block Zombies From Pick UP Weapons if (ze_is_user_zombie(iIndex)) return HAM_SUPERCEDE return HAM_IGNORED }