Kasem Posted February 13, 2014 Share Posted February 13, 2014 So I want to create a very simple script, but it's not working. When a player dies, I want them to spawn at the location I provided. how can i do this Link to comment
Karuzo Posted February 13, 2014 Share Posted February 13, 2014 function Death() setTimer(spawnPlayer, 2000,1,source,1187,-1314,13, -90, math.random(1,50), 0, 0,nil) end addEventHandler("onPlayerWasted", getRootElement(), Death) source is the source of the function, 1187 is X-Coordinate, -1314 is Y-Coordinate, 13 is Z-Coordinate, -90 is the rotation, math.random(1,50) is the Skin, so it chooses a random skin between 1 and 50, 0, is the interior, 0, is the dimension, nil is the team. setTimer(spawnPlayer, 2000,1) means it spawns the player after 2 Seconds after he died. Hope you could understand me Link to comment
Kasem Posted February 13, 2014 Author Share Posted February 13, 2014 yeh thx i will try it 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