Raised This Month: $32 Target: $400
 8% 

Defuse/Team kill does not count as win (mp_winlimit)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoldNux
Senior Member
Join Date: Mar 2018
Old 11-22-2022 , 17:39   Defuse/Team kill does not count as win (mp_winlimit)
Reply With Quote #1

I'm using a custom wincounter that increments every ct/t win sound event.
To have to change map when wincounter reaches the max winrounds I set, I bind it to "mp_winlimit":

In plugin_ini:
PHP Code:
set_cvar_num("mp_winlimit"get_cvar_num("gn_roundlimit")) 
This have been working for me, but today I noticed that mp_winlimit only counts bomb explotion.
If CT defuse or any team kill the other team the map doesent change even tho the winlimit have been exceeded.

I'm confused as mp_winlimit must surely be counting defuses etc.

EDIT: My solution right now is stupid but works:
PHP Code:
public checkScores()
{
    new 
printArguments[1];
    if (
g_RoundCounter != get_pcvar_num(g_pCvarRoundLimit))
    {
        
g_RoundCounter++;
        return;
    }
    if (
g_TeamOneScore == g_TeamTwoScore)
        
printArguments[0] = PRINT_DRAW;
    else if (
g_TeamOneScore g_TeamTwoScore)
        
printArguments[0] = PRINT_T1WINMATCH;
    else
        
printArguments[0] = PRINT_T2WINMATCH;
    
set_task(1.0"printMatchStats"12345printArgumentssizeof(printArguments)) 
    
set_cvar_num("mp_winlimit"1)


Last edited by GoldNux; 11-22-2022 at 17:45.
GoldNux 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 05:53.


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