Forcing Player Models

Im Looking to Force player Models Upon a Team in a Sandbox Derived Gamemode, But i Dont Know How.
This isnt Forcing Based on Admin and Such, its based on two Teams Such as
Cops are CP model
and
Robbers are Rebel Model
Regardless of Admin Powers
This is my Code
[lua]
team.SetUp( 1, “TeamA”, Color( 255, 255, 0, 255 ) )
team.SetUp( 2, “TeamB”, Color( 46, 117, 36, 255 ) )
team.SetUp( 3, “Spectator”, Color( 0, 0 , 0, 255 ) )
[/lua]

Cheers

Set their models in: http://wiki.garrysmod.com/?title=Gamemode.PlayerSetModel

This hook is called when the player spawns.

Here’s a really basic way to do it :

[lua]local TeamModels = {}
TeamModels[1] = “model/used/by/team1.mdl”
TeamModels[2] = “model/used/by/team2.mdl”
TeamModels[3] = “model/used/by/team3.mdl”

local function ForceModel( ply )
pModel = TeamModels[ply:Team()]
util.PrecacheModel( pModel )
ply:SetModel( pModel )
end
hook.Add( “PlayerSetModel”, “ForceModel”, ForceModel )[/lua]

Thanks a Bunch Guys!