安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题
and i gues i have to add Enhanced PlayerModel Selector to the server resurce list to?
Step 1: Uncheck Enforce Playermodel in settings for EPMS, client settings for EPMS (each player will have to do this), and TTT2 settings.
Step 2: On server create folder structure: garrysmod\addons\applymodels\lua\server\applymodels.lua
Step 3: Write the following to applymodels.lua
hook.Add( "TTTPrepareRound", "RandomizeTPercentage", function()
for k, v in pairs( player.GetAll() ) do
RunConsoleCommand("ulx_logecho", "0")
RunConsoleCommand("ulx", "cexec", tostring(v:GetName()), "playermodel_apply")
RunConsoleCommand("ulx_logecho", "1")
end
end )
hook.Add( "TTTBeginRound", "UpdatePlayerModels", function()
for k, v in pairs ( player.GetAll() ) do
RunConsoleCommand("ulx_logecho", "0")
RunConsoleCommand("ulx", "cexec", tostring(v:GetName()), "playermodel_apply")
RunConsoleCommand("ulx_logecho", "1")
end
end )
Step 4: Save your applymodels.lua file and either change maps or restart your server, not sure which is required.
This will make the server send a "playermodel_apply" to each active player at the start of each prep phase and round start. Much better than binding a key and spamming it.
timer.Simple(1, function() round = true end)
for k, v in pairs ( player.GetAll() ) do
RunConsoleCommand("ulx_logecho", "0")
RunConsoleCommand("ulx", "cexec", tostring(v:GetName()), "playermodel_apply")
RunConsoleCommand("ulx_logecho", "1")
end
end )
hook.Add( "PlayerSpawn", "PlayerLoadingOut", function( ply )
RunConsoleCommand("ulx_logecho", "0")
RunConsoleCommand("ulx", "cexec", tostring(ply:GetName()), "playermodel_apply")
RunConsoleCommand("ulx_logecho", "1")
end )
Ended up working better for me in the end, to get players to respawn with their model if they respawn in the middle of a round. Have not yet stability tested.