Code:
public plugin_precache()
{
precache_model("models/zombie.mdl")
precache_sound("sounds/zombie/claw_strike1.wav")
precache_sound("sounds/zombie/claw_strike2.wav")
precache_sound("sounds/zombie/claw_strike3.wav")
return PLUGIN_CONTINUE
server fatal error:
Host_Error: PF_Precache_Sound_l: 'zombie/classtrike1.wav' Precache can only be done in spawn function
but if i move the before
entid = create_entity( "monster_zombie" );
set_pev( entid, pev_origin, Origin );
DispatchSpawn( entid );
return PLUGIN_HANDLED
then when i type amx_monster in the console it says unknown function