Quote:
Originally Posted by brian763
Solved
PHP Code:
#include <amxmodx> #include <fakemeta> #include <fun> #include <hamsandwich> #include <engine> #include <cstrike>
#define PLUGIN "Allow Move && Shoot While Defusing" #define VERSION "1.0" #define AUTHOR "Brian"
const IsDefusing = (1<<8) #define is_user_defusing(%0) ( get_pdata_int(%0,232,5) & IsDefusing )
public plugin_init() { if(engfunc(EngFunc_FindEntityByString, -1, "classname","func_bomb_target") || engfunc(EngFunc_FindEntityByString, -1, "classname","info_bomb_target")) { register_event("BarTime", "event_defusing", "be", "1=5", "1=10") register_plugin(PLUGIN, VERSION, AUTHOR) } else { register_plugin(PLUGIN, VERSION, AUTHOR) return } }
public event_defusing(id) { set_user_maxspeed(id,250.0) const m_bIsDefusing = 232; set_pdata_int(id, m_bIsDefusing, 5, 0x00FF0000) }
But in Counter Stirke 1.3 deploy new weapon will not interrupt the bartime
I want to know how to do it
Greatly appreciated it if you could help me.
|
Counter-Strike 1.3 ... what a coincidence.
No-Steam = No support!
Please buy CS 1.6 on Steam, update your server using SteamCMD, get AMXX 1.9 or 1.10, 1.8.2 will be discontinued soon, and use set_ent_data(id, "CBasePlayer", "m_bIsDefusing", false);
I think that's the proper way to disable defusing. Or try iceedr solution, that may work as well.
plugin_init is also done wrong, there's no need to return. Also, add register_plugin(PLUGIN, VERSION, AUTHOR) first before the if.
For the BarTime event, try using register_message to hook it as pre and return PLUGIN_HANDLED.
Anyway, you're not gonna get any future help if this method doesn't work, as long as you're not updating the server to latest HLDS build using SteamCMD. Only the latest version of HLDS with an updated server without the dproto module is supported here.