Jump to content

A LIttle Problem


Bilal135

Recommended Posts

Posted

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) 

Posted
Simply do /stop play

I think he wants others to spawn at default locations too... Disabling 'play' or whatever resource he's using for spawning would make standard players stuck after getting wasted, wouldn't it?

Posted

As i know , he is creating his own spawn system and he have a problem which is caused by the play resource. So i've wrote to stop the play resource, what would fix the problem.

Posted

MrTasty is right, I want others to spawn on default spawn locations, but not for teams. Tried onPlayerSpawn instead of onPlayerWasted, and it works. Thanks.

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