Faritampi Posted June 1, 2015 Share Posted June 1, 2015 guys, when players died, I already made hospital script so they will spawned at hospital, but the skin is changed, idk why, please help me Link to comment
-Doc- Posted June 1, 2015 Share Posted June 1, 2015 Give me full script and which gamemode are u using? Link to comment
tosfera Posted June 1, 2015 Share Posted June 1, 2015 The function spawnPlayer has an option to spawn with a skin. You can either use that or you can use setElementModel to the player's skin. If your script is not respawning the player right away, you might want to save the data into a table or as elementData. All you have to do is use setElementData to save the data and use getElementData to retrieve the old skin. Link to comment
3B00DG4MER Posted June 1, 2015 Share Posted June 1, 2015 Maybe, a resource is already running such as : freeroam or something or maybe check ur script if has something like setElementModel Func or spawnPlayer func has got an fail argument Link to comment
Johnny Killstone Posted June 1, 2015 Share Posted June 1, 2015 The function spawnPlayer has an option to spawn with a skin. You can either use that or you can use setElementModel to the player's skin.If your script is not respawning the player right away, you might want to save the data into a table or as elementData. All you have to do is use setElementData to save the data and use getElementData to retrieve the old skin. Should be mentioned however if you use setElementModel, it's important to call it from the "onPlayerSpawn" event, I've seen to many people calling it in all kinds of ways, some of them before the player actually spawns which then resets the skin. Note that this topic is a double post original topic. 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