• Disable changing of Player model on Server
    2 replies, posted
I wanted to disable changing the player model on my server, but I don't know how... Any ideas?
[QUOTE=MrDrElliot;32495179]I wanted to disable changing the player model on my server, but I don't know how... Any ideas?[/QUOTE] I found this on the wiki. [lua]util.PrecacheModel( "models/player/odessa.mdl" ) function GM:PlayerSetModel( ply ) ply:SetModel( "models/player/odessa.mdl" ) end[/lua] [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSetModel]Gamemode.PlayerSetModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] edit: Use this is you only want to make non-admins have a static player model. [lua]function GM:PlayerSetModel( ply ) if !ply:IsAdmin() then ply:SetModel("models/player/odessa.mdl") end end[/lua]
Thank you. That helped a lot. [editline]27th September 2011[/editline] Where would I put that?
Sorry, you need to Log In to post a reply to this thread.