Jump to content

reaspawn after death


Kasem

Recommended Posts

  
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

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...