forked from UNLOZE/sm-plugins
SourceMod 1.10 and new OnEntitySpawned forward
This commit is contained in:
@@ -59,15 +59,10 @@ public void OnGameFrame()
|
||||
}
|
||||
}
|
||||
|
||||
public void OnEntityCreated(int entity, const char[] classname)
|
||||
public void OnEntitySpawned(int entity, const char[] classname)
|
||||
{
|
||||
if(IsValidEntity(entity) && StrEqual(classname, "item_defuser"))
|
||||
{
|
||||
SDKHook(entity, SDKHook_Spawn, OnWeaponSpawned);
|
||||
AcceptEntityInput(entity, "Kill");
|
||||
}
|
||||
}
|
||||
|
||||
public void OnWeaponSpawned(int entity)
|
||||
{
|
||||
AcceptEntityInput(entity, "Kill");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user