[Tutorial] how to activate player CustomerID / namertag for admins

Results 1 to 17 of 17
  1. #1
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    thumbs up [Tutorial] how to activate player CustomerID / Gamertag for admins

    in WarZ.sln

    AI_Player.CPP

    search for:

    #ifndef FINAL_BUILD
    // draw player CustomerID/gamertag for admins
    if(!NetworkLocal && gUserProfile.ProfileData.isDevAccount && Keyboard->IsPressed(kbsLeftAlt))
    {
    float dist = (gCam - GetPosition()).Length();
    int a = int(R3D_MAX(1.0f - (dist / 300.0f), 0.1f)*255.0f);
    r3dPoint3D scrCoord;
    if(r3dProjectToScreen(GetPosition() + r3dPoint3D(0, 1.8f, 0), &scrCoord))
    {
    char plrUserName[64]; GetUserName(plrUserName);
    Font_Editor->PrintF(scrCoord.x, scrCoord.y+12, r3dColor(255,255,255,a), "ID:%d", CustomerID);
    Font_Editor->PrintF(scrCoord.x, scrCoord.y, r3dColor(255,255,255,a), "%s", plrUserName);
    }
    }
    #endif
    replace for:

    //#ifndef FINAL_BUILD
    // draw player CustomerID/gamertag for admins
    if(!NetworkLocal && gUserProfile.ProfileData.isDevAccount && Keyboard->IsPressed(kbsLeftAlt))
    {
    float dist = (gCam - GetPosition()).Length();
    int a = int(R3D_MAX(1.0f - (dist / 300.0f), 0.1f)*255.0f);
    r3dPoint3D scrCoord;
    if(r3dProjectToScreen(GetPosition() + r3dPoint3D(0, 1.8f, 0), &scrCoord))
    {
    char plrUserName[64]; GetUserName(plrUserName);
    Font_Editor->PrintF(scrCoord.x, scrCoord.y+12, r3dColor(255,255,255,a), "ID:%d", CustomerID);
    Font_Editor->PrintF(scrCoord.x, scrCoord.y, r3dColor(255,255,255,a), "%s", plrUserName);
    }
    }
    //#endif
    because I commented these lines? to enable the function, both in the studio and the client.

    Remembering, if you use the source invasionmmo not use this tutorial, because this function is already activated.

    You can view the nametag and the Customer ID by pressing ALT
    Last edited by Yuri-BR; 14-10-13 at 03:13 PM.


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

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Thanks)))) THaaanks)))

  3. #3

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    This is another Tutorial on how to change 2 Fking Strings?

    God please, create a fking AIO Thread if this is just how to comment out 2 lines >.<

  4. #4
    Member DarkOur is offline
    MemberRank
    Nov 2006 Join Date
    94Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Nice Yuri :). Thanks!

  5. #5
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Quote Originally Posted by iKasu View Post
    This is another Tutorial on how to change 2 Fking Strings?

    God please, create a fking AIO Thread if this is just how to comment out 2 lines >.<
    IKASU, there are people who do not know nor comment lines

    They do not know how to set the function to the client

  6. #6
    Member CapBlackShot is offline
    MemberRank
    Jun 2013 Join Date
    70Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Sorry, but what it is exactly?

  7. #7
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Quote Originally Posted by CapBlackShot View Post
    Sorry, but what it is exactly?
    good, this tutorial is for you to view the Customer ID of the player and gametag

  8. #8
    Member CapBlackShot is offline
    MemberRank
    Jun 2013 Join Date
    70Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Quote Originally Posted by Yuri BR View Post
    good, this tutorial is for you to view the Customer ID of the player and gametag
    In-game, right? Thank you!

  9. #9
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Quote Originally Posted by CapBlackShot View Post
    In-game, right? Thank you!
    yes...

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

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    i have done this and all i see for id is 0

  11. #11
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    thank yuri

  12. #12
    French Guy :D skyone is offline
    MemberRank
    Nov 2013 Join Date
    254Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Quote Originally Posted by Lewis Caddick View Post
    i have done this and all i see for id is 0
    Same for me, no idea ?

  13. #13
    Proficient Member JohnzBallad is offline
    MemberRank
    Jan 2014 Join Date
    Rio de JaneiroLocation
    175Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Good Job, but, I want to put another button, like: Right Alt, you understand? So, how can i put this?

  14. #14
    f793 eXtremousZ is offline
    MemberRank
    May 2013 Join Date
    Planet ShearLocation
    857Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Quote Originally Posted by JohnzBallad View Post
    Good Job, but, I want to put another button, like: Right Alt, you understand? So, how can i put this?
    Find:

    Code:
    if(!NetworkLocal && gUserProfile.ProfileData.isDevAccount && Keyboard->IsPressed(kbsLeftAlt))
    Replace:

    Code:
    if(!NetworkLocal && gUserProfile.ProfileData.isDevAccount && Keyboard->IsPressed(kbsRightAlt))

  15. #15
    Proficient Member JohnzBallad is offline
    MemberRank
    Jan 2014 Join Date
    Rio de JaneiroLocation
    175Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Quote Originally Posted by eXtremousZ View Post
    Find:

    Code:
    if(!NetworkLocal && gUserProfile.ProfileData.isDevAccount && Keyboard->IsPressed(kbsLeftAlt))
    Replace:

    Code:
    if(!NetworkLocal && gUserProfile.ProfileData.isDevAccount && Keyboard->IsPressed(kbsRightAlt))

    oh, thanks dude! :3

  16. #16
    f793 eXtremousZ is offline
    MemberRank
    May 2013 Join Date
    Planet ShearLocation
    857Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Quote Originally Posted by JohnzBallad View Post
    oh, thanks dude! :3
    No problem :)

  17. #17
    Proficient Member JohnzBallad is offline
    MemberRank
    Jan 2014 Join Date
    Rio de JaneiroLocation
    175Posts

    Re: [Tutorial] how to activate player CustomerID / namertag for admins

    Quote Originally Posted by eXtremousZ View Post
    No problem :)
    I don't know if i can ask for your help, but, if not... sorry.
    Can you see my thread? http://forum.ragezone.com/f792/faile...8/#post8004322



Advertisement