Raised This Month: $ Target: $400
 0% 

T killed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 06-11-2010 , 02:34   Re: T killed
Reply With Quote #7

Quote:
Originally Posted by reinert View Post
Hook death event, and check if victim is CS_TEAM_T Then add tkills+=1, if CT then add ctkills+=1. Save everything like frags are saved. just edit statsx.sma
I believe this is what you mean:

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN    "Detect Kills"
#define AUTHOR    "Shadow"
#define VERSION    "1.0"

new tkills[33], ctkills[33];

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHamHam_Killed"player""eDeath")
}

public 
eDeathid )
{
    new 
iAttacker read_data)     
    new 
iVictim read_data)
    
    if( 
iVictim == iAttacker )
        return 
PLUGIN_HANDLED
    
    
if( cs_get_user_teamiVictim ) == CS_TEAM_T )
    {
        
tkills[id]+= 1
    
} else {
        
ctkills[id]+= 1
    
}
    
    return 
PLUGIN_HANDLED;

__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX 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 05:26.


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