SiZ3k Posted July 25, 2010 Share Posted July 25, 2010 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
50p Posted July 25, 2010 Share Posted July 25, 2010 Because spawnPlayer has default values and skinID is 0 (CJ). You can easily fix it by using player's current skin (getElementModel). Link to comment
m4rsje Posted July 25, 2010 Share Posted July 25, 2010 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 0where 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
SiZ3k Posted July 25, 2010 Author Share Posted July 25, 2010 Thanx!!! i,am new there! i making RP server everyone and every help is needed. Thank you! i will see it! Link to comment
m4rsje Posted July 25, 2010 Share Posted July 25, 2010 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
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