Jump to content

Another Spawnpoint on my Server?


Recommended Posts

ok sorry 50p... but i try it.

This is my broph script by my play resource.

addEventHandler("onResourceStart", resourceRoot,
function()
for i,player in ipairs(getElementsByType("player")) do
		spawn(player)
end
end
)
 
function spawn(player)
repeat until spawnPlayer ( player, -711+math.random(1,5), 957+math.random(5,9), 12.4, 90, math.random(9,288) )
fadeCamera(player, true)
setCameraTarget(player, player)
end
 
addEventHandler("onPlayerJoin", root,
function()
	spawn(source)
end
)
 
addEventHandler("onPlayerWasted", root,
function()
setTimer(spawn, 1800, 1, source)
end
)

And now, i dont know to change the spawn? please tell me

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...