Jump to content

Spawn Point help !


MOOMO

Recommended Posts

Ya, Solid was trying to help,

Sorry, but if you expect us to waste our time and make something that is the least important to us, then your wrong,

everyone has something better to do and sorry if I'm being rude but, learn LUA, or stay a client to MTA.

Link to comment

i find this 1 :

but i dont know if its works or no

hmm the release said all who dead will respawn outside of argent but i want police spawn outside police officer .

please edit it :>:

addEventHandler("onResourceStart", resourceRoot, 
    function() 
        for i,player in ipairs(getElementsByType("SBAB")) do 
            spawn(player) 
        end 
    end 
) 
  
function spawn(player) 
    repeat until spawnPlayer ( player, 2166.5715332031+math.random(1,5), 1685.8394775391+math.random(5,9), 10.8203125, 90, math.random(9,288) ) 
    fadeCamera(player, true) 
    setCameraTarget(player, player) 
end 
  
addEventHandler("onPlayerJoin", root, 
    function() 
        spawn(source) 
    end 
) 
  
addEventHandler("onPlayerWasted", root, 
    function() 
        setTimer(spawn, 4000, 1, source) 
    end 
) 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
addEventHandler("onResourceStart", resourceRoot, 
    function() 
        for i,player in ipairs(getElementsByType("MORTAZKA")) do 
            spawn(player) 
        end 
    end 
) 
  
function spawn(player) 
    repeat until spawnPlayer ( player, 2166.5715332031+math.random(1,5), 1685.8394775391+math.random(5,9), 10.8203125, 90, math.random(9,288) ) 
    fadeCamera(player, true) 
    setCameraTarget(player, player) 
end 
  
addEventHandler("onPlayerJoin", root, 
    function() 
        spawn(source) 
    end 
) 
  
addEventHandler("onPlayerWasted", root, 
    function() 
        setTimer(spawn, 4000, 1, source) 
    end 
) 

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