SkatCh Posted May 5, 2014 Share Posted May 5, 2014 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
Toffbrown Posted May 6, 2014 Share Posted May 6, 2014 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
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