#include <sdktools_functions>
#include <csgo_colors>
#pragma semicolon 1
char g_sBuffer[256];
public void OnPluginStart()
{
HookEvent("round_start", Event_RoundStart);
}
public void Event_RoundStart(Event hEvent, const char[] sName, bool bDontBroadcast)
{
int iCT_won = GetTeamScore(3);
int iT_won = GetTeamScore(2);
Format(g_sBuffer, sizeof(g_sBuffer), "{LIGHTGREEN}[FBInfo] {BLUE}CT{WHITE} [{BLUE}%i{WHITE}] {BLUE}Wins {WHITE}| {RED}T{WHITE} [{RED}%i{WHITE}] {RED}Wins", iCT_won, iT_won);
CreateTimer(3.0, Timer_Print, _, TIMER_FLAG_NO_MAPCHANGE);
}
public Action Timer_Print(Handle hTimer)
{
CGOPrintToChatAll("%s",g_sBuffer);
}
#include <sdktools_functions>
#include <csgo_colors>
#pragma semicolon 1
char g_sBuffer[256];
int g_iRounds;
public void OnPluginStart()
{
HookEvent("round_start", Event_RoundStart);
// HookEvent("round_end", Event_RoundEnd);
}
public void OnMapStart()
{
g_iRounds = GetConVarInt(FindConVar("mp_maxrounds"));
}
public void Event_RoundStart(Event hEvent, const char[] sName, bool bDontBroadcast)
{
int iCT_won = GetTeamScore(3);
int iT_won = GetTeamScore(2);
int iRounds = g_iRounds - iCT_won - iT_won;
Format(g_sBuffer, sizeof(g_sBuffer), "{GREEN}[FBInfo] {BLUE}CT{WHITE} [{BLUE}%i{WHITE}] {BLUE}Wins {WHITE}| {RED}T{WHITE} [{RED}%i{WHITE}] {RED}Wins | {GREEN}Rounds Left{WHITE}: {GREEN}%i", iCT_won, iT_won, iRounds);
CreateTimer(3.0, Timer_Print, _, TIMER_FLAG_NO_MAPCHANGE);
}
public Action Timer_Print(Handle hTimer)
{
CGOPrintToChatAll("%s",g_sBuffer);
}
#pragma semicolon 1
#include<csgo_colors>
char g_sBuffer[256];
int g_iRounds;
public void OnPluginStart()
{
HookEvent("round_start", Event_RoundStart);
// HookEvent("round_end", Event_RoundEnd);
}
public void OnMapStart()
{
g_iRounds = GetConVarInt(FindConVar("mp_maxrounds"));
}
public void Event_RoundStart(Event hEvent, const char[] sName, bool bDontBroadcast)
{
int iCT_won = GetTeamScore(3);
int iT_won = GetTeamScore(2);
int iRounds = g_iRounds - iCT_won - iT_won;
Format(g_sBuffer, sizeof(g_sBuffer), "{GREEN}[FBInfo] {BLUE}CT{DEFAULT} [{BLUE}%i{DEFAULT}] {BLUE}Wins {DEFAULT}| {RED}T{DEFAULT} [{RED}%i{DEFAULT}] {RED}Wins | {GREEN}Rounds Left{DEFAULT}: {GREEN}%i", iCT_won, iT_won, iRounds);
CreateTimer(3.0, Timer_Print, _, TIMER_FLAG_NO_MAPCHANGE);
}
public Action Timer_Print(Handle hTimer)
{
CGOPrintToChatAll("%s",g_sBuffer);
}
Format(g_sBuffer, sizeof(g_sBuffer), "{GREEN}[FBInfo] {BLUE}CT{DEFAULT} [{BLUE}%i{DEFAULT}] {BLUE}Wins {DEFAULT}| {RED}T{DEFAULT} [{RED}%i{DEFAULT}] {RED}Wins | {GREEN}Rounds Left{DEFAULT}: {GREEN}%i", iCT_won, iT_won, iRounds);
пока ты это писал, я методом проб и ошибок я фиксанул все проще - убрал белый и расставил правильно цвета. Огромное тебе спасибоОй ну эти ваши ксго!
Сейчас бы белый цвет был стандартным.. В общем фикс кинул Росту, а если хотите поменять цвета, то вам лишь нужно заменять в строке:
Сами цвета это то, что обозначено в фигурных скобах.PHP:Format(g_sBuffer, sizeof(g_sBuffer), "{GREEN}[FBInfo] {BLUE}CT{DEFAULT} [{BLUE}%i{DEFAULT}] {BLUE}Wins {DEFAULT}| {RED}T{DEFAULT} [{RED}%i{DEFAULT}] {RED}Wins | {GREEN}Rounds Left{DEFAULT}: {GREEN}%i", iCT_won, iT_won, iRounds);
Вот пример всех доступных:
![]()