Jump to content

About spawn point


Recommended Posts

guys please i have a question i want to add something in my script which is when a player die in LS he will spawn in LS hospital and if he die in LV ---------- Spawn LV hospital , SF ----------- spawn SF hospital etc ....

Link to comment
function() 
  local x,y,z = getElementPosition (source) 
  local sf = getDistanceBetweenPoints3D (x,y,z,-2655.1,639.46,14.454) 
  local lv = getDistanceBetweenPoints3D (x,y,z,1607.2,1816.2,10.8) 
  local ls = getDistanceBetweenPoints3D (x,y,z,2035.99,-1403.7,17.2) 
  addEventHandler ("onPlayerWasted",getRootElement(), 

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