Code:
local PLUGIN = PLUGIN
function PLUGIN:GetPlayerDefaultModel(player)
local faction = player:GetFaction();
if (Schema:IsCombineFaction(faction)) then
if (Schema:IsPlayerCombineRank(player, "JUDGE")) then
if(Schema:IsCombineRank(player, "i5")) then
return "models/dpfilms/metropolice/retrocop.mdl"
elseif(Schema:IsCombineRank(player, "i4")) then
return "models/dpfilms/metropolice/retrocop.mdl"
elseif(Schema:IsCombineRank(player, "i3")) then
return "models/dpfilms/metropolice/retrocop.mdl"
elseif(Schema:IsCombineRank(player, "i2")) then
return "models/dpfilms/metropolice/retrocop.mdl"
elseif(Schema:IsCombineRank(player, "i1")) then
return "models/dpfilms/metropolice/retrocop.mdl"
elseif(Schema:IsCombineRank(player, "EpU")) then
return "models/dpfilms/metropolice/retrocop.mdl"
elseif(Schema:IsCombineRank(player, "OfC")) then
return "models/dpfilms/metropolice/retrocop.mdl"
elseif(Schema:IsCombineRank(player, "SqL")) then
return "models/dpfilms/metropolice/hl2beta_police.mdl"
elseif(Schema:IsCombineRank(player, "DvL")) then
return "models/dpfilms/metropolice/rtb_police.mdl"
end
elseif (Schema:IsPlayerCombineRank(player, "HELIX")) then
if(Schema:IsCombineRank(player, "i5")) then
return "models/dpfilms/metropolice/civil_medic.mdl"
elseif(Schema:IsCombineRank(player, "i4")) then
return "models/dpfilms/metropolice/civil_medic.mdl"
elseif(Schema:IsCombineRank(player, "i3")) then
return "models/dpfilms/metropolice/civil_medic.mdl"
elseif(Schema:IsCombineRank(player, "i2")) then
return "models/dpfilms/metropolice/civil_medic.mdl"
elseif(Schema:IsCombineRank(player, "i1")) then
return "models/dpfilms/metropolice/civil_medic.mdl"
elseif(Schema:IsCombineRank(player, "EpU")) then
return "models/dpfilms/metropolice/civil_medic.mdl"
elseif(Schema:IsCombineRank(player, "OfC")) then
return "models/dpfilms/metropolice/civil_medic.mdl"
elseif(Schema:IsCombineRank(player, "SqL")) then
return "models/dpfilms/metropolice/civil_medic.mdl"
elseif(Schema:IsCombineRank(player, "DvL")) then
return "models/dpfilms/metropolice/biopolice.mdl"
end
elseif (Schema:IsPlayerCombineRank(player, "UNION")) then
if(Schema:IsCombineRank(player, "i5")) then
return "models/dpfilms/metropolice/hdpolice.mdl"
elseif(Schema:IsCombineRank(player, "i4")) then
return "models/dpfilms/metropolice/hdpolice.mdl"
elseif(Schema:IsCombineRank(player, "i3")) then
return "models/dpfilms/metropolice/hdpolice.mdl"
elseif(Schema:IsCombineRank(player, "i2")) then
return "models/dpfilms/metropolice/hdpolice.mdl"
elseif(Schema:IsCombineRank(player, "i1")) then
return "models/dpfilms/metropolice/hdpolice.mdl"
elseif(Schema:IsCombineRank(player, "EpU")) then
return "models/dpfilms/metropolice/hdpolice.mdl"
elseif(Schema:IsCombineRank(player, "OfC")) then
return "models/dpfilms/metropolice/hdpolice.mdl"
elseif(Schema:IsCombineRank(player, "SqL")) then
return "models/dpfilms/metropolice/hl2concept.mdl"
elseif(Schema:IsCombineRank(player, "DvL")) then
return "models/dpfilms/metropolice/elite_police.mdl"
end
elseif (Schema:IsPlayerCombineRank(player, "SWORD")) then
if(Schema:IsCombineRank(player, "OfC")) then
return "models/dpfilms/metropolice/urban_police.mdl"
elseif(Schema:IsCombineRank(player, "SqL")) then
return "models/dpfilms/metropolice/urban_police.mdl"
elseif(Schema:IsCombineRank(player, "DvL")) then
return "models/dpfilms/metropolice/police_fragger.mdl"
end
elseif (Schema:IsPlayerCombineRank(player, "GRID")) then
if(Schema:IsCombineRank(player, "i5")) then
return "models/dpfilms/metropolice/tron_police.mdl"
elseif(Schema:IsCombineRank(player, "i4")) then
return "models/dpfilms/metropolice/tron_police.mdl"
elseif(Schema:IsCombineRank(player, "i3")) then
return "models/dpfilms/metropolice/tron_police.mdl"
elseif(Schema:IsCombineRank(player, "i2")) then
return "models/dpfilms/metropolice/tron_police.mdl"
elseif(Schema:IsCombineRank(player, "i1")) then
return "models/dpfilms/metropolice/tron_police.mdl"
elseif(Schema:IsCombineRank(player, "EpU")) then
return "models/dpfilms/metropolice/tron_police.mdl"
elseif(Schema:IsCombineRank(player, "OfC")) then
return "models/dpfilms/metropolice/tron_police.mdl"
elseif(Schema:IsCombineRank(player, "SqL")) then
return "models/dpfilms/metropolice/hunter_police.mdl"
elseif(Schema:IsCombineRank(player, "DvL")) then
return "models/eliteshockcp.mdl"
end
elseif (Schema:IsPlayerCombineRank(player, "CmD")) then
return "models/dpfilms/metropolice/phoenix_police.mdl"
elseif (Schema:IsPlayerCombineRank(player, "SeC")) then
return "models/dpfilms/metropolice/blacop.mdl"
end;
end;
end;
function PLUGIN:PlayerNameChanged(player, previousName, newName)
if (Schema:PlayerIsCombine(player)) then
local faction = player:GetFaction();
if (Schema:IsStringCombineRank(newName, "JUDGE")) then
if (Schema:IsStringCombineRank(newName, "i5")) then
player:SetModel("models/dpfilms/metropolice/retrocop.mdl");
elseif (Schema:IsStringCombineRank(newName, "i4")) then
player:SetModel("models/dpfilms/metropolice/retrocop.mdl");
elseif (Schema:IsStringCombineRank(newName, "i3")) then
player:SetModel("models/dpfilms/metropolice/retrocop.mdl");
elseif (Schema:IsStringCombineRank(newName, "i2")) then
player:SetModel("models/dpfilms/metropolice/retrocop.mdl");
elseif (Schema:IsStringCombineRank(newName, "i1")) then
player:SetModel("models/dpfilms/metropolice/retrocop.mdl");
elseif (Schema:IsStringCombineRank(newName, "EpU")) then
player:SetModel("models/dpfilms/metropolice/retrocop.mdl");
elseif (Schema:IsStringCombineRank(newName, "OfC")) then
player:SetModel("models/dpfilms/metropolice/retrocop.mdl");
elseif (Schema:IsStringCombineRank(newName, "SqL")) then
player:SetModel("models/dpfilms/metropolice/hl2beta_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "DvL")) then
player:SetModel("models/dpfilms/metropolice/rtb_police.mdl");
end;
elseif (Schema:IsStringCombineRank(newName, "HELIX")) then
if (Schema:IsStringCombineRank(newName, "i5")) then
player:SetModel("models/dpfilms/metropolice/civil_medic.mdl");
elseif (Schema:IsStringCombineRank(newName, "i4")) then
player:SetModel("models/dpfilms/metropolice/civil_medic.mdl");
elseif (Schema:IsStringCombineRank(newName, "i3")) then
player:SetModel("models/dpfilms/metropolice/civil_medic.mdl");
elseif (Schema:IsStringCombineRank(newName, "i2")) then
player:SetModel("models/dpfilms/metropolice/civil_medic.mdl");
elseif (Schema:IsStringCombineRank(newName, "i1")) then
player:SetModel("models/dpfilms/metropolice/civil_medic.mdl");
elseif (Schema:IsStringCombineRank(newName, "EpU")) then
player:SetModel("models/dpfilms/metropolice/civil_medic.mdl");
elseif (Schema:IsStringCombineRank(newName, "OfC")) then
player:SetModel("models/dpfilms/metropolice/civil_medic.mdl");
elseif (Schema:IsStringCombineRank(newName, "SqL")) then
player:SetModel("models/dpfilms/metropolice/civil_medic.mdl");
elseif (Schema:IsStringCombineRank(newName, "DvL")) then
player:SetModel("models/dpfilms/metropolice/biopolice.mdl");
end;
elseif (Schema:IsStringCombineRank(newName, "UNION")) then
if (Schema:IsStringCombineRank(newName, "i5")) then
player:SetModel("models/dpfilms/metropolice/hdpolice.mdl");
elseif (Schema:IsStringCombineRank(newName, "i4")) then
player:SetModel("models/dpfilms/metropolice/hdpolice.mdl");
elseif (Schema:IsStringCombineRank(newName, "i3")) then
player:SetModel("models/dpfilms/metropolice/hdpolice.mdl");
elseif (Schema:IsStringCombineRank(newName, "i2")) then
player:SetModel("models/dpfilms/metropolice/hdpolice.mdl");
elseif (Schema:IsStringCombineRank(newName, "i1")) then
player:SetModel("models/dpfilms/metropolice/hdpolice.mdl");
elseif (Schema:IsStringCombineRank(newName, "EpU")) then
player:SetModel("models/dpfilms/metropolice/hdpolice.mdl");
elseif (Schema:IsStringCombineRank(newName, "OfC")) then
player:SetModel("models/dpfilms/metropolice/hdpolice.mdl");
elseif (Schema:IsStringCombineRank(newName, "SqL")) then
player:SetModel("models/dpfilms/metropolice/hl2concept.mdl");
elseif (Schema:IsStringCombineRank(newName, "DvL")) then
player:SetModel("models/dpfilms/metropolice/elite_police.mdl");
end;
elseif (Schema:IsStringCombineRank(newName, "SWORD")) then
if (Schema:IsStringCombineRank(newName, "OfC")) then
player:SetModel("models/dpfilms/metropolice/urban_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "SqL")) then
player:SetModel("models/dpfilms/metropolice/urban_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "DvL")) then
player:SetModel("models/dpfilms/metropolice/police_fragger.mdl");
end;
elseif (Schema:IsStringCombineRank(newName, "GRID")) then
if (Schema:IsStringCombineRank(newName, "i5")) then
player:SetModel("models/dpfilms/metropolice/tron_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "i4")) then
player:SetModel("models/dpfilms/metropolice/tron_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "i3")) then
player:SetModel("models/dpfilms/metropolice/tron_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "i2")) then
player:SetModel("models/dpfilms/metropolice/tron_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "i1")) then
player:SetModel("models/dpfilms/metropolice/tron_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "EpU")) then
player:SetModel("models/dpfilms/metropolice/tron_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "OfC")) then
player:SetModel("models/dpfilms/metropolice/tron_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "SqL")) then
player:SetModel("models/dpfilms/metropolice/hunter_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "DvL")) then
player:SetModel("models/eliteshockcp.mdl");
end;
elseif (Schema:IsStringCombineRank(newName, "CmD")) then
player:SetModel("models/dpfilms/metropolice/phoenix_police.mdl");
elseif (Schema:IsStringCombineRank(newName, "SeC")) then
player:SetModel("models/dpfilms/metropolice/blacop.mdl");
end;
end;
end
function PLUGIN:PlayerAdjustCharacterScreenInfo(player, character, info)
if (Schema:IsCombineFaction(info.faction)) then
if (self:IsStringCombineRank(info.name, "SeC")) then
info.model = "models/dpfilms/metropolice/blacop.mdl";
elseif (self:IsStringCombineRank(info.name, "CmD")) then
info.model = "models/dpfilms/metropolice/phoenix_police.mdl";
elseif (self:IsStringCombineRank(info.name, "JUDGE")) then
if (self:IsStringCombineRank(info.name, "i5")) then
info.model = "models/dpfilms/metropolice/retrocop.mdl";
elseif (self:IsStringCombineRank(info.name, "i4")) then
info.model = "models/dpfilms/metropolice/retrocop.mdl";
elseif (self:IsStringCombineRank(info.name, "i3")) then
info.model = "models/dpfilms/metropolice/retrocop.mdl";
elseif (self:IsStringCombineRank(info.name, "i2")) then
info.model = "models/dpfilms/metropolice/retrocop.mdl";
elseif (self:IsStringCombineRank(info.name, "i1")) then
info.model = "models/dpfilms/metropolice/retrocop.mdl";
elseif (self:IsStringCombineRank(info.name, "OfC")) then
info.model = "models/dpfilms/metropolice/retrocop.mdl";
elseif (self:IsStringCombineRank(info.name, "SqL")) then
info.model = "models/dpfilms/metropolice/hl2beta_police.mdl";
elseif (self:IsStringCombineRank(info.name, "DvL")) then
info.model = "models/dpfilms/metropolice/rtb_police.mdl";
end;
elseif (self:IsStringCombineRank(info.name, "HELIX")) then
if (self:IsStringCombineRank(info.name, i5)) then
info.model = "models/dpfilms/metropolice/civil_medic.mdl";
elseif (self:IsStringCombineRank(info.name, "i4")) then
info.model = "models/dpfilms/metropolice/civil_medic.mdl";
elseif (self:IsStringCombineRank(info.name, "i3")) then
info.model = "models/dpfilms/metropolice/civil_medic.mdl";
elseif (self:IsStringCombineRank(info.name, "i2")) then
info.model = "models/dpfilms/metropolice/civil_medic.mdl";
elseif (self:IsStringCombineRank(info.name, "i1")) then
info.model = "models/dpfilms/metropolice/civil_medic.mdl";
elseif (self:IsStringCombineRank(info.name, "OfC")) then
info.model = "models/dpfilms/metropolice/civil_medic.mdl";
elseif (self:IsStringCombineRank(info.name, "SqL")) then
info.model = "models/dpfilms/metropolice/civil_medic.mdl";
elseif (self:IsStringCombineRank(info.name, "DvL")) then
info.model = "models/dpfilms/metropolice/biopolice.mdl";
end;
elseif (self:IsStringCombineRank(info.name, "UNION")) then
if (self:IsStringCombineRank(info.name, "i5")) then
info.model = "models/dpfilms/metropolice/hdpolice.mdl";
elseif (self:IsStringCombineRank(info.name, "i4")) then
info.model = "models/dpfilms/metropolice/hdpolice.mdl";
elseif (self:IsStringCombineRank(info.name, "i3")) then
info.model = "models/dpfilms/metropolice/hdpolice.mdl";
elseif (self:IsStringCombineRank(info.name, "i2")) then
info.model = "models/dpfilms/metropolice/hdpolice.mdl";
elseif (self:IsStringCombineRank(info.name, "i1")) then
info.model = "models/dpfilms/metropolice/hdpolice.mdl";
elseif (self:IsStringCombineRank(info.name, "OfC")) then
info.model = "models/dpfilms/metropolice/hdpolice.mdl";
elseif (self:IsStringCombineRank(info.name, "SqL")) then
info.model = "models/dpfilms/metropolice/hl2concept.mdl";
elseif (self:IsStringCombineRank(info.name, "DvL")) then
info.model = "models/dpfilms/metropolice/elite_police.mdl";
end;
elseif (self:IsStringCombineRank(info.name, "SWORD")) then
if (self:IsStringCombineRank(info.name, "OfC")) then
info.model = "models/dpfilms/metropolice/urban_police.mdl";
elseif (self:IsStringCombineRank(info.name, "SqL")) then
info.model = "models/dpfilms/metropolice/urban_police.mdl";
elseif (self:IsStringCombineRank(info.name, "DvL")) then
info.model = "models/dpfilms/metropolice/police_fragger.mdl";
end;
elseif (self:IsStringCombineRank(info.name, "GRID")) then
if (self:IsStringCombineRank(info.name, "i5")) then
info.model = "models/dpfilms/metropolice/tron_police.mdl";
elseif (self:IsStringCombineRank(info.name, "i4")) then
info.model = "models/dpfilms/metropolice/tron_police.mdl";
elseif (self:IsStringCombineRank(info.name, "i3")) then
info.model = "models/dpfilms/metropolice/tron_police.mdl";
elseif (self:IsStringCombineRank(info.name, "i2")) then
info.model = "models/dpfilms/metropolice/tron_police.mdl";
elseif (self:IsStringCombineRank(info.name, "i1")) then
info.model = "models/dpfilms/metropolice/tron_police.mdl";
elseif (self:IsStringCombineRank(info.name, "OfC")) then
info.model = "models/dpfilms/metropolice/tron_police.mdl";
elseif (self:IsStringCombineRank(info.name, "SqL")) then
info.model = "models/dpfilms/metropolice/hunter_police.mdl";
elseif (self:IsStringCombineRank(info.name, "DvL")) then
info.model = "models/eliteshockcp.mdl";
end;
end;
end;
end;