Page 1 of 1

Admin model

Posted: April 8th, 2010, 7:13 am
by Sanya
Hello, I want use admin model in jump mod, but... I try many way for it, but havent admin model, Some1 can help me?

Script:


AdminModel()
{
if(isDefined(self.cj["status"] && self getGuid() != "guid") && self.cj["status"]&& self getGuid() != "guid")
{
if((game["allies"] == "marines") || (game["axis"] == "marines")) // Map with Marines-Models
{
if(game["allies_soldiertype"] == "desert")
{
self detachAll();
self setModel("body_mp_usmc_assault");
self attach("head_mp_usmc_tactical_mich", "", true);
self setViewmodel("viewmodel_base_viewhands");
self.voice = "american";
}
else
{
self detachAll();
self setModel("body_mp_usmc_woodland_assault");
self attach("head_mp_usmc_tactical_mich", "", true);
self setViewmodel("viewhands_sas_woodland");
self.voice = "british";
}
}
else if((game["allies"] == "sas") || (game["axis"] == "sas")) // Map with SAS-Models
{
if(game["allies_soldiertype"] == "urban")
{
self detachAll();
self setModel("body_mp_sas_urban_assault");
self setViewmodel("viewhands_black_kit");
self.voice = "british";
}
else
{
self detachAll();
self setModel("body_mp_usmc_woodland_assault");
self attach("head_mp_usmc_tactical_mich", "", true);
self setViewmodel("viewhands_sas_woodland");
self.voice = "british";
}
}
else
{

}
}
else
{

}
}

I dont know why Pedsdude said that I should post it there x)

Re: Admin model

Posted: April 8th, 2010, 9:00 pm
by Drofder2004
Firstly, are you adding this to your own jump mod or are you adding this to a map file or something?

Secondly, I have yet to touch the model functions. I can only help with errors.

Re: Admin model

Posted: April 9th, 2010, 4:28 am
by Sanya
Jump mod, I just havent model.