Quote:
Originally Posted by ~Ice*shOt
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_death( killer, victim, wpnindex, hitplace, TK )
{
new CsTeams:team = cs_get_user_team( victim );
if( team == CS_TEAM_T )
ts_kills ++
new terrorist_remaining = KILL_LIMIT - ts_kills
set_hudmessage( 0, 255, 0, -1.0, 0.87, 0, 6.0, 12.0 )
show_hudmessage( victim, "[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(0, print_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.
__________________