Raised This Month: $ Target: $400
 0% 

[HELP] how to reset Terror deaths in next round?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-24-2010 , 02:45   Re: [HELP] how to reset Terror deaths in next round?
Reply With Quote #1

Post the full code for the second one?

Also for the first one:

Code:
public event_round_start() 
{ 
set_task(20.0, "reset_deaths") 
} 

public reset_deaths() {
    new players[32], player, num
    get_players(players, num)
    for(new i;i<num;i++)
    {
     player=players[i]
    if(cs_get_user_team(player) == CS_TEAM_T) 
    { 
        cs_set_user_deaths (player, 1 ) 
    } 
}  
}

nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 07-24-2010 , 03:06   Re: [HELP] how to reset Terror deaths in next round?
Reply With Quote #2

Quote:
Originally Posted by nikhilgupta345 View Post
Post the full code for the second one?

Also for the first one:

Code:
public event_round_start() 
{ 
set_task(20.0, "reset_deaths") 
} 

public reset_deaths() {
    new players[32], player, num
    get_players(players, num)
    for(new i;i<num;i++)
    {
     player=players[i]
    if(cs_get_user_team(player) == CS_TEAM_T) 
    { 
        cs_set_user_deaths (player, 1 ) 
    } 
}  
}

thanks for the first one.

the whole code?

how about the sma file? will that do?
Attached Files
File Type: sma Get Plugin or Get Source (CSO_ZBScenario.sma - 543 views - 101.1 KB)
__________________
jc980 is offline
Reply



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 00:10.


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