oh, sorry my bad try this :
-- Spawn manager ,
local spawns = {
{ 238.6613311767, 141.05133056641, 1003.0234375 };
{ 190.87297058105, 158.49531555176, 1003.0234375 };
{ 298.23620605496, 172.01306152344, 1007.171875 }
}
-- Spawn manager ,
function spawn ( player )
if not isElement(player) then return end
x,y,z = unpack(spawns[math.random(#spawns)])
setTimer ( spawnPlayer,3000,1,player, x, y, z,0,0,3,0 );
setTimer ( fadeCamera, 3000, 1, player, true, 0.5 )
setTimer ( setCameraTarget, 3000, 1, player, player )
showCursor ( player, false )
end
addEventHandler ( 'onPlayerWasted', root,
function ( )
fadeCamera ( source, false, 1.0, 0, 0, 0 );
setTimer ( fadeCamera, 3500, 1, source, true, 0.5 );
x,y,z = unpack(spawns[math.random(#spawns)])
setTimer ( spawnPlayer,3000,1,source, x, y, z,0,0,3,0 );
end
)