Disabling Player Model Changes

Hey I was wondering how I would go about disabling the sandbox Player Model changer ( when you hold C )

My gamemode has been derived from sandbox.

I would only like models to be changed VIA ply:SetModel( “” )

Any help is great!

Thanks, WholeGamer

glua.me to the rescue:

Name: gamemode:PlayerSetModel( )
Desc: Set the player’s model
function GM:PlayerSetModel( pl )

local cl_playermodel = pl:GetInfo( "cl_playermodel" )
local modelname = player_manager.TranslatePlayerModel( cl_playermodel )
util.PrecacheModel( modelname )
pl:SetModel( modelname )


just hook or override PlayerSetModel.