abdalbaset Posted September 13, 2013 Posted September 13, 2013 guys whene i respawen in hosptel i be in world i cant see anythink what the worong in my script addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) repeat until spawnPlayer ( player, 1186.4000244141, -1325.0999755859, 13.199999809265, 90, math.random(19,25) ) fadeCamera(player, true) setCameraTarget(player, player) setPlayerTeam (player, nil) end function spawnWasted(player) repeat until spawnPlayer ( player, -2655.02, 625.30, 14.45, 0, math.random(19,25)) repeat until spawnPlayer ( player, 1178, -1323.6999511719, 13.699999809265, 0, math.random(19,25) , 625.30, 14.45, 0, math.random(19,25)) fadeCamera(player, true) setCameraTarget(player, player) setPlayerTeam (player, nil) takePlayerMoney ( player, 150 ) end addEventHandler("onPlayerLogin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawnWasted, 1800, 1, source) end )
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