Bean666 Posted December 31, 2014 Share Posted December 31, 2014 (edited) hi , i have a problem , i need a solution to set the respawn delay , because when a player dies , it respawns so fast. and i want to put a delay like 3 seconds to respawn . any solution for this? Code: function spawnOnWasted (prevA, curA, autoRespawn) outputChatBox ("You Have Died!You Have Lost Your Weapons!Go To The WeaponShop To Buy Weapons!", source, 255, 0, 0, false) spawnPlayer (source, 214.39999389648, 1869.1999511719, 13.10000038147, 0, 287, 0, 0, spawnTeam) fadeCamera (source, true) setCameraTarget (source, source) end addEventHandler("onPlayerWasted", getRootElement(), spawnOnWasted) Edited December 31, 2014 by Guest Link to comment
Castillo Posted December 31, 2014 Share Posted December 31, 2014 Use a timer. setTimer Link to comment
Bean666 Posted December 31, 2014 Author Share Posted December 31, 2014 should i put it on the function or in the after the end? Link to comment
Castillo Posted December 31, 2014 Share Posted December 31, 2014 Use it in conjunction with spawnPlayer. Link to comment
Bean666 Posted December 31, 2014 Author Share Posted December 31, 2014 can u give me an example please , im having a problem. it still doesnt work. sorry for the disturbance. Link to comment
Castillo Posted December 31, 2014 Share Posted December 31, 2014 setTimer ( spawnPlayer, 5000, 1, arguments of spawn player goes here ) That will spawn the player after 5 seconds. Link to comment
Bean666 Posted December 31, 2014 Author Share Posted December 31, 2014 alright it worked now thank you. 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