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

[CS:GO] Change Warmup Text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Audite
AlliedModders Donor
Join Date: Sep 2021
Location: Sweden
Old 10-05-2021 , 08:34   [CS:GO] Change Warmup Text
Reply With Quote #1



How to change it ?

To something like just "BUILDING" instead of "Warmup XXXXXX"

Current Plugin Structure:
PHP Code:
#include <sourcemod>
#include <sdktools>

public Plugin myinfo 
{
    
name "Oni BM Build",
    
author "Audite",
    
description "Warmup Start for BM building.",
    
version "0.1.5",
    
url "steamcommunity.com/id/doley/"
};

public 
void OnPluginStart()
{
    
CreateConVar("sm_bmw_version""0.1.5""Current BM Warmup Menu version.");
    
RegAdminCmd("sm_bmw"bmBuildMenuStartADMFLAG_CHANGEMAP"Open BM Build Setup Menu!");
}

public 
Action:bmBuildMenuStart(iClientiArgs){
    
bmMenuWarmup(iClient0); 
    return 
Plugin_Handled
}

public 
Action:bmMenuWarmup(iClientiArgs){    
    new 
String:sText[64], Handle:hPanel=CreatePanel();
    
FormatTime(sTextsizeof sText"%H:%M"GetTime());
    
Format(sTextsizeof sText"BMW Menu ╳     %s  \n \n"sText); 
    
SetPanelTitle(hPanelsText);

    
DrawPanelItem(hPanel"Start Build Mode");
    
DrawPanelItem(hPanel"End Build Mode \n \n");
    
    
DrawPanelItem(hPanel"Exit");
    
    
SendPanelToClient(hPaneliClientHandler_Main0);
    return 
Plugin_Handled;
}

public 
Handler_Main(Handle:hMenuMenuAction:actioniClientiKey){
    new 
bool:bRefreshMenu=true;
    switch(
iKey){
        case 
1:{
            
ServerCommand("mp_warmuptime 9999999999999");
            
ServerCommand("mp_warmup_pausetimer 1");
            
ServerCommand("mp_warmup_start");
            
            
Event newevent_message CreateEvent("cs_win_panel_round");
            
newevent_message.SetString("funfact_token""BUILDING");
            
            for(
int z 1<= MaxClientsz++)
              if(
IsClientInGame(z) && !IsFakeClient(z))
                
newevent_message.FireToClient(z);
                                            
            
newevent_message.Cancel(); 
            
        }
        case 
2:{
            
ServerCommand("bm_save");
            
ServerCommand("mp_warmup_end");
            
ServerCommand("mp_restartgame 1");
        }
        default: 
bRefreshMenu=false;
    }
    if(
bRefreshMenubmMenuWarmup(iClient0);

I'm completely new to SourceMod & Pawn, trying to learn as much as possible.

Last edited by Audite; 10-05-2021 at 08:36.
Audite is offline
1254871688
Junior Member
Join Date: Nov 2016
Old 01-12-2022 , 08:16   Re: [CS:GO] Change Warmup Text
Reply With Quote #2

"round_announce_warmup"
{
}
i found this event in game file but not tested no anohter event named warmup
1254871688 is offline
Reply


Thread Tools
Display Modes

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