I have a request if there is a good soul who will add an exception for people with a Root flag to have a smoke grenade
PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>
#include <cstrike>
public OnPluginStart()
{
CreateConVar("Clear Weapons", "1.0", "Linux`");
}
public OnEntityCreated(entity, const String:classname[])
{
if(entity > MaxClients && IsValidEntity(entity))
{
if(!StrEqual(classname, "weapon_awp") && StrContains(classname, "weapon_", false) != -1)
if(!StrEqual(classname, "weapon_knife") && StrContains(classname, "knife_", false) != -1)
SDKHook(entity, SDKHook_Spawn, OnEntitySpawned);
}
}
public Action:OnEntitySpawned(entity)
{
AcceptEntityInput(entity, "kill");
SDKUnhook(entity, SDKHook_Spawn, OnEntitySpawned);
}