Thread: Monster Mod
View Single Post
solano
Member
Join Date: Nov 2009
Old 11-24-2009 , 05:35   Re: Monster Mod
Reply With Quote #23

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

Last edited by solano; 11-24-2009 at 05:40.
solano is offline