AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block HE Nade sprites explode (https://forums.alliedmods.net/showthread.php?t=106057)

dFF 10-11-2009 06:06

Block HE Nade sprites explode
 
I tried to block the HE grenade sprites explode but did not work
PHP Code:

#include <amxmodx>

new spr1spr2

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_idmsg_destmsg_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




All times are GMT -4. The time now is 22:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.