Raised This Month: $ Target: $400
 0% 

making remaining kills T's


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 05-23-2009 , 16:28   Re: making remaining kills T's
#8

Quote:
Originally Posted by ~Ice*shOt View Post
can make that client show hud message: [Zombies Remaining: %i]
green color ?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define KILL_LIMIT 200

new ts_kills

public plugin_init()
{
    
register_plugin"plugin""version""author")
}

public 
client_deathkillervictimwpnindexhitplaceTK )
{
    new 
CsTeams:team cs_get_user_teamvictim );
    
    if( 
team == CS_TEAM_T )
        
ts_kills ++
    
    new 
terrorist_remaining KILL_LIMIT ts_kills
    
    set_hudmessage
02550, -1.00.8706.012.0 )
    
show_hudmessagevictim,  "[Terrorist remaining]: %i"terrorist_remaining )

    
//client_print( killer, print_center, "[Terrorist remaining]: %i", terrorist_remaining )
    
    
if( ts_kills >= KILL_LIMIT )
    {
        
kill_limit_reached()
        
client_print(0print_chat"The terrorist team have reached %d kills.."KILL_LIMIT)
    }
}

//terrorist have reached kill limit.. Do something here
public kill_limit_reached()
{
    
//setting terrorist kills to 0
    
ts_kills 0

Try this. Note that you might have to edit it to your needs. The hud_message shows how much zombies you need to kill before you have reached the kill limit.
__________________

Last edited by [X]-RayCat; 05-23-2009 at 16:52.
[X]-RayCat 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 01:27.


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