Ребят сделайте пожалуйста исходник без звуков а то при запуске в консоле пишет
[AST] ERROR: File sound 'sound/hostage/huse/okletsgo.wav' doesn't exist!
[AST] ERROR: File sound 'sound/buttons/bell1.wav' doesn't exist!
[AST] ERROR: File sound 'sound/ambient/misc/brass_bell_C.wav' doesn't exist!
L 05/21/2020 - 18:28:13: [SM] Exception reported: Property "m_iScore" not found (entity 68/cs_team_manager)
L 05/21/2020 - 18:28:13: [SM] Blaming: autoswapteam.smx
L 05/21/2020 - 18:28:13: [SM] Call stack trace:
L 05/21/2020 - 18:28:13: [SM] [0] SetEntProp
L 05/21/2020 - 18:28:13: [SM] [1] Line 752, D:\sourcemod-1.8.0-git5948-windows\addons\sourcemod\scripting\autoswapteam.sp::SetScoreTeam
L 05/21/2020 - 18:28:13: [SM] [2] Line 558, D:\sourcemod-1.8.0-git5948-windows\addons\sourcemod\scripting\autoswapteam.sp::OnRoundEnd
L 11/08/2021 - 22:44:29: [SM] Exception reported: Property "m_iScore" not found (entity 68/cs_team_manager)
L 11/08/2021 - 22:44:29: [SM] Blaming: autoswapteam.smx
L 11/08/2021 - 22:44:29: [SM] Call stack trace:
L 11/08/2021 - 22:44:29: [SM] [0] SetEntProp
L 11/08/2021 - 22:44:29: [SM] [1] Line 898, C:\Users\ZLOY\Desktop\sourcemod\scripting\autoswapteam.sp::SetScoreTeam
L 11/08/2021 - 22:44:29: [SM] [2] Line 945, C:\Users\ZLOY\Desktop\sourcemod\scripting\autoswapteam.sp::SetScore
L 11/08/2021 - 22:44:29: [SM] [3] Line 664, C:\Users\ZLOY\Desktop\sourcemod\scripting\autoswapteam.sp::AutoSwap
Как вариант заблокировать его)Можно ли убрать сообщения о переходе за команду?
#pragma semicolon 1
#pragma newdecls required
public void OnPluginStart() {
HookEvent("player_team", Event_Player_Team, EventHookMode_Pre);
}
public Action Event_Player_Team(Event event, const char[] name, bool dontBroadcast) {
return Plugin_Handled;
}
OnPluginStart
- хук. В плагине старый синтаксис, поэтому вот решение#pragma semicolon 1
public OnPluginStart() {
HookEvent("player_team", Event_PlayerTeam, EventHookMode_Pre);
}
public Action:Event_PlayerTeam(Handle:event, const String:name[], bool:dontBroadcast) {
return Plugin_Handled;
}
предпочитаю новый =)@babka68, То что нужно, я забыл добавить вOnPluginStart
- хук. В плагине старый синтаксис, поэтому вот решение
C-подобный:#pragma semicolon 1 public OnPluginStart() { HookEvent("player_team", Event_PlayerTeam, EventHookMode_Pre); } public Action:Event_PlayerTeam(Handle:event, const String:name[], bool:dontBroadcast) { return Plugin_Handled; }