Garry's Mod

Garry's Mod

Player customizer (non-RP + DarkRP)
 此主题已被置顶,因此可能具有重要性
Cédric GÉRILLE [GiletJaune]  [开发者] 2016 年 10 月 8 日 下午 7:53
Example of different configurations depending on the gamemode
-- This file should be placed as lua/autorun/server/pcs_custom.lua -- Make sure to customize the conditions and the affected values. hook.Add( "PostGamemodeLoaded", "pcs_custom", function() local gamemode = engine.ActiveGamemode() if gamemode == "terrortown" then RunConsoleCommand( "pcs_noshowonspawn", "0" ) RunConsoleCommand( "pcs_noshowonteam", "1" ) elseif gamemode == "sandbox" then RunConsoleCommand( "pcs_noshowonspawn", "1" ) RunConsoleCommand( "pcs_noshowonteam", "1" ) else RunConsoleCommand( "pcs_noshowonspawn", "0" ) RunConsoleCommand( "pcs_noshowonteam", "0" ) end end )
< >
正在显示第 1 - 2 条,共 2 条留言
Puma 2016 年 10 月 10 日 上午 7:28 
Thank you very much! :steamhappy:
Cédric GÉRILLE [GiletJaune]  [开发者] 2016 年 10 月 10 日 上午 8:14 
No problem :extralife:
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50