Jump to content

Problem reSpawn!


SiZ3k

Recommended Posts

i have problem with my script this script is easy copied from this site. i dont know why but when i die my skin is changed to 0

where is problem i want the same skine when die!

local root = getRootElement()
 
addEventHandler("onPlayerWasted", root,
function ()
setTimer (spawnPlayer, 5000, 1, source, -317.66, 1061.31, 21.74) 
end
)

Link to comment
i have problem with my script this script is easy copied from this site. i dont know why but when i die my skin is changed to 0

where is problem i want the same skine when die!

local root = getRootElement()
 
addEventHandler("onPlayerWasted", root,
function ()
setTimer (spawnPlayer, 5000, 1, source, -317.66, 1061.31, 21.74) 
end
)

lol its not hard watch and learn :)

local root = getRootElement()
 
addEventHandler("onPlayerWasted", root,
function ()
skin = getElementModel (source) -- gets the skin of the player
setTimer (spawnPlayer, 5000, 1, source, -317.66, 1061.31, 21.74, 0, skin) -- spawns the player in 5 seconds, at -317.66, 1061.31, 21.74 with a rotation from 0 (it has to be filled else it wont work  0 is working fine  ) with the skin they had.
end
)

enjoy it ;)

Link to comment
Thanx!!! i,am new there! i making RP server everyone and every help is needed. Thank you! i will see it!

tip, i have learned lua, from reading scripts, and rewriting them,

in a other way,

or just read it 5 times, and then try to make it yourself, without the other 1;)

keep trying, dont give up, and you will become a master of lua :)

Link to comment

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...