addEventHandler("onResourceStart", resourceRoot,
function()
resetMapInfo()
for i,player in ipairs(getElementsByType("player")) do
spawn(player)
end
end
)
Skin = { id, id, id }
function spawn(player)
if not isElement(player) then return end
local id = unpack(Skin[math.random(#Skin)])
repeat until spawnPlayer ( player, 217.10000610352+math.random(1,5), 1860+math.random(5,9), 13.10000038147, 286, tonumber(id), 286, 286)
fadeCamera(player, true)
setCameraTarget(player, player)
showChat(player, true)
end
addEventHandler("onPlayerJoin", root,
function()
spawn(source)
end
)
addEventHandler("onPlayerWasted", root,
function()
setTimer(spawn, 1800, 1, source)
end
)