Raised This Month: $ Target: $400
 0% 

making remaining kills T's


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 05-23-2009 , 15:24   Re: making remaining kills T's
#1

This has been answered before. if you know how to code it will be easy with exolents instructions.
__________________

Last edited by [X]-RayCat; 05-23-2009 at 15:26.
[X]-RayCat is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 05-23-2009 , 15:38   Re: making remaining kills T's
#2

Give an example
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-23-2009 , 15:43   Re: making remaining kills T's
#3

This will change map when either team reaches 200 deaths. Tweak it as needed for a particular team. Untested

PHP Code:
new g_TeamKills[3];

register_event"DeathMsg" "fwEvDeathMsg" "a" );

public 
fwEvDeathMsg()
{
    if ( ++
g_TeamKillsget_user_teamread_data) ) ] >= 200 )
        
//change map

__________________

Last edited by Bugsy; 05-23-2009 at 15:50.
Bugsy is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 05-23-2009 , 16:07   Re: making remaining kills T's
#4

can make that client show hud message: [Zombies Remaining: %i]
green color ?
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-23-2009 , 16:25   Re: making remaining kills T's
#5

Quote:
Originally Posted by ~Ice*shOt View Post
can make that client show hud message: [Zombies Remaining: %i]
green color ?
Yes, you can.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 05-23-2009 , 16:28   Re: making remaining kills T's
#6

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
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-23-2009 , 23:15   Re: making remaining kills T's
#7

Quote:
Originally Posted by ~Ice*shOt View Post
Give an example
If you need an example of code after I simply explained how to do it, you shouldn't be coding.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Closed Thread



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