Raised This Month: $94 Target: $400
 23% 

Killing Particles v1.01 [FIXED]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Exolent[jNr] (178)
metallicawOw
Veteran Member
Join Date: Jun 2009
Location: Anywhere
Old 10-24-2009 , 12:21   Killing Particles v1.01 [FIXED]
Reply With Quote #1

[IMG]http://img2.**************/img2/2657/killingparticles.jpg[/IMG]

[][][] Description [][][]

- KP (Killing Particles) Its based on a plugin that detects when a user kills an Enemy and send two particles effects to the victim.

[][][] Includes [][][]
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta> 
[][][] Cvars [][][]
Quote:
gc_kp_enable 1 // Enable/Disable the plugin
[][][] ChangeLog [][][]
Quote:
v1.00: Creation of the plugin
v1.01: Plugin Fixed!
[][][] Images [][][]
Cya
Attached Files
File Type: sma Get Plugin or Get Source (KP_FIX.sma - 1968 views - 1.3 KB)
__________________


Last edited by metallicawOw; 12-15-2009 at 22:57.
metallicawOw is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-24-2009 , 12:24   Re: Killing Particles v1.0
Reply With Quote #2

You didnt checked if attacker is a player.

PHP Code:
get_user_msgid("SayText"
Store in global variable.
__________________
xPaw is offline
metallicawOw
Veteran Member
Join Date: Jun 2009
Location: Anywhere
Old 10-24-2009 , 12:29   Re: Killing Particles v1.0
Reply With Quote #3

Quote:
Originally Posted by xPaw View Post
You didnt checked if attacker is a player.

PHP Code:
get_user_msgid("SayText"
Store in global variable.
thx xPaw, now i am fixing that.
__________________

metallicawOw is offline
DarkSkif
Member
Join Date: Oct 2009
Location: Russia
Old 10-24-2009 , 13:07   Re: Killing Particles v1.0
Reply With Quote #4

When I kill the enemy, server crashes ...
DarkSkif is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-24-2009 , 13:13   Re: Killing Particles v1.0
Reply With Quote #5

Quote:
Originally Posted by DarkSkif View Post
When I kill the enemy, server crashes ...
Try this.
PHP Code:
#include < amxmodx >
#include < hamsandwich >

new g_iMaxplayers;

public 
plugin_init( ) {
    
register_plugin"Killing Particles""1.0""metallicawOw" );
    
    
RegisterHamHam_Killed"player""FwdHamPlayerKilled");
    
    
g_iMaxplayers get_maxplayers( );
}

public 
FwdHamPlayerKilledidiAttackeriShouldGib ) {
    if( 
<= iAttacker <= g_iMaxplayers ) {
        new 
iOrigin];
        
get_user_originidiOrigin );
        
        
message_beginMSG_PVSSVC_TEMPENTITYiOrigin );
        
write_byteTE_IMPLOSION );
        
write_coordiOrigin] );
        
write_coordiOrigin] );
        
write_coordiOrigin] );
        
write_byte200 );
        
write_byte100 );
        
write_byte);
        
message_end( );
        
        
message_beginMSG_PVSSVC_TEMPENTITYiOrigin );
        
write_byteTE_PARTICLEBURST );
        
write_coordiOrigin] );
        
write_coordiOrigin] );
        
write_coordiOrigin] );
        
write_byte50 );
        
write_byte72 );
        
write_byte);
        
message_end( );
    }

__________________
xPaw is offline
DarkSkif
Member
Join Date: Oct 2009
Location: Russia
Old 10-24-2009 , 13:38   Re: Killing Particles v1.0
Reply With Quote #6

Let ...
DarkSkif is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 10-24-2009 , 17:42   Re: Killing Particles v1.0
Reply With Quote #7

Quote:
Originally Posted by metallicawOw View Post
thx xPaw, now i am fixing that.
Where's the valve advertisement?
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 10-24-2009 , 18:25   Re: Killing Particles v1.0
Reply With Quote #8

Why you take 2 times the origin of the player?
__________________
alan_el_more is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-24-2009 , 21:02   Re: Killing Particles v1.0
Reply With Quote #9

I said to you that you should store in a global variable (SayText) .-
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
metallicawOw
Veteran Member
Join Date: Jun 2009
Location: Anywhere
Old 10-24-2009 , 21:06   Re: Killing Particles v1.0
Reply With Quote #10

Quote:
Originally Posted by Alucard^ View Post
I said to you that you should store in a global variable (SayText) .-
i do it but the server crashes with new message started -.-`
__________________

metallicawOw 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 23:25.


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