• Deathrun Trouble
    2 replies, posted
Someone please help me and explain whats going on its been doing this since last week and i wanted to know whats wrong its a deathrun gamemode.So if anyone have an idea please contact me or leave a comment. I also dont get any errors in console. Please HELP![IMG]http://i.imgur.com/qViWCY6.jpg[/IMG]
Looks like you're calling Player:Kill() over and over again. Post your GM:PlayerDeath, GM:PlayerDeathThink, and GM:PlayerSpawn functions.
GM:PlayerSpawn [CODE]function GM:PlayerSpawn( ply ) ply._HasPressedKey = false if ply:Team() == TEAM_SPECTATOR then ply:Spectate(OBS_MODE_ROAMING) return end self.BaseClass:PlayerSpawn( ply ) ply:SetHealth(ply:GetMaxHealth()) ply:StripWeapons() ply:StripAmmo() ply:SetWalkSpeed(260) ply:SetRunSpeed(300) ply:AllowFlashlight(true) ply:SetArmor(0) ply:SetJumpPower(190) local col = team.GetColor( ply:Team() ) ply:SetPlayerColor( Vector( col.r/255, col.g/255, col.b/255 ) ) local spawns = ents.FindByClass( ply:Team() == TEAM_RUNNER and "info_player_counterterrorist" or "info_player_terrorist" ) if #spawns > 0 then local pos = table.Random( spawns ):GetPos() ply:SetPos( pos ) timer.Simple( 1, function() if (IsValid(ply) and ply:Alive() and pos) then ply:SetPos( pos ) end end ) end ply:SetNoCollideWithTeammates( true ) ply:SetAvoidPlayers( push:GetInt() == 1 and true or false ) local mdl = hook.Call( "ChangePlayerModel", GAMEMODE, ply ) or false ply:SetModel( mdl or table.Random( rModels ) ) end[/CODE] If you know where the rest is then please direct me
Sorry, you need to Log In to post a reply to this thread.