Raised This Month: $ Target: $400
 0% 

T killed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-10-2010 , 16:43   T killed
Reply With Quote #1

How to know from Kills How much i killed CT or T?

Last edited by edgaras85; 06-10-2010 at 18:27.
edgaras85 is offline
Mandiii
Junior Member
Join Date: Jun 2010
Old 06-10-2010 , 17:45   Re: T killed
Reply With Quote #2

Here's the statsx.sma file:
http://pastebin.com/abFpS8Jf
Mandiii is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-10-2010 , 17:47   Re: T killed
Reply With Quote #3

Quote:
Originally Posted by Mandiii View Post
Here's the statsx.sma file:
http://pastebin.com/abFpS8Jf
I dont need file...
I need edit of that....

Last edited by edgaras85; 06-10-2010 at 18:28.
edgaras85 is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-10-2010 , 18:28   Re: T killed
Reply With Quote #4

Made question Easier sorry for bump ( because earlier people saw other request)
edgaras85 is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 06-11-2010 , 01:33   Re: T killed
Reply With Quote #5

I don't get it. What exactly do you want?
__________________
Hi.
Kreation is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 06-11-2010 , 02:26   Re: T killed
Reply With Quote #6

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
reinert is offline
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
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-11-2010 , 15:10   Re: T killed
Reply With Quote #8

Quote:
Originally Posted by GXLZPGX View Post
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;

Its work if you understand, That From Your rankstats to know how much you killed Terrorist from Kills
edgaras85 is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 06-11-2010 , 15:33   Re: T killed
Reply With Quote #9

Quote:
Originally Posted by edgaras85 View Post
Its work if you understand, That From Your rankstats to know how much you killed Terrorist from Kills
I don't understand what your saying. But if you look at statsx.sma, and take a look at how it saves normal kills, you can make that work for ct kills and t kills to be saved as well.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-11-2010 , 17:38   Re: T killed
Reply With Quote #10

Quote:
Originally Posted by GXLZPGX View Post
I don't understand what your saying. But if you look at statsx.sma, and take a look at how it saves normal kills, you can make that work for ct kills and t kills to be saved as well.
Look
statsx.sma saves all kills and in top15 writes all kills
i need that only would write how much i killed T ct would not write
Ct + T = all
I need only T kills...
edgaras85 is offline
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 05:26.


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