LiOneLMeSsIShoT Posted November 22, 2013 Share 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 .. Link to comment
TAPL Posted November 23, 2013 Share Posted November 23, 2013 https://forum.multitheftauto.com/viewtopic.php?f=91&t=56958 Link to comment
LiOneLMeSsIShoT Posted November 23, 2013 Author Share 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 Link to comment
LiOneLMeSsIShoT Posted November 23, 2013 Author Share 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. Link to comment
TAPL Posted November 23, 2013 Share 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. Link to comment
LiOneLMeSsIShoT Posted November 23, 2013 Author Share 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 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