Raised This Month: $ Target: $400
 0% 

Look This... Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MouseSplash!
Veteran Member
Join Date: Dec 2009
Location: En Tu Mente!
Old 12-28-2009 , 09:53   Look This... Help
Reply With Quote #1

Hello toy doing a book-keeper(meter), I need that it(he,she) detects the last terrorist and a message goes out for him(her) with the remaining time of 20 seconds.

For the present I have this that consegui with the zp the countdown alquien can help me...


Sorry I Use Google Traducer xD


PHP Code:
#define VERSION "1.0"
#define AUTHOR "Mr.Apple"

new Restante
new Tiempo
new g_iMaxPlayers

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
g_iMaxPlayers get_maxplayers()
}

public 
event_round_start()
{
    
set_task(4.0"Restante1")
    
Time 20
    Rest 
19
}

public 
Restante1()
{    
    new 
ctCounttrCount;
        
    for (new 
1<= g_iMaxPlayersi++)
    {
        if (!
is_user_alive(i))
        {
            continue;
        }
            
        switch (
cs_get_user_team(i))
        {
            case 
CS_TEAM_CT:
            {
                
ctCount++;
            }
                
            case 
CS_TEAM_T:
            {
                
trCount++;
            }
        }
    }
        
    if (
trCount 1)
    {
        return 
PLUGIN_HANDLED;
    }

    if (
ctCount == 0)
    {
        return 
PLUGIN_HANDLED;
    }
    
    
Rest--
        
    
set_hudmessage(17900, -1.00.2820.021.00.010.110); 
    
show_hudmessage(0"%i"Time); 
    --
Time;
        
    if(
Time >= 1)
    {
    
set_task(1.0"Restante1")
    }
    return 
PLUGIN_HANDLED


Last edited by MouseSplash!; 12-28-2009 at 10:52.
MouseSplash! is offline
 


Thread Tools
Display Modes

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 04:11.


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