toptional Posted April 9, 2013 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 ?
PaiN^ Posted April 9, 2013 Posted April 9, 2013 You can use setElementData or getPlayerSerial with onPlayerJoin ..
xXMADEXx Posted April 9, 2013 Posted April 9, 2013 Here are some good events: - Server side: onPlayerLogin onPlayerJoin - Client onClientResourceStart
TAPL Posted April 10, 2013 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
toptional Posted April 10, 2013 Author Posted April 10, 2013 Thanks TAPL! (This is my 500th post! Party )
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