Hi.
I have an Question ^^ again..
HOW would it be done to make something like this.
command: function [PATHNAME/MODEL.MDL] etc....
So i can choose different Sprites when its precached.
Code:
register_clcmd("Funtion","func",ADMIN_ALL, [value], [Modelpath/modelname]")
Code:
public func(id, the commands, MODELPATH/MODELNAME.MDL)
//Creating the Stuff
lopes[id] = create_entity("env_model");
entity_set_string(lopes[id], EV_SZ_classname, "env_model")
entity_set_edict(lopes[id], EV_ENT_owner, id );
entity_set_int(lopes[id], EV_INT_rendermode, rendermo )
entity_set_model(lopes[id], "PATH/MODELNAME.MDL");//Precached Model
Code:
public plugin_precache()
{
precache_model("pathname/modelname.mdl")
precache_model("pathname/modelname1.mdl")
precache_model("pathname/modelname2.mdl")
etc...
return PLUGIN_HANDLED
}
So HOW would that be done, so i can use 1 Code Function with different precached Models ?
Where i have to write the exact pathname and modelname in the console field when i wanna create that Model ?
__________________