Jump to content

Respawn


TheIceman1

Recommended Posts

Posted

Why this dont respawn me to this position?

function allsaints ( thePlayer ) 
if (  isElementWithinColShape ( thePlayer, allsaintsC ) ) then 
 setTimer(setElementPosition, 10000, 1, thePlayer, 1178.51, -1324.44, 14.13 ) 
end 
end 
addEventHandler ( "onPlayerWasted", root, allsaints ) 

Posted

Why this show me "matrix camera" when im killed only to 1 second,and when i respawn then this show me "fadeCamera"?

function allsaints () 
if (  isElementWithinColShape ( source, allsaintsC ) ) then 
    fadeCamera( source, true ) 
    setCameraMatrix( source, 1468.8785400391, -919.25317382813, 100.153465271, 1527.7, -1685.8, 99.881813049316 ) 
    setTimer(setElementPosition, 10000, 1, source, 1178.51, -1324.44, 14.13 ) 
    setTimer ( fadeCamera, 10000, 1, source, false ) 
end 
end 
addEventHandler ( "onPlayerWasted", root, allsaints ) 

Posted
function allsaints ( ) 
    if ( isElementWithinColShape ( source, allsaintsC ) ) then 
        fadeCamera( source, true ) 
        setCameraMatrix ( source, 1468.8785400391, -919.25317382813, 100.153465271, 1527.7, -1685.8, 99.881813049316 ) 
        setTimer ( 
            function ( thePlayer ) 
                setElementPosition ( thePlayer, 1178.51, -1324.44, 14.13 ) 
                setCameraTarget ( thePlayer ) 
                fadeCamera ( thePlayer, true ) 
            end 
            ,10000, 1, source 
        ) 
    end 
end 
addEventHandler ( "onPlayerWasted", root, allsaints ) 

Posted (edited)

I didnt use "fadeCamera" anywhere,only in "login panel".The problem occurs when I die then shows me "matrixCamera" on 1 sekundu, then spawn me at Jefferson Hospital, and after 10 seconds it spawn me at allsaints hospital.

Edited by Guest
Posted

Turn off the resource, And then kill yourself

If you got spawned in the Jefferson Hospital, Then it's another resource ..

If not, Then i don't know what it's ..!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...