alexmy
Участник
- Сообщения
- 284
- Реакции
- 13
Всем привет ребята, подскажите в чем проблема.
сам код
C-подобный:
L 03/28/2017 - 22:42:29: SourceMod error session started
L 03/28/2017 - 22:42:29: Info (map "l4d_fallen03_tower") (file "errors_20170328.log")
L 03/28/2017 - 22:42:29: [SM] Native "FakeClientCommand" reported: Client 3 is not connected
L 03/28/2017 - 22:42:29: [SM] Displaying call stack trace for plugin "l4d_tank_killed.smx":
L 03/28/2017 - 22:42:29: [SM] [0] Line 149, E:\left4dead\left4dead\addons\sourcemod\scripting\l4d_tank_killed.sp::timer_SpawnTank()
L 03/28/2017 - 22:45:49: Error log file session closed.
PHP:
public Action timer_SpawnTank(Handle timer)
{
for (int i = 1; i <= MaxClients; ++i)
{
if (IsClientInGame(i)) continue;
{
int flags = GetCommandFlags("z_spawn");
SetCommandFlags("z_spawn", flags & ~FCVAR_CHEAT);
FakeClientCommand(i, "z_spawn tank auto");
SetCommandFlags("z_spawn", flags);
break;
}
}
return Plugin_Stop;
}