Bean666 Posted December 31, 2014 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 Aftermath
Castillo Posted December 31, 2014 Posted December 31, 2014 Use a timer. setTimer San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Bean666 Posted December 31, 2014 Author Posted December 31, 2014 should i put it on the function or in the after the end? Aftermath
Castillo Posted December 31, 2014 Posted December 31, 2014 Use it in conjunction with spawnPlayer. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Bean666 Posted December 31, 2014 Author Posted December 31, 2014 can u give me an example please , im having a problem. it still doesnt work. sorry for the disturbance. Aftermath
Castillo Posted December 31, 2014 Posted December 31, 2014 setTimer ( spawnPlayer, 5000, 1, arguments of spawn player goes here ) That will spawn the player after 5 seconds. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Bean666 Posted December 31, 2014 Author Posted December 31, 2014 alright it worked now thank you. Aftermath
Castillo Posted December 31, 2014 Posted December 31, 2014 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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