Jump to content

I need help!


Recommended Posts

I really don't know how but you can do this:

hospitals = { 
    [1] = 113,43294, 134,23849, 124.532, 
    [2] = 123.324523, 3256.136373, 246.234265 
    } 
     
function autoRespawn ( ) 
    if isPlayerDead(source) then 
    spawnPlayer(source, math.random([1],[2])) 
    end 
end 
addEventHandler( "onPlayerWasted", getRootElement(), autoRespawn) 

This code will spawn the player when he wasted to random hospitals, the position is random

Change them to the hospital's position, and if you want to add one or tow more hospitals, tell me i'll show you how.

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