Здравствуй проверьте код правильно ли заменил значения
#pragma semicolon 1
#include <sourcemod>
#define PLUGIN_VERSION "1.0"
new Handle:Enable;
new Handle:Modes;
public Plugin:myinfo =
{
name = "Remove panel",
author = "Captain Kostya Stubin",
description = "Remove panel.",
version = 1.0,
url = "N/A"
}
public OnPluginStart()
{
CreateConVar("removepanel_version", PLUGIN_VERSION, "Remove Panel version", FCVAR_PLUGIN|FCVAR_NOTIFY|FCVAR_DONTRECORD|FCVAR_REPLICATED);
Enable = CreateConVar("removepanel_enable", "1", "Remove Panel enable?", FCVAR_PLUGIN);
Modes = CreateConVar("removepanel_modes", "realism,,coop,", "Which game modes to enable Remove Panel", FCVAR_PLUGIN);
AutoExecConfig(true, "removepanel");
}
stock bool:IsAllowedGameMode()
{
decl String:gamemode[24], String:gamemodeactive[64];
GetConVarString(FindConVar("mp_gamemode"), gamemode, sizeof(gamemode));
GetConVarString(Modes, gamemodeactive, sizeof(gamemodeactive));
return (StrContains(gamemodeactive, gamemode) != -1);
}
public OnClientAuthorized(client)
{
if(IsAllowedGameMode() && GetConVarInt(Enable) == 1 && !IsFakeClient(client))
{
CreateTimer(0.0, Enforce, client, TIMER_REPEAT);
}
}
public Action:Enforce(Handle:Timer, any:client)
{
if(IsClientInGame(client) && GetClientTeam(client) == 2 && GetConVarInt(Enable) == 1 && IsAllowedGameMode() && IsValidEntity(client))
SetEntProp(client, Prop_Send, "m_icl_drawhud", 0);
if(IsClientInGame(client) && GetClientTeam(client) == 3)
SetEntProp(client, Prop_Send, "m_icl_drawhud", 0);
if(IsClientInGame(client) && GetClientTeam(client) == 1)
SetEntProp(client, Prop_Send, "m_icl_drawhud ", 0);
}