LiOneLMeSsIShoT Posted November 22, 2013 Posted November 22, 2013 how to check if the player just registerd for now? or means checks for his first join Reason: To give him money only on his first join... please help..i didn't find the function to do that ..
TAPL Posted November 23, 2013 Posted November 23, 2013 https://forum.multitheftauto.com/viewtopic.php?f=91&t=56958
LiOneLMeSsIShoT Posted November 23, 2013 Author Posted November 23, 2013 https://forum.multitheftauto.com/viewtopic.php?f=91&t=56958 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) Yeah but i don't want to set him as first join if it's not his first join.... i want to check only if it's his first join..no need to set him
LiOneLMeSsIShoT Posted November 23, 2013 Author Posted November 23, 2013 I don't understand. I'm only want to check if player's registering...because i want to give 250 money to every player register with new account.
TAPL Posted November 23, 2013 Posted November 23, 2013 You should have used this for registering new account: addAccount Below it add your code to give the money, and done.
LiOneLMeSsIShoT Posted November 23, 2013 Author Posted November 23, 2013 You should have used this for registering new account: addAccount Below it add your code to give the money, and done. ah.. Thanks! Fixed
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