Quote:
Originally Posted by ConnorMcLeod
Method taken from no weapon drop by VEN :
PHP Code:
#include <amxmodx> #include <cstrike> #include <engine>
#define VERSION "0.0.1"
public plugin_init() { register_plugin("No Defuser On Ground", VERSION, "ConnorMcLeod")
register_event("DeathMsg", "Event_DeathMsg", "a") }
public Event_DeathMsg() { new id = read_data(2) if( cs_get_user_defuse(id) ) { cs_set_user_defuse(id, 0) entity_set_int(id, EV_INT_body, 0) } }
|
Thanks.
One question.
In my dedicated server with this code ...
PHP Code:
public Ham_Spawn_WeaponboxPost(Ent) {
if(get_pcvar_num(enable) == 1
&& get_pcvar_num(removeent) == 1)
{
if(pev_valid(Ent))
{
engfunc(EngFunc_RemoveEntity,Ent)
}
return HAM_SUPERCEDE
}
return HAM_IGNORED
}
works good, but when you use the same on my hosted server crashes,I could fix it with task, but I dont know how to keep unused task.