Jump to content

Weird login problem


12p

Recommended Posts

Strange, for me works when I login, the login screen gets off. But for other doesn't work.

Server side:

addEventHandler ("onPlayerLogin",getRootElement(), 
function () 
    triggerClientEvent (source,"onClientPlayerLogin",source) 
    outputChatBox ("Press 'L' to toggle your torch",source,255,255,0) 
    spawn(source) 
    if getPlayerMoney(source) < 250 then 
        setPlayerMoney (source,250) 
    end 
    outputChatBox (getPlayerName(source).." #777777has joined the survival!",getRootElement(),255,255,255,true) 
end) 

Client:

addEvent ("onClientPlayerLogin",true) 
addEventHandler ("onClientPlayerLogin",getRootElement(), 
function () 
    destroyElement (background) 
    showCursor (false) 
    guiSetInputEnabled(false) 
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...