I tried to block the HE grenade sprites explode but did not work
PHP Code:
#include <amxmodx>
new spr1, spr2
public plugin_precache()
{
spr1=precache_model("sprites/explode1.spr")
spr2=precache_model("sprites/explode2.spr")
}
public plugin_init()
{
register_message(SVC_TEMPENTITY, "message_TempEntity")
}
public message_TempEntity(msg_id, msg_dest, msg_ent)
{
if(get_msg_arg_int(1) == TE_GLOWSPRITE)
{
if(get_msg_arg_int(5) == spr1 || get_msg_arg_int(5) == spr2)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}