Бинд со стороны сервера

Rostu

Добрая душа
Сообщения
986
Реакции
623
@Forever Alone,
PHP:
#include <sourcemod>
#include <sdktools>
#pragma semicolon 1

public Action:OnPlayerRunCmd(client, &buttons)
{
static bool:g_InUse[MAXPLAYERS+1];
if(!g_InUse[client] && (buttons & IN_USE))
{
  ClientCommand(client, "sm_com");
  g_InUse[client] = true;
}
  else if (!(buttons & IN_USE) && g_InUse[client])
{
  g_InUse[client] = false;
}
return Plugin_Continue;
}
 

jackal_66

Участник
Сообщения
27
Реакции
1
@Forever Alone,
PHP:
#include <sourcemod>
#include <sdktools>
#pragma semicolon 1

public Action:OnPlayerRunCmd(client, &buttons)
{
static bool:g_InUse[MAXPLAYERS+1];
if(!g_InUse[client] && (buttons & IN_USE))
{
  ClientCommand(client, "sm_com");
  g_InUse[client] = true;
}
  else if (!(buttons & IN_USE) && g_InUse[client])
{
  g_InUse[client] = false;
}
return Plugin_Continue;
}

FCVAR_SERVER_CAN_EXECUTE prevented server running command: say_team
--- Добавлено позже ---
Как решить данную проблему?
FCVAR_SERVER_CAN_EXECUTE prevented server running command: say_team
 
Последнее редактирование:
Сверху Снизу