Teleport to a safe location when switch between servers

Results 1 to 11 of 11
  1. #1
    Apprentice clickptg is offline
    MemberRank
    Nov 2021 Join Date
    7Posts

    Teleport to a safe location when switch between servers

    hello, as the title says, in my own warz server, i put 2 server, so when i switch between servers the player doesnt go to a safe location. Per exemple, in original ISS or Newz when you swap from colorado1 to colorado2 the game teleport you to a safe location, but in my own game he still in the same place whatever if i go from colorado1 to colorado2. I hope u can understand, im not so good on english and a very noob on this warz servers and i dont know programming nothing. I just fallow a youtube videos to build my own game.

    my MasterServer.cfg is in this way:


  2. #2
    Account Upgraded | Title Enabled! Oosmar02 is offline
    MemberRank
    Sep 2013 Join Date
    FranceLocation
    893Posts

    Re: Teleport to a safe location when switch between servers

    Welcome to Ragezone,

    you can check that :

    void CJobProcessUserJoin::DetectServerHop()
    and

    void ServerGameLogic::GetSpawnPositionAfterDeath(const r3dPoint3D& GamePos, r3dPoint3D* pos, float* dir)
    void ServerGameLogic::GetSpawnPositionNewPlayer(const r3dPoint3D& GamePos, r3dPoint3D* pos, float* dir)
    void ServerGameLogic::GetSpawnPositionAfterDeath2(const r3dPoint3D& GamePos, r3dPoint3D* pos, float* dir)
    take your choice :)

  3. #3
    Enthusiast TheWoodPecker is offline
    MemberRank
    Jan 2019 Join Date
    127.0.0.1Location
    43Posts

    Re: Teleport to a safe location when switch between servers

    I think you are looking for dynamic spawn.

  4. #4
    Apprentice clickptg is offline
    MemberRank
    Nov 2021 Join Date
    7Posts

    Re: Teleport to a safe location when switch between servers

    thx for your help. Im really noob on this, so what soluction i need to check, WarZ_Server, WarZ, RSBuild, other? Which those three is better?

  5. #5
    Enthusiast TheWoodPecker is offline
    MemberRank
    Jan 2019 Join Date
    127.0.0.1Location
    43Posts

    Re: Teleport to a safe location when switch between servers

    warz , warz_server , api and database

  6. #6
    Account Upgraded | Title Enabled! Oosmar02 is offline
    MemberRank
    Sep 2013 Join Date
    FranceLocation
    893Posts

    Re: Teleport to a safe location when switch between servers

    onlyn server and litle database if you want

  7. #7
    Enthusiast TheWoodPecker is offline
    MemberRank
    Jan 2019 Join Date
    127.0.0.1Location
    43Posts

    Re: Teleport to a safe location when switch between servers

    if you want , my friend can sell it

  8. #8
    Account Upgraded | Title Enabled! IKaruzI15 is offline
    MemberRank
    May 2017 Join Date
    197Posts

    Re: Teleport to a safe location when switch between servers

    do not waste money on such micro changes... Oosmar02 literally sent you the solution...

  9. #9
    Enthusiast TheWoodPecker is offline
    MemberRank
    Jan 2019 Join Date
    127.0.0.1Location
    43Posts

    Re: Teleport to a safe location when switch between servers

    I understand your pain xd
    I can't argue with you here cheater
    Last edited by TheWoodPecker; 14-11-21 at 02:19 PM.

  10. #10
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: Teleport to a safe location when switch between servers

    Why all big work to it?

    Create a table ServersPositions and small work in WZ_Char_SRV_SetStatus

    Do for any diff map id, you save positions and when back to another map id. Get current pos and work in WarZ_Server.sln for "teleport to near spawn"

    ragezone has a tutorial on how you can get these "crumbs" of code.




    I don't advise you to pay for it.

  11. #11
    Apprentice clickptg is offline
    MemberRank
    Nov 2021 Join Date
    7Posts

    Re: Teleport to a safe location when switch between servers

    for sure i will not play for nothing and that guy should be banned. this forum its free and its about to help other for free...thx all for the free help



Advertisement