Hey guys, I want everyone in the server to start with the kleiner playermodel, how would I do this?
[lua]ply:SetModel("models/player/kliener.mdl")[/lua] in the spawn team
Make sure to use the [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSetModel]Gamemode.PlayerSetModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] hook.
Oh, another small question, how do I make everyone Kleiner (I succeeded at that), but not 1 team? I'm modifying a deathrun server, and I want the deaths to stay deathmodel.
[QUOTE=thejjokerr;24269629]Now that you say that, I tried to use that a few times, but it doesn't seem to work. In fact, the [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSelectSpawn]Gamemode.PlayerSelectSpawn [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] doesn't seem to work for me either.[/QUOTE]
It did work, I got all players starting with Kleiner model with that function.
[QUOTE=Staneh;24269458]Oh, another small question, how do I make everyone Kleiner (I succeeded at that), but not 1 team? I'm modifying a deathrun server, and I want the deaths to stay deathmodel.[/QUOTE]
[lua]for _, ply in pairs( team.GetPlayers(2) ) do
ply:SetModel( "models/player/kleiner.mdl" )
end[/lua]
Sorry, you need to Log In to post a reply to this thread.