#include <csgo_colors>
#include <cstrike>
#pragma newdecls required
public Plugin myinfo =
{
name = "ResetScore Lite",
author = "AlmazON",
version = "1.1",
url = "http://hlmod.ru/"
};
public void OnMapStart()
{
ServerCommand("mp_backup_round_file \"\"");
ServerCommand("mp_backup_round_file_last \"\"");
ServerCommand("mp_backup_round_file_pattern \"\"");
ServerCommand("mp_backup_round_auto 0");
} // в следующем раунде будет опять 10/0/0 - не будет.
public void OnClientSayCommand_Post(int client, const char[] command, const char[] sArgs)
{
if (client && (strcmp(sArgs[1], "resetscore", false) == 0 || strcmp(sArgs[1], "rs", false) == 0 || strcmp(sArgs[1], "кы") == 0))
{
if (GetClientDeaths(client) || CS_GetClientContributionScore(client))
{
SetEntProp(client, Prop_Data, "m_iDeaths", 0);
SetEntProp(client, Prop_Data, "m_iFrags", 0);
CS_SetClientAssists(client, 0);
CS_SetMVPCount(client, 0);
CS_SetClientContributionScore(client, 0);
CGOPrintToChat(client, "{GREEN}[RS] {DEFAULT}Ваш счёт сброшен!");
}
else CGOPrintToChat(client, "{GREEN}[RS] {DEFAULT}У вас итак счет равен 0!");
}
}