Raised This Month: $ Target: $400
 0% 

[REQ] Total Team Kill Per Round


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 06-23-2015 , 03:23   Re: [REQ] Total Team Kill Per Round
Reply With Quote #5

Team Kills Plugin v0.1 [ UNTESTED ]


PHP Code:
#include < amxmodx >

new const PLUGIN[ ] = "Team Kills";
new const 
VERSION[ ] = "0.1";
new const 
AUTHOR[ ] = "ZOF 'X";

#pragma semicolon 1

#define MAX_PLAYERS    32
#define IsPlayer(%1) ( 1 <= %1 <= iMaxPlayers )

new iMaxPlayersiSyncHud;
new 
gTeamKillsMAX_PLAYERS ];

public 
plugin_init( ) {
    
    
register_pluginPLUGINVERSIONAUTHOR );
    
    
register_event"HLTV""EventNewRound""a""1=0""2=0" );
    
    
set_task0.9"TASK_SHOWHUD"___"b" );
    
    
iSyncHud CreateHudSyncObj( );
    
iMaxPlayers get_maxplayers( );
}

public 
client_deathiKilleriVictimiWeaponIDiHitPlaceiTeamKill ) {
        
    if( 
iTeamKill && IsPlayeriKiller ) && IsPlayeriVictim ) ) {
        
        
gTeamKillsiKiller ]++;
    }
    
}

public 
EventNewRound( ) {
    
    static 
PlayersMAX_PLAYERS ], iNumid;
    
    
get_playersPlayersiNum );
    
    while( --
iNum >= ) {
        
        
id PlayersiNum ];
        
        
gTeamKillsid ] = 0;
    }
}

public 
TASK_SHOWHUD( ) {
    
    static 
PlayersMAX_PLAYERS ], iNumid;
    
    
get_playersPlayersiNum );
    
    while( --
iNum >= ) {
        
        
id PlayersiNum ];
        
        
set_hudmessage000160000_0.00_1.01.0 );
        
ShowSyncHudMsgidiSyncHud"Team Kill: %d"gTeamKillsid ] );
    }
    

Attached Files
File Type: sma Get Plugin or Get Source (team_kill.sma - 571 views - 1.2 KB)
__________________
All my work is here
xxxperts 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 20:18.


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