how to put names to each administrator?

Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 49
  1. #16
    Account Upgraded | Title Enabled! Mr.Lucifer is offline
    MemberRank
    Apr 2007 Join Date
    797Posts

    Re: how to put names to each administrator?

    Quote Originally Posted by Wizkidje View Post
    Because it costed us a lot of time to find out how. And then it's not worth to release it to the public since there will be people that claim credits and stuff for it. I won't say names.
    Meh, I can't see why you even bother to care about idiots who can't even spell claiming they made it. Anyone with half a brain understands that they didn't.

    Quote Originally Posted by Lambda View Post
    Well, i will investigate how it can be done and make it public.
    Pro. I'll try beating you to it.

  2. #17
    HeroGamers Developer emisand is offline
    MemberRank
    Mar 2006 Join Date
    UruguayLocation
    330Posts

    Re: how to put names to each administrator?

    Quote Originally Posted by corrado View Post
    Osea yo solo quiero que cada admin tenga su nombre propio xq todos tenemos en nombre de ADMNISTRATOR :S.

    English
    thanks to all this, then follow looking xD
    Nada mas ponle a los admins la UgradeID 252, supongo que estas usando 255 o 254.
    Lo que hace la 252 es dar poder de admin y se ve el nombre aunque no en naranja

    Just put the 252 ugradeid to the admins, I suppose you are using 255 or 254.
    The 252 ugradeid gives admin power and shows the name but not in orange.

  3. #18
    Programming Addict Lambda is offline
    MemberRank
    Sep 2007 Join Date
    SpainLocation
    393Posts

    Re: how to put names to each administrator?

    Well, method found, solving some problems with it.

  4. #19
    Account Upgraded | Title Enabled! corrado is offline
    MemberRank
    Aug 2008 Join Date
    219Posts

    Re: how to put names to each administrator?

    ok thx emisand iam lol -.-

  5. #20
    Programming Addict Lambda is offline
    MemberRank
    Sep 2007 Join Date
    SpainLocation
    393Posts

    Re: how to put names to each administrator?

    Ok, i have found the way to do it, buuut, to make it well i need to spend a lot of time patching things in the exe, time that i dont have, so if anyone is interested and have a bit of knowledge of asm, search for GetUserGradeIDColor function, this function takes 3 parameters, the first is the UGradeID to check if there is a color for it, the second is a MCOLOR struct pointer and the third parameter is a char* to store the 'Administrator' string if the UGradeID is 255 or 254.

    the definition of the function is:

    bool GetUserGradeIDColor( int UGradeID, struct MCOLOR& Color, char* szName );

    the MCOLOR structs have this implementation.

    Code:
    struct MCOLOR
    {
        char r;
        char g;
        char b;
        char a;
    };
    you can create your own function and implements more colors to differents UGradeID's, you can set the blue color to the ugradeid 88 for example.

    the implementation of the function can be like that (written by myself based on the asm code )

    Code:
    bool GetUserGradeIDColor( int UGradeID, struct MCOLOR& Color, char* szName )
    {
        bool bRet = false;
    
        if( UGradeID == 255 )
        {
            Color.a = 255;
            Color.r = 128;
            Color.g = 64;
            Color.b = 0;
    
            char* szString = ZApplication->GetInstance()->GetMessenger()->GetString( 9004 ); //Administrator String
    
            while( *szString != '\0' )
            {
                *szName = *szString;
    
                szName++;
                szString++;
            }
    
            bRet = true;
        }else if( UGradeID == 254 )
        {
            Color.r = 128;
            Color.g = 64;
            Color.b = 0;
    
            char* szString = ZApplication->GetInstance()->GetMessenger()->GetString( 9005 ); //Developer String
    
            while( *szString != '\0' )
            {
                *szName = *szString;
    
                szName++;
                szString++;
            }
    
            bRet = true;
        }else{
            bRet = false;
        }
    
        return bRet;
    }

  6. #21
    Account Upgraded | Title Enabled! corrado is offline
    MemberRank
    Aug 2008 Join Date
    219Posts

    Re: how to put names to each administrator?

    wow thx lambda grax ^^

  7. #22
    Account Upgraded | Title Enabled! hiii is offline
    MemberRank
    Sep 2007 Join Date
    387Posts

    Re: how to put names to each administrator?

    Quote Originally Posted by Lambda View Post
    Ok, i have found the way to do it, buuut, to make it well i need to spend a lot of time patching things in the exe, time that i dont have, so if anyone is interested and have a bit of knowledge of asm, search for GetUserGradeIDColor function, this function takes 3 parameters, the first is the UGradeID to check if there is a color for it, the second is a MCOLOR struct pointer and the third parameter is a char* to store the 'Administrator' string if the UGradeID is 255 or 254.

    the definition of the function is:

    bool GetUserGradeIDColor( int UGradeID, struct MCOLOR& Color, char* szName );

    the MCOLOR structs have this implementation.

    Code:
    struct MCOLOR
    {
        char r;
        char g;
        char b;
        char a;
    };
    you can create your own function and implements more colors to differents UGradeID's, you can set the blue color to the ugradeid 88 for example.

    the implementation of the function can be like that (written by myself based on the asm code )

    Code:
    bool GetUserGradeIDColor( int UGradeID, struct MCOLOR& Color, char* szName )
    {
        bool bRet = false;
    
        if( UGradeID == 255 )
        {
            Color.a = 255;
            Color.r = 128;
            Color.g = 64;
            Color.b = 0;
    
            char* szString = ZApplication->GetInstance()->GetMessenger()->GetString( 9004 ); //Administrator String
    
            while( *szString != '\0' )
            {
                *szName = *szString;
    
                szName++;
                szString++;
            }
    
            bRet = true;
        }else if( UGradeID == 254 )
        {
            Color.r = 128;
            Color.g = 64;
            Color.b = 0;
    
            char* szString = ZApplication->GetInstance()->GetMessenger()->GetString( 9005 ); //Developer String
    
            while( *szString != '\0' )
            {
                *szName = *szString;
    
                szName++;
                szString++;
            }
    
            bRet = true;
        }else{
            bRet = false;
        }
    
        return bRet;
    }
    I dont get this D: shud like make a guide step by step and downloads cause this is my new computer...

  8. #23
    Reverse Engineer ThievingSix is offline
    MemberRank
    Mar 2007 Join Date
    CaliforniaLocation
    901Posts

    Re: how to put names to each administrator?

    If you don't understand this then you have no business trying to make changes like this to Gunz.

    Just my opinion.

  9. #24
    Adrian - Gunz Addict Adriann is offline
    MemberRank
    Oct 2008 Join Date
    Miami, FLLocation
    658Posts

    Re: how to put names to each administrator?

    Quote Originally Posted by ThievingSix View Post
    If you don't understand this then you have no business trying to make changes like this to Gunz.

    Just my opinion.
    should be everyones

  10. #25
    Account Upgraded | Title Enabled! dellyoung is offline
    MemberRank
    Aug 2007 Join Date
    271Posts

    Re: how to put names to each administrator?

    Quote Originally Posted by Lambda View Post
    Ok, i have found the way to do it, buuut, to make it well i need to spend a lot of time patching things in the exe, time that i dont have, so if anyone is interested and have a bit of knowledge of asm, search for GetUserGradeIDColor function, this function takes 3 parameters, the first is the UGradeID to check if there is a color for it, the second is a MCOLOR struct pointer and the third parameter is a char* to store the 'Administrator' string if the UGradeID is 255 or 254.

    the definition of the function is:

    bool GetUserGradeIDColor( int UGradeID, struct MCOLOR& Color, char* szName );

    the MCOLOR structs have this implementation.

    Code:
    struct MCOLOR
    {
        char r;
        char g;
        char b;
        char a;
    };
    you can create your own function and implements more colors to differents UGradeID's, you can set the blue color to the ugradeid 88 for example.

    the implementation of the function can be like that (written by myself based on the asm code )

    Code:
    bool GetUserGradeIDColor( int UGradeID, struct MCOLOR& Color, char* szName )
    {
        bool bRet = false;
    
        if( UGradeID == 255 )
        {
            Color.a = 255;
            Color.r = 128;
            Color.g = 64;
            Color.b = 0;
    
            char* szString = ZApplication->GetInstance()->GetMessenger()->GetString( 9004 ); //Administrator String
    
            while( *szString != '\0' )
            {
                *szName = *szString;
    
                szName++;
                szString++;
            }
    
            bRet = true;
        }else if( UGradeID == 254 )
        {
            Color.r = 128;
            Color.g = 64;
            Color.b = 0;
    
            char* szString = ZApplication->GetInstance()->GetMessenger()->GetString( 9005 ); //Developer String
    
            while( *szString != '\0' )
            {
                *szName = *szString;
    
                szName++;
                szString++;
            }
    
            bRet = true;
        }else{
            bRet = false;
        }
    
        return bRet;
    }
    lol you should put this in the tut section

  11. #26
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: how to put names to each administrator?

    Gunz.exe receives the UGradeID and sets the string over the adminname locally, so there's no serversided edit.

  12. #27
    Programming Addict Lambda is offline
    MemberRank
    Sep 2007 Join Date
    SpainLocation
    393Posts

    Re: how to put names to each administrator?

    Quote Originally Posted by dellyoung View Post
    lol you should put this in the tut section
    this is not a tutorial, i only have explained how it works, you need to make alot of changes in the exe to make this work, i dont have time to make a tutorial.

  13. #28
    Account Upgraded | Title Enabled! dellyoung is offline
    MemberRank
    Aug 2007 Join Date
    271Posts

    Re: how to put names to each administrator?

    Quote Originally Posted by Lambda View Post
    this is not a tutorial, i only have explained how it works, you need to make alot of changes in the exe to make this work, i dont have time to make a tutorial.
    well lol then relse section just somewhere where people can find faster becuse knowing how it works helps geting it done lol i dont know alot of asm so i cant do shit

  14. #29
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: how to put names to each administrator?

    It will take a lot of hours since Gunz does it all over the place. I'm almost ready but stucked at the good old TAB scorelist, which receives the Admin string from the same place as the name above your head in TDM.

    I don't have time myself either to look into the whole TAB list. I might do it in a holiday, but it's a big MIGHT.

    You best start with unmasking the lobbylist, that's simple NOPPING an address.

  15. #30
    The beer?? Its here !!! Rotana is offline
    MemberRank
    Jan 2007 Join Date
    The NetherlandsLocation
    1,733Posts

    Re: how to put names to each administrator?

    Quote Originally Posted by Lambda View Post
    Ok, i have found the way to do it, buuut, to make it well i need to spend a lot of time patching things in the exe, time that i dont have, so if anyone is interested and have a bit of knowledge of asm, search for GetUserGradeIDColor function, this function takes 3 parameters, the first is the UGradeID to check if there is a color for it, the second is a MCOLOR struct pointer and the third parameter is a char* to store the 'Administrator' string if the UGradeID is 255 or 254.

    the definition of the function is:

    bool GetUserGradeIDColor( int UGradeID, struct MCOLOR& Color, char* szName );

    the MCOLOR structs have this implementation.

    Code:
    struct MCOLOR
    {
        char r;
        char g;
        char b;
        char a;
    };
    you can create your own function and implements more colors to differents UGradeID's, you can set the blue color to the ugradeid 88 for example.

    the implementation of the function can be like that (written by myself based on the asm code )

    Code:
    bool GetUserGradeIDColor( int UGradeID, struct MCOLOR& Color, char* szName )
    {
        bool bRet = false;
    
        if( UGradeID == 255 )
        {
            Color.a = 255;
            Color.r = 128;
            Color.g = 64;
            Color.b = 0;
    
            char* szString = ZApplication->GetInstance()->GetMessenger()->GetString( 9004 ); //Administrator String
    
            while( *szString != '\0' )
            {
                *szName = *szString;
    
                szName++;
                szString++;
            }
    
            bRet = true;
        }else if( UGradeID == 254 )
        {
            Color.r = 128;
            Color.g = 64;
            Color.b = 0;
    
            char* szString = ZApplication->GetInstance()->GetMessenger()->GetString( 9005 ); //Developer String
    
            while( *szString != '\0' )
            {
                *szName = *szString;
    
                szName++;
                szString++;
            }
    
            bRet = true;
        }else{
            bRet = false;
        }
    
        return bRet;
    }
    I think this could also be coded in an dll, and let it change the names



Page 2 of 4 FirstFirst 1234 LastLast

Advertisement