wath video
http://www.youtube.com/watch?v=bE_-4RBMJBA
PHP Code:
#include amxmodx
#include fakemeta
#include engine
new YELLOW
public plugin_init()
{
register_message(SVC_TEMPENTITY,"grenade")
}
public grenade(ent)
{
while((ent = find_ent_by_class(ent,"grenade")))
{
if(get_msg_arg_int(1) != TE_EXPLOSION || pev_valid(ent) == 0)
return PLUGIN_CONTINUE
set_msg_arg_int(5,ARG_BYTE,YELLOW)
set_msg_arg_int(6,ARG_BYTE,15)
set_msg_arg_int(7,ARG_BYTE,27)
}
return PLUGIN_CONTINUE
}
public plugin_precache()
{
YELLOW = precache_model("sprites/explode/yellow.spr")
}