Jump to content



Recommended Posts

oh guys, anyone know spawnpanel from RPG servers? I have good save system now it's save position and weapons but when I reconnect spawn panel show up anyway, there's "lua code" help me please

setElementData( player, "Class", class ) 
    if team ~= nil then 
        spawnPlayer( player, x, y, z, 0, skin, 0, 0, getTeamFromName( team ) ) 
        spawnPlayer( player, x, y, z, 0, skin, 0, 0 ) 
    setCameraTarget( player, player ) 
    for i, v in pairs( weapon ) do 
        giveWeapon( player, i, v ) 
    triggerClientEvent( player, "systemspawn:toggle", player ) 
addEvent( "systemspawn:spawnPlayer", true ) 
addEventHandler( "systemspawn:spawnPlayer", root, spawnPlayerSystem ) 
function trigger( player ) 
    triggerClientEvent( player, "systemspawn:toggle", player ) 
addEventHandler( "onPlayerLogin", root, function( ) trigger( source ) end ) 
addEventHandler( "onPlayerWasted", root, function( ) setTimer( trigger, 2500, 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...