Code:
ENTITY* SomePlayer;
STRING* plmodel = "player.mdl";

action TheAction(){
// the code for your player
}

function main(){
//code..
SomePlayer=ent_create(plmodel, vector(100,125,45),TheAction);
}



Don't know if this works the best, maybe someone can make it better ^^


smile