Code:
#include <sourcemod>
#include <sdktools>
#pragma semicolon 1
new iEnt;
new const String:EntityList[][] = { "func_wall_toggle", "func_touch" };
public OnPluginStart()
{
RegAdminCmd("sm_open", OnOpenCommand, ADMFLAG_ROOT);
}
public Action:OnOpenCommand(client, args)
{
for(new i = 0; i < sizeof(EntityList); i++)
while((iEnt = FindEntityByClassname(iEnt, EntityList[i])) != -1)
AcceptEntityInput(iEnt, "touch");
return Plugin_Handled;
}
Im using this code atm.. It doesnt give any errors, but when i go ingame the wall doesnt "touch" if i do !open anyone know how to get it working?