Add a new admin grade

Results 1 to 9 of 9
  1. #1
    Valued Member gaspartx is offline
    MemberRank
    Apr 2009 Join Date
    BrazilLocation
    102Posts

    Add a new admin grade

    I wonder how to add a new Admin Grade, on gunz 1.5 source..

    Thanks


  2. #2
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Add a new admin grade

    Use qet123 TUT .. Or use "SEARCH" button -.-"

  3. #3
    DarKGunZ Owner WooAf is offline
    MemberRank
    Dec 2007 Join Date
    CanadaLocation
    485Posts

    Re: Add a new admin grade

    Adding a UGradeID:

    Code:
    MMatchObject.h
    Code:
    MMUG_DONOR1 = 201,


    Adding a color:

    Code:
    ZGame.cpp
    Code:
    if(nGrade == MMUG_DONOR1) return MCOLOR(16, 96, 96);


    Have fun :)

  4. #4
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Add a new admin grade

    Quote Originally Posted by WooAf View Post
    Adding a UGradeID:

    Code:
    MMatchObject.h
    Code:
    MMUG_DONOR1 = 201,


    Adding a color:

    Code:
    ZGame.cpp
    Code:
    if(nGrade == MMUG_DONOR1) return MCOLOR(16, 96, 96);


    Have fun :)
    Lol, that's very basic!

  5. #5
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Add a new admin grade

    @WooAF, show this everywhere color or only in lobby ?

  6. #6
    DarKGunZ Owner WooAf is offline
    MemberRank
    Dec 2007 Join Date
    CanadaLocation
    485Posts

    Re: Add a new admin grade

    Quote Originally Posted by Tankado View Post
    @WooAF, show this everywhere color or only in lobby ?
    Depend how you unmasked your client ;)

    Quote Originally Posted by qet123 View Post
    Lol, that's very basic!
    That's how Maiet coded it, its basic and do the job, what you need else ?

  7. #7
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Add a new admin grade

    Quote Originally Posted by WooAf View Post
    Depend how you unmasked your client ;)



    That's how Maiet coded it, its basic and do the job, what you need else ?
    In tablist? in lobby/stage. I already done them but i'm just saying this is very basic.

  8. #8
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Add a new admin grade

    @WooAF, Thanks :P for your help its easy way to do :)

  9. #9
    Valued Member gaspartx is offline
    MemberRank
    Apr 2009 Join Date
    BrazilLocation
    102Posts

    Re: Add a new admin grade

    MMatchObject.h
    Code:
    inline bool IsAdminGrade(MMatchUserGradeID nGrade) 
    {
    	if ((nGrade == MMUG_EVENTMASTER) || 
    		(nGrade == MMUG_ADMIN) || 
    		(nGrade == MMUG_DEVELOPER))
    		return true;
    
    	return false;
    }
    ZMyInfo.h
    Code:
    	bool				IsAdminGrade() {
    		if ( (GetUGradeID() == MMUG_EVENTMASTER) || (GetUGradeID() == MMUG_DEVELOPER) || (GetUGradeID() == MMUG_ADMIN))
    			return true;
    		else
    			return false;
    	}
    Here!

    Please Close This Topic...



Advertisement