Raised This Month: $ Target: $400
 0% 

Block HE Nade sprites explode


Post New Thread Reply   
 
Thread Tools Display Modes
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
Old 10-12-2009, 06:42
dFF
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Reply



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