Alexandru George Posted February 9, 2019 Share Posted February 9, 2019 Hey, I changed my place of spawn in another city, all good when you create a new account, except, when you die, it gives you everything in the old spawn place and I forgot where I was supposed to change this thing, to get spawn in the new place, to the coordinates that are here : Coordinates place spawn when you register. < IMG Link to comment
Dimos7 Posted February 9, 2019 Share Posted February 9, 2019 You want change position when you die? Link to comment
Furzy Posted February 9, 2019 Share Posted February 9, 2019 (edited) server-side function onWasted() if not( isGuestAccount (getPlayerAccount(source)) ) then fadeCamera (source, false) setTimer (spawnPlayer, 1000, 1, source, POSX,POSY, POZ, 0, getPedSkin (source), 0, 0) setTimer (fadeCamera, 2000, 1, source, true) end end addEventHandler ("onPlayerWasted", getRootElement(), onWasted) Edited February 9, 2019 by Furzy 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