Raised This Month: $ Target: $400
 0% 

Block HE Nade sprites explode


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 10-11-2009 , 06:06   Block HE Nade sprites explode
Reply With Quote #1

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

dFF is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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