This must work. I know problem is when extern texture and model are in diferent folder beacuse path for extern texture is only defined in mdl file, if we do not have texture in folder where is the model then compiler can't find this file. Same things for other files, if file is not defined in wmb or script, compiler will not find this file. I think for some things like ent_create, ent_morph,... you must use BIND function. First check did you include script in map from where you compile game. Check this topic