12p Posted December 27, 2010 Share Posted December 27, 2010 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
J.S. Posted December 27, 2010 Share Posted December 27, 2010 It might help to put the triggerClientEvent function at the end, but I'm not sure if that'll even do anything different. This is just my thought. Link to comment
Kenix Posted December 27, 2010 Share Posted December 27, 2010 Try this client addEvent ("onClientPlayerLogin",true) addEventHandler ("onClientPlayerLogin",getLocalPlayer(), function () destroyElement (background) showCursor (false) guiSetInputEnabled(false) end) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now