Electro88 Posted April 12, 2016 Share Posted April 12, 2016 Hello everyone i don't understand problem i direct spawn not wait death screen Why ? i how fix it problem please help me this code normal function wasted () local x, y, z = -1284.8974609375, 452.08203125, 7.1875 local lvl = getElementData(source,"Level") if (lvl >= 0) then spawnPlayer (source, x, y, z ) fadeCamera( source, true) setCameraTarget( source, source) end addEventHandler ( "onPlayerWasted", getRootElement(), wasted ) Link to comment
Ahmed Ly Posted April 12, 2016 Share Posted April 12, 2016 addEventHandler ( "onPlayerWasted", root, function wasted () local x, = -1284.8974609375 local y = 452.08203125 local z = 7.1875 spawnPlayer (source, x, y, z ) fadeCamera( source, true) setCameraTarget( source, source) setTimer(off,3000,1) end ) function off () fadeCamera( source, false) end Link to comment
Ahmed Ly Posted April 12, 2016 Share Posted April 12, 2016 addEventHandler ( "onPlayerWasted", root, function () local x= -1284.8974609375 local y = 452.08203125 local z = 7.1875 spawnPlayer (source, x, y, z ) setPlayerSkin(source,46) setCameraTarget( source, source) end ) Link to comment
Electro88 Posted April 12, 2016 Author Share Posted April 12, 2016 again not work why ? Link to comment
undefined Posted April 12, 2016 Share Posted April 12, 2016 Try it function wasted (player) if not isElement(player) then return end local x, y, z = -1284.8974609375, 452.08203125, 7.1875 local lvl = getElementData(player,"Level") if (lvl >= 0) then spawnPlayer (player, x, y, z ) fadeCamera( player, true) setCameraTarget( player, player) end end addEventHandler ( "onPlayerWasted", root, function() setTimer(wasted, 3000, 1, source) end) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now