Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Just below, there is the function GM:PlayerSetModel. You can replace the code in it with :
if ply:Team() == 2 then
ply:SetModel("<the path to your .mdl file for the hunter model/skin>")
elseif ply:Team() == 3 then
local cl_playermodel = ply:GetInfo( "cl_playermodel" )
local playerModel = table.Random(playerModels)
cl_playermodel = playerModel.model
local modelname = player_manager.TranslatePlayerModel( cl_playermodel )
util.PrecacheModel( modelname )
ply:SetModel( <path to your .mdl file> )
ply.ModelSex = playerModel.sex
net.Start("player_model_sex")
net.WriteString(playerModel.sex)
net.Send(ply)
end
That's how I did on my server and it works greatly !
I hope I helped you !