Rat32 Posted March 14, 2015 Share Posted March 14, 2015 Hello. This is my script: function spawnOnLogin() setTimer(function() spawnPlayer (source, 2034.17883, -1403.27026, 17.28900) end, 4000, 1) end addEventHandler("onPlayerWasted", getRootElement(), spawnOnLogin) What this doesn't work? DEBUGSCRIPT: bad argument @ spawnPlayer, argument 1 - got nil. Link to comment
TAPL Posted March 14, 2015 Share Posted March 14, 2015 function spawnOnLogin() setTimer(function(source) spawnPlayer (source, 2034.17883, -1403.27026, 17.28900) end, 4000, 1, source) end addEventHandler("onPlayerWasted", getRootElement(), spawnOnLogin) 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