Quote:
Originally Posted by h3bus
The complete way would be hooking Spawn event on OnEntityCreated then killing the weapon there.
|
Totally agree with you sir!
Simple and efficient way to do it ->
PHP Code:
public int OnEntityCreated(int entity, const char[] classname)
{
if (StrEqual(classname, "weapon_deagle"))
SDKHook(entity, SDKHook_Spawn, OnDeagleSpawn);
}
public Action OnDeagleSpawn(int entity)
{
return Plugin_Handled;
}