[TUT] Server isPassworded

Results 1 to 16 of 16
  1. #1
    Enthusiast sibercoder is offline
    MemberRank
    Sep 2013 Join Date
    27Posts

    [TUT] Server isPassworded

    How we'll do it with the password to servers???

    Code:
    if(game->isPassworded()) {
    if(strcmp(game->info_.pwd, pwd) != 0) {
    ans.result = GBPKT_M2C_JoinGameAns_s::rWrongPassword;
    return;


  2. #2
    Enthusiast kasami2620 is offline
    MemberRank
    Aug 2013 Join Date
    27Posts

    Re: [TUT] Server isPassworded

    Quote Originally Posted by sibercoder View Post
    How we'll do it with the password to servers???

    Code:
    if(game->isPassworded()) {
    if(strcmp(game->info_.pwd, pwd) != 0) {
    ans.result = GBPKT_M2C_JoinGameAns_s::rWrongPassword;
    return;
    put Anywhere ??

  3. #3
    Enthusiast sibercoder is offline
    MemberRank
    Sep 2013 Join Date
    27Posts

    Re: [TUT] Server isPassworded

    This will help you do it together is just the beginning.

  4. #4
    Proficient Member Lewis Caddick is offline
    MemberRank
    May 2013 Join Date
    Casa Del LewisLocation
    160Posts

    Re: [TUT] Server isPassworded

    If you going to do a tutorial about this then please provide more information, like where this code would go for starters.

  5. #5
    Enthusiast sibercoder is offline
    MemberRank
    Sep 2013 Join Date
    27Posts

    Re: [TUT] Server isPassworded

    Please write the subject let's do it slowly

    Lewis Caddick man ....

  6. #6
    Proficient Member Lewis Caddick is offline
    MemberRank
    May 2013 Join Date
    Casa Del LewisLocation
    160Posts

    Re: [TUT] Server isPassworded

    Quote Originally Posted by sibercoder View Post
    Please write the subject let's do it slowly

    Lewis Caddick man ....
    Im guessing English isn't your native language and i will let you off with that, but you need to say a bit more in the tutorial. The first line you put is "How we'll do it with the password to servers???", this to me sounds more like a question, than it does an explanation. Also you just paste part of the code and don't explain where it goes or if it will work on DNC or invasion source etc. In future please think about your topic before actually typing it.

  7. #7
    Account Upgraded | Title Enabled! JonnyTruant is offline
    MemberRank
    Mar 2013 Join Date
    555Posts

    Re: [TUT] Server isPassworded

    Also the line of code he just put there is already in code.

  8. #8
    Proficient Member Lewis Caddick is offline
    MemberRank
    May 2013 Join Date
    Casa Del LewisLocation
    160Posts

    Re: [TUT] Server isPassworded

    Quote Originally Posted by JonnyTruant View Post
    Also the line of code he just put there is already in code.
    yes i already knew that, hence why his first sentence is a question.

  9. #9
    Member renildomarcio is offline
    MemberRank
    Mar 2013 Join Date
    BR, USALocation
    57Posts

    thumbs up activating the Server isPassworded

    would thus be more or less my code
    Code:
    [MyServer3]
    
    map = MAPID_WZ_Colorado DOESNOTHING GBNET_REGION_US_West 0 0
    
    data = 64 0 0
    
    name = SERVER TEST
    
    isPassworded = 12345678

  10. #10
    Nobody folkz is offline
    MemberRank
    Apr 2013 Join Date
    BrazilLocation
    526Posts

    Re: [TUT] Server isPassworded

    Maybe this is the real code on "MasterServer.cfg"? >_>

    Code:
    [RentedServerTest]
    map = MAPID_WZ_Colorado DOESNOTHING GBNET_REGION_US_East 0 0
    data = 100 0 0
    name = teste
    pwd = nop
    ispwd = 1 // if you want to set server to private server set to 1
    ispre = 0
    at least that's what I have on my masterserver.cgf .....

    PS: before someone talk nonsense I show this to HypoFlex on "Domingo 14:46" what meaning Sunday 2PM ( Brazil Time ) :P

  11. #11
    Account Upgraded | Title Enabled! Poster13 is offline
    MemberRank
    Jun 2013 Join Date
    395Posts

    Re: activating the Server isPassworded

    Quote Originally Posted by renildomarcio View Post
    would thus be more or less my code
    Code:
    [MyServer3]
    
    map = MAPID_WZ_Colorado DOESNOTHING GBNET_REGION_US_West 0 0
    
    data = 64 0 0
    
    name = SERVER TEST
    
    isPassworded = 12345678
    Maan) You noob) You do not have a new source) and Vault tutorial you just copied from the source InvasionMMO
    See this

  12. #12
    Account Upgraded | Title Enabled! JonnyTruant is offline
    MemberRank
    Mar 2013 Join Date
    555Posts

    Re: [TUT] Server isPassworded

    Quote Originally Posted by folkz View Post
    Maybe this is the real code on "MasterServer.cfg"? >_>

    Code:
    [RentedServerTest]
    map = MAPID_WZ_Colorado DOESNOTHING GBNET_REGION_US_East 0 0
    data = 100 0 0
    name = teste
    pwd = nop
    ispwd = 1 // if you want to set server to private server set to 1
    ispre = 0
    at least that's what I have on my masterserver.cgf .....

    PS: before someone talk nonsense I show this to HypoFlex on "Domingo 14:46" what meaning Sunday 2PM ( Brazil Time ) :P
    Wont work...

  13. #13
    Nobody folkz is offline
    MemberRank
    Apr 2013 Join Date
    BrazilLocation
    526Posts

    Re: [TUT] Server isPassworded

    Quote Originally Posted by JonnyTruant View Post
    Wont work...
    Please, u need more than this xD think i will post the complete code? :v

  14. #14
    Novice andriskaaz is offline
    MemberRank
    Apr 2013 Join Date
    4Posts

    Re: [TUT] Server isPassworded

    Many more lines :D approximately + 50 lines. custom class, ptr etc.

  15. #15
    Member Dafkid is offline
    MemberRank
    Mar 2013 Join Date
    79Posts

    Re: activating the Server isPassworded

    Quote Originally Posted by Poster13 View Post
    Maan) You noob) You do not have a new source) and Vault tutorial you just copied from the source InvasionMMO
    See this

    Omg man wtf?? u get this source from aomsin2526! U code it? oh wait ! NO! So what? how old are you? 11?

  16. #16
    Nobody folkz is offline
    MemberRank
    Apr 2013 Join Date
    BrazilLocation
    526Posts

    Re: [TUT] Server isPassworded

    Quote Originally Posted by andriskaaz View Post
    Many more lines :D approximately + 50 lines. custom class, ptr etc.
    custom class only if it is to make private legend or something but it is well out there :D



Advertisement