PHP Code:
public void OnEntityCreated(int entity, const char[] classname)
{
if (StrEqual(classname, "smokegrenade_projectile", false))
{
SdkHook(entity, SDKHook_Spawn, OnSpawnPost);
}
}
public Action OnSpawnPost(int entity)
{
DispatchKeyValue(entity, "targetname", "ArtilleryStrikeMark");
}
Can you say what are you trying to do exactly with this entity?
__________________