Jump to content

Leave Server


Recommended Posts

Estou com um problema, ignorem o setElementVisible

Configurei para quando sair do servidor o veículo vai ser destroído, so que quando saí o veículo ainda fica la, me ajudem.

function leaveserver12(player)
    if vehsedex[player] and isElement(vehsedex[player]) then
        destroyElement(vehsedex[player]) 
        guardou = false
        setElementVisibleTo(marca1, player, false)
        setElementVisibleTo(marca1b, player, false)
        setElementVisibleTo(marca2, player, false)
        setElementVisibleTo(marca2b, player, false)
        setElementVisibleTo(marca3, player, false)
        setElementVisibleTo(marca3b, player, false)
        setElementVisibleTo(marca4, player, false)
        setElementVisibleTo(marca4b, player, false)
        setElementVisibleTo(marca5, player, false)
        setElementVisibleTo(marca5b, player, false)
        setElementVisibleTo(carregarsedex, player, false)
        mm1 = false
        mm2 = false
        mm3 = false
        mm4 = false
        mm5 = false
        carregar = false
        painelsedex = false
        end
        end
addEventHandler("onPlayerQuit", root, leaveserver12)

 

Podem ignorar os mm, o foco mesmo é o vehsedex

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