Playermodel Help

Hi i have a server (fretta) and i want it so that you have to buy your playermodels and have a default. i have went into the shared.lua of fretta and disabled the ability to select your own player model and then i went into deathrun and then teams and runner and added a default model (kleiner) and now i added models to point mod but when you buy them nothing happens you saty kileiner. how do i fix this or do this

thanks

When bought, use ply:SetModel on the player.

yeah i tried that D:

Paste the code.

into where this is what i used for points mod

PointMod.Items[15] = { “Zombie”, “Spawn as a zombie xD”, “models/player/zombie.mdl”, “zombie”, 300, “PlayerSpawn”, function( ply )
if ply:Team() == 1 then
timer.Simple(0.2, function()
GAMEMODE:PlayerSetModel( ply )
ply:SetModel( “models/player/zombie.mdl” )
end)
ply:ChatPrint(“You are a zombie go eat some brains MMMMMMMMMMMMMMMMMMMMMMMM BRAINS :)”)
end



PointMod.Items[15] = { "Zombie", "Spawn as a zombie xD", "models/player/zombie.mdl", "zombie", 300, "PlayerSpawn", function( ply )
if ply:Team() == 1 then
ply:SetModel( "models/player/classic.mdl" )
end)
ply:ChatPrint("You are a zombie go eat some brains MMMMMMMMMMMMMMMMMMMMMMMM BRAINS :)")
end


zombie.mdl isn’t a model. maybe you meant classic.mdl

thanks ill try that but all the outher ones inc alyx withc i know isa model still wont work nothing changes when i buy it :S