Raised This Month: $51 Target: $400
 12% 

[CS:GO] Dedicated function to terminate the match? Maybe “CS_TerminateMatch”?


Post New Thread Reply   
 
Thread Tools Display Modes
joao7yt
Senior Member
Join Date: Nov 2014
Location: Brazil
Old 01-25-2018 , 07:11   Re: [CS:GO] Dedicated function to terminate the match? Maybe “CS_TerminateMatch”?
Reply With Quote #11

Quote:
Originally Posted by pride95 View Post
PHP Code:
    CS_TerminateRound(1.0CSRoundEnd_Draw);
    
int iEntity CreateEntityByName("game_end");
    
DispatchSpawn(iEntity);
    
AcceptEntityInput(iEntity"EndGame"
Unfortunately that doesn’t terminate the match as a tie, if i’m not wrong the scoreboard isn’t even forced on the players screen... i used that in the past :/
joao7yt is offline
pride95
Senior Member
Join Date: Aug 2015
Old 01-25-2018 , 10:06   Re: [CS:GO] Dedicated function to terminate the match? Maybe “CS_TerminateMatch”?
Reply With Quote #12

Quote:
Originally Posted by joao7yt View Post
Unfortunately that doesn’t terminate the match as a tie, if i’m not wrong the scoreboard isn’t even forced on the players screen... i used that in the past :/
then try to change mp_match_restart_delay to a higher value.
i have mp_match_restart_delay 5, and the scoreboard is hidden when the map ends.

PHP Code:
    Handle hBuffer StartMessageAll("ServerRankRevealAll");
    if (
hBuffer != INVALID_HANDLE)
    {
        
EndMessage();
    } 
or try so send this on announce_phase_end event or cs_intermission. if you change the map with sm_map, these events are unhooked. you need to send game_end in sm_map function instead of forcechangelevel.

Last edited by pride95; 01-25-2018 at 10:10.
pride95 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 15:31.


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