Jump to content

A LIttle Problem


Bilal135

Recommended Posts

Hey, I was scripting a spawner for my clan in my server, got a problem. When player dies, he spawns on the base and then suddenly spawns on grove street or default mta spawners. How can I fix it?

function spawnOnDead() 
        local team = getPlayerTeam(source) 
        local sk = getTeamFromName("Street Killers") 
        if team == sk then 
    spawnPlayer(source, joinX, joinY, joinZ) 
end 
end 
addEventHandler("onPlayerWasted", getRootElement(), spawnOnDead) 

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