Search the Community
Showing results for tags 'teamspawn'.
Hi buddies , We tried to set team spawn but we can't make it. We writed some codes. Where did we do wrong ? If you help me, I feel be happy. Thanks for reading... local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) --if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = get