toptional Posted April 9, 2013 Share Posted April 9, 2013 Hi guys, Is there an event client or server that triggers something the first time someone joins the server? I was thinking onPlayerRegister but i don't think it exists? Is there something i could use ? Link to comment
PaiN^ Posted April 9, 2013 Share Posted April 9, 2013 You can use setElementData or getPlayerSerial with onPlayerJoin .. Link to comment
iPrestege Posted April 9, 2013 Share Posted April 9, 2013 Can you tell me what are you trying to do? Link to comment
Max+ Posted April 9, 2013 Share Posted April 9, 2013 onPlayerJoin or - onPlayerLogin , Link to comment
xXMADEXx Posted April 9, 2013 Share Posted April 9, 2013 Here are some good events: - Server side: onPlayerLogin onPlayerJoin - Client onClientResourceStart Link to comment
TAPL Posted April 10, 2013 Share Posted April 10, 2013 Hi guys,Is there an event client or server that triggers something the first time someone joins the server? I was thinking onPlayerRegister but i don't think it exists? Is there something i could use ? -- Server Side !!! addEventHandler("onPlayerLogin", root, function(_, account) if not getAccountData(account, "FirstTime") then outputChatBox("You're playing for the first time!", source, 0, 255, 0) setAccountData(account, "FirstTime", true) else outputChatBox("This is not the first time for you!", source, 255, 0, 0) end end) 1 Link to comment
toptional Posted April 10, 2013 Author Share Posted April 10, 2013 Thanks TAPL! (This is my 500th post! Party ) 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