Raised This Month: $ Target: $400
 0% 

Round_End bonus


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
J4CK
Member
Join Date: Dec 2008
Location: India
Old 12-29-2010 , 04:47   Round_End bonus
Reply With Quote #1

when round end [all alive players CT get +1 frag]
PHP Code:
public plugin_init()
{
    
register_logevent("logevent_round_end",   2"1=Round_End")
}

public 
logevent_round_end(id)
    if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT)
    {
        
set_user_frags(idget_user_frags(id) + 1)
        
client_print(idprint_chat"[RoundEnd] Yeah, You've Earned +1 Frag!");
    } 
J4CK is offline
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 12-29-2010 , 14:32   Re: Round_End bonus
Reply With Quote #2

PHP Code:
public plugin_init() register_logevent("logevent_round_end",   2"1=Round_End"

public 
logevent_round_end() 
{
    for ( new 
id id <= get_maxplayers() ; id++ )
    {
        if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT
        { 
            
set_user_frags(idget_user_frags(id) + 1
            
client_print(idprint_chat"[RoundEnd] Yeah, You've Earned +1 Frag!"); 
        }  
    }

AfteR. is offline
Reply


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 02:09.


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