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:

[lua]–[[---------------------------------------------------------
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 )

end[/lua]

just hook or override PlayerSetModel.