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", bmBuildMenuStart, ADMFLAG_CHANGEMAP, "Open BM Build Setup Menu!");
}
public Action:bmBuildMenuStart(iClient, iArgs){
bmMenuWarmup(iClient, 0);
return Plugin_Handled;
}
public Action:bmMenuWarmup(iClient, iArgs){
new String:sText[64], Handle:hPanel=CreatePanel();
FormatTime(sText, sizeof sText, "%H:%M", GetTime());
Format(sText, sizeof sText, "BMW Menu ╳ %s \n \n", sText);
SetPanelTitle(hPanel, sText);
DrawPanelItem(hPanel, "Start Build Mode");
DrawPanelItem(hPanel, "End Build Mode \n \n");
DrawPanelItem(hPanel, "Exit");
SendPanelToClient(hPanel, iClient, Handler_Main, 0);
return Plugin_Handled;
}
public Handler_Main(Handle:hMenu, MenuAction:action, iClient, iKey){
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; z <= MaxClients; z++)
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(bRefreshMenu) bmMenuWarmup(iClient, 0);
}
I'm completely new to SourceMod & Pawn, trying to learn as much as possible.