Raised This Month: $32 Target: $400
 8% 

trail just for HE GERNADE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
king999
Member
Join Date: Feb 2015
Location: Mars
Old 10-22-2016 , 12:20   trail just for HE GERNADE
Reply With Quote #1

i just want a plugin where it has only trail just for HE GERNADE
not any other nades
king999 is offline
Send a message via Skype™ to king999
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-22-2016 , 13:53   Re: trail just for HE GERNADE
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <csx>

#define PLUGIN_VERSION "1.0"

enum _:Options
{
    
Sprite[32],
    
Red,
    
Green,
    
Blue,
    
Life,
    
Width,
    
Brightness
}

new const 
g_eTrail[Options] = { "sprites/smoke.spr"25500105200 }
new 
g_iSprite

public plugin_init()
    
register_plugin("HE Grenade Trail"PLUGIN_VERSION"OciXCrom")
    
public 
plugin_precache()
    
g_iSprite precache_model(g_eTrail[Sprite])
    
public 
grenade_throw(idiGrenadeiWeapon)
{
    if(
iWeapon == CSW_HEGRENADE)
    {
        
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
        
write_byte(TE_BEAMFOLLOW)
        
write_short(iGrenade)
        
write_short(g_iSprite)
        
write_byte(g_eTrail[Life])
        
write_byte(g_eTrail[Width])
        
write_byte(g_eTrail[Red])
        
write_byte(g_eTrail[Green])
        
write_byte(g_eTrail[Blue])
        
write_byte(g_eTrail[Brightness])
        
message_end()
    }

If you want more - https://forums.alliedmods.net/showthread.php?t=282686
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
king999
Member
Join Date: Feb 2015
Location: Mars
Old 10-23-2016 , 09:45   Re: trail just for HE GERNADE
Reply With Quote #3

not working it puts trail for all
king999 is offline
Send a message via Skype™ to king999
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-23-2016 , 10:20   Re: trail just for HE GERNADE
Reply With Quote #4

That's not true.
You have some other plugin that puts trail for the other grenades.
This one adds a trail only for HE - tested and works.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 07:03.


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