Raised This Month: $12 Target: $400
 3% 

New HeNades Effects


Post New Thread Reply   
 
Thread Tools Display Modes
Pilat100
Member
Join Date: Sep 2009
Old 04-08-2010 , 19:27   Re: New HeNades Effects
Reply With Quote #51

can someone please fix this plugin this plugin will muto mainly used in my 4 servers
Pilat100 is offline
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 04-10-2010 , 07:38   Re: New HeNades Effects
Reply With Quote #52

I just love thows effects, maybe some1 can fix thows bugs plz ?

Found this on another site, I havent tested it yet.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN_NAME    "New HeNades Effects (remaked)"
#define PLUGIN_AUTHOR    "SAMURAI"
#define PLUGIN_VERSION    "0.2"

stock const g_sprites[][] =
{
    
"sprites/he_efx1.spr",
    
"sprites/he_efx2.spr",
    
"sprites/he_efx3.spr",
    
"sprites/he_efx4.spr",
    
"sprites/he_efx5.spr",
    
"sprites/he_efx6.spr",
    
"sprites/he_efx7.spr",
    
"sprites/he_efx8.spr",
    
"sprites/he_efx9.spr",
    
"sprites/he_efx10.spr",
    
"sprites/he_efx11.spr",
    
"sprites/he_efx12.spr",
    
"sprites/he_efx13.spr"
}

new 
gSpriteIndex[sizeof g_sprites];

public 
plugin_init()
{
    
register_plugin(PLUGIN_NAMEPLUGIN_AUTHORPLUGIN_VERSION);
    
    
register_forward(FM_EmitSound,"fw_emitsound");
    
}

public 
plugin_precache()
{
    
    for(new 
0sizeof g_spritesi++)
        
gSpriteIndex[i] = engfunc(EngFunc_PrecacheModel,g_sprites[i]);
        
}


public 
fw_emitsound(entity,channel,const sample[],Float:volume,Float:attenuation,fFlags,pitch)
{

    if(!
equali(sample,"weapons/debris",14))
        return 
FMRES_IGNORED;
    
    static 
classname[10];
    
pev(entity,pev_classname,classname,9);

    if(
equal(classname,"grenade"))
        
he_nade_explode(entity);

    return 
FMRES_IGNORED;
}

public 
he_nade_explode(ent)
{
    
// check if isn't a valid ent
    
if(!pev_valid(ent)) {
        return 
0;
    }
    
    static 
Float:fHeNadeOrigin[3], iHeNadeOrigin[3];
    
    
// get he grenade origin
    
pev(ent,pev_origin,fHeNadeOrigin);
    
    
// make it integer
    
FVecIVec(fHeNadeOrigin,iHeNadeOrigin);

    
/*message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
    write_byte(TE_SPRITE);
    write_coord(iHeNadeOrigin[0]); // x
    write_coord(iHeNadeOrigin[1]); // y
    write_coord(iHeNadeOrigin[2]); // z
    write_short(gSpriteIndex[random(sizeof g_sprites)]); // sprite
    write_byte(40); // scale
    write_byte(100); // brightness
    message_end();*/
    
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY); 
    
write_byte(TE_EXPLOSION); // TE_EXPLOSION
    
write_coord(iHeNadeOrigin[0]); // x    
    
write_coord(iHeNadeOrigin[1]); // x; // origin y
    
write_coord(iHeNadeOrigin[2]); // x // origin z
    
write_short(gSpriteIndex[random(sizeof g_sprites)]); // sprites
    
write_byte(40); // scale in 0.1's
    
write_byte(30); // framerate
    
write_byte(TE_EXPLFLAG_NONE); // flags 
    
message_end(); // message end
    
    
return 0;


Last edited by hcxx; 04-10-2010 at 07:41.
hcxx is offline
Pilat100
Member
Join Date: Sep 2009
Old 04-16-2010 , 17:16   Re: New HeNades Effects
Reply With Quote #53

I'll test it there if I notice work perfectly for everyone here and thank you for help
Pilat100 is offline
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 04-17-2010 , 08:35   Re: New HeNades Effects
Reply With Quote #54

I have using this now for one week and I havent nootice any bug or problem whit it
hcxx is offline
cs-portal
BANNED
Join Date: Dec 2009
Location: Kiev
Old 04-25-2010 , 11:36   Re: New HeNades Effects
Reply With Quote #55

sprites.zip 1 mb ? Oo too heavy for an explosion
cs-portal is offline
Send a message via ICQ to cs-portal Send a message via Skype™ to cs-portal
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 04-25-2010 , 14:31   Re: New HeNades Effects
Reply With Quote #56

come check out my nade MUAHAHHAHAHH!!
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
Pilat100
Member
Join Date: Sep 2009
Old 04-25-2010 , 21:59   Re: New HeNades Effects
Reply With Quote #57

FR0NTLINE

come check out my nade MUAHAHHAHAHH!!

I see that you have a better version to have as you go nois?
Pilat100 is offline
Bahadir1905
Junior Member
Join Date: Jun 2021
Old 06-03-2021 , 10:00   Re: New HeNades Effects
Reply With Quote #58

Hello Guys,

I'm very new to plugins ans scripts on amxmox. I installed the below plugin but when the plugin is active THE BOMBS DAMAGE my teammates even the mp_friendlyfire is off.

I digged in some other plugins' .sma files to see some codes so that maybe I can solve the problem but I don't know scripting and no success.

I want the use this plugin but when I throw a bomb it shouldn't damage my teammates.
Bahadir1905 is offline
Reply


Thread Tools
Display Modes

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 12:04.


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