Raised This Month: $ Target: $400
 0% 

[SOLVED][HELP] Setting team scores


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-14-2014 , 13:03   Re: [HELP] Setting team scores
Reply With Quote #1

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