• Player checker for round system!
    3 replies, posted
So im working on a round system and i don't want players to spawn untill they are fully in the game and when its on round.Wait() or round.Pre() and that is easily to do and all but im not sure how to do a checker for when players are in game and are fully loaded in (like how ttt works)
Look into using PlayerDeathThink to prevent spawning, or just toss them in spectator mode if the round isn't active when they spawn.
hmm that wouldnt work for a new round tho unless i killed them all at the end of the round
TTT player spawn works kinda like function Prep() for _, ply in pairs(player.GetAll()) do if ply:GetInfoNum("spec_convar", 0) == 0 then ply:SpawnForRound() end end end function BeginRound() for _, ply in pairs(player.GetAll()) do if ply:IsSpec() and ply:GetInfoNum("spec_convar", 0) == 0 then ply:SpawnForRound() end end end
Sorry, you need to Log In to post a reply to this thread.