local spawns = {
{ 238.6613311767,141.05133056641,1003.0234375 };
{ 190.87297058105,158.49531555176,1003.0234375 };
{ 298.23620605496,172.01306152344,1007.171875 };
};
addEvent('onClientWatnsToSpawn', true)
addEventHandler('onClientWatnsToSpawn', root,
function (skin)
if not isElement(source) then return end
local x, y, z = unpack(spawns[math.random(#spawns)])
setTimer ( spawnPlayer,3000,1,source, x, y, z,0,skin,3);
setTimer ( fadeCamera, 3000, 1, source, true, 0.5 );
setTimer ( setCameraTarget, 3000, 1, source, source );
showCursor ( source, false );
end
);
addEventHandler ( 'onPlayerWasted', root,
function ()
local id = getElementModel (source)
fadeCamera ( source, false, 1.0, 0, 0, 0 );
setTimer ( fadeCamera, 3500, 1, source, true, 0.5 );
local x, y, z = unpack(spawns[math.random(#spawns)]);
setTimer ( spawnPlayer,3000,1,source, x, y, z,0,id,3);
end
);