#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;
}