Raised This Month: $ Target: $400
 0% 

[SOLVED][HELP] Setting team scores


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
connoisseur
Senior Member
Join Date: Jan 2012
Old 01-14-2014 , 00:59   Re: [HELP] Setting team scores
Reply With Quote #1

Thanks. But there's a small problem in applying that way. If I use sv_restart at some point, the team scores will not set back to 0-0, they will still be set according to g_tscore/g_ctscore.
connoisseur is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-14-2014 , 13:03   Re: [HELP] Setting team scores
Reply With Quote #2

PHP Code:
new bool:g_bRestarting;

public 
plugin_init()
{
    
register_event("TextMsg""Event_TextMsg_Restart""a""2&#Game_C""2&#Game_w");
    
register_event("HLTV""Event_HLTV_New_Round""a""1=0""2=0");
}

public 
Event_TextMsg_Restart()
{
    
g_bRestarting true;
}

public 
Event_HLTV_New_Round()
{
    if( 
g_bRestarting )
    {
        
g_bRestarting false;
        
// Set score to 0-0 here
    
}

Also, you may have to send TeamScore message to connecting or just connected players.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-14-2014 at 13:04.
ConnorMcLeod 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 10:04.


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