Bierbuikje Posted May 10, 2011 Share Posted May 10, 2011 Is it possible to check if a player is logged in on his account? And if it is, how? Thanks! Link to comment
proracer Posted May 10, 2011 Share Posted May 10, 2011 https://wiki.multitheftauto.com/wiki/IsGuestAccount Link to comment
Klesh Posted May 10, 2011 Share Posted May 10, 2011 The way you can check if the player is loged or not, with the admin panel : Open your Admin panel, click on the player you need to know if is loged or not, see in account name and there say if is loged or not, if the player is loged says : Account Name: MTA FAN Check out . Link to comment
Bierbuikje Posted May 10, 2011 Author Share Posted May 10, 2011 Thanks both! And imagine the following situation. At day 1 someone enters the server with the name Sam. He registers and leaves. At day 2 another person enters the server, also with the same name Sam and he registers too. How to prevent that the account of Day 1 Sam will be overwritten? I wan't to tell Day 2 Sam that his name is already registered and it would be nice to rename himself. Link to comment
Klesh Posted May 10, 2011 Share Posted May 10, 2011 The solution about that is making a register login panel, with this the 2 second sam can register with the account name sam2 and ingame nick is Sam but the cant play in the same time becuase the nick is alredy choseen. I will give you this link, is the solution for your problem: https://community.multitheftauto.com/index.php?p=resources&s=details&id=617 Link to comment
Castillo Posted May 10, 2011 Share Posted May 10, 2011 Thanks both!And imagine the following situation. At day 1 someone enters the server with the name Sam. He registers and leaves. At day 2 another person enters the server, also with the same name Sam and he registers too. How to prevent that the account of Day 1 Sam will be overwritten? I wan't to tell Day 2 Sam that his name is already registered and it would be nice to rename himself. The script will auto detect if the account already exists, i guess you are using the normal /register command, well then you can do /register If the username is "Sam" and there's already one account named "Sam", it will output an error saying it already exist. 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