Cocodrilo Posted May 6, 2013 Posted May 6, 2013 When i start the script works fine but in 1 hour after aprox happen this.. Simple Spawn.. addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function team ( ) theTeam = createTeam ( "Jugadores", 143,143,16 ) -- create a new team with the specified name end addEventHandler ( "onResourceStart", resourceRoot, team ) function spawn(player) repeat until spawnPlayer ( player, -320.90335, 1799.0190, 42.78125, 0, 23 ) giveWeapon ( player, 25 , 35, true ) fadeCamera(player, true) setCameraTarget(player, player) setPlayerTeam (player, theTeam) end addEventHandler("onPlayerLogin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 4000, 1, source) end ) why?
Cocodrilo Posted May 7, 2013 Author Posted May 7, 2013 at line 16 remove the repeat until thank you!! :') fixed
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