hisherwin Posted January 1, 2013 Author Share Posted January 1, 2013 Seriously Robin is Lazy to add this :DD but it does work ..Credits to RobinFind this```If IsMultiAccounts(Name) Then Call AlertMsg(index, "Multiple account logins is not authorized.") Exit Sub End If```Add this below```If IsMultiIPOnline(Trim$(GetPlayerIP(index))) Then Call AlertMsg(index, "You are already logged in.") Exit Sub End If```Find This```' Prevent hacking If Len(Trim$(Name)) > ACCOUNT_LENGTH Or Len(Trim$(Password)) > NAME_LENGTH Then Call AlertMsg(index, "Your account name must be between 3 and 12 characters long. Your password must be between 3 and 20 characters long.") Exit Sub End If```Add This below```If IsMultiIPOnline(Trim$(GetPlayerIP(index))) Then Call AlertMsg(index, "You are already logged in.") Exit Sub End If```Thanks~Sherwin Link to comment Share on other sites More sharing options...
Notsu Posted January 1, 2013 Share Posted January 1, 2013 I'm thinking about it. =DThanks.I think Robin don't added those feature because after implementing that u'll can't test Your game by yourself(one IP) Link to comment Share on other sites More sharing options...
hisherwin Posted January 1, 2013 Author Share Posted January 1, 2013 Well the problem is , When there are 2 computers using 1 IP , only 1 can play at your game Link to comment Share on other sites More sharing options...
Wortel Angels Posted January 1, 2013 Share Posted January 1, 2013 OR make an list where you can add the IP's which are allowed ;-)Then write on the forum of your game that they need to tell it you if 2 computers want to connect then add theyr IP to the list ;-) Link to comment Share on other sites More sharing options...
hisherwin Posted January 1, 2013 Author Share Posted January 1, 2013 Right , Well i'm too lazy to make it ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png) Link to comment Share on other sites More sharing options...
Growlith1223 Posted January 1, 2013 Share Posted January 1, 2013 This is going to cause others in the same household unable to play…instead of using the IP, use the character name. That will make it so in case your character is already on, it will say that...not through the IP :/ Link to comment Share on other sites More sharing options...
hisherwin Posted January 1, 2013 Author Share Posted January 1, 2013 > This is going to cause others in the same household unable to play…instead of using the IP, use the character name. That will make it so in case your character is already on, it will say that...not through the IP :/Robin made the function , I made the activation Link to comment Share on other sites More sharing options...
Growlith1223 Posted January 1, 2013 Share Posted January 1, 2013 > Robin made the function , I made the activationYou're telling me this…why...? That function should have never been added, it should have used the character name... Link to comment Share on other sites More sharing options...
hisherwin Posted January 1, 2013 Author Share Posted January 1, 2013 > You're telling me this…why...? That function should have never been added, it should have used the character name...Ahm , when i got it working , i'll try releasing it Link to comment Share on other sites More sharing options...
Ertzel Posted January 1, 2013 Share Posted January 1, 2013 > instead of using the IP, use the character name. That will make it so in case your character is already on, it will say that…not through the IP :/Pretty sure it wont let you log into the same account twice, already…. This is suppose to stop people from dual logging on more then one account.... Link to comment Share on other sites More sharing options...
Mal Posted January 1, 2013 Share Posted January 1, 2013 ```Private Sub Form_Load() If App.PrevInstance Then Unload Me End IfEnd Sub```Gg. I win. Link to comment Share on other sites More sharing options...
hisherwin Posted January 1, 2013 Author Share Posted January 1, 2013 > ```> > Private Sub Form_Load()> > If App.PrevInstance Then> > Unload Me> > End If> > End Sub> > ```> > Gg. I win.What was that? Link to comment Share on other sites More sharing options...
Mal Posted January 1, 2013 Share Posted January 1, 2013 > What was that?That keeps someone from opening multiple instances of the client. ;p Comment it out for testing purposes; uncomment it on release. Gg. Link to comment Share on other sites More sharing options...
Notsu Posted January 1, 2013 Share Posted January 1, 2013 Thanks Budweiser. Link to comment Share on other sites More sharing options...
Vaughan Posted January 2, 2013 Share Posted January 2, 2013 Except his is client-side, so I don't think he quite wins. A quick little hack will knock that to shreds. Link to comment Share on other sites More sharing options...
abhi2011 Posted January 3, 2013 Share Posted January 3, 2013 And how do you suggest one will do that? Link to comment Share on other sites More sharing options...
Mal Posted January 3, 2013 Share Posted January 3, 2013 > Except his is client-side, so I don't think he quite wins. A quick little hack will knock that to shreds.Feel free to come up with code and instructions on the use of a Mutex or other alternative to go along with your criticism, guy. Link to comment Share on other sites More sharing options...
moktavz Posted January 3, 2013 Share Posted January 3, 2013 Nice ! This is really Usefull …Thanks! Link to comment Share on other sites More sharing options...
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