[reg] a little code :S

Submit your code requests, and if you are good at coding come help others with their requests.
Post Reply
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

well.. i was wondering if any of you, can tell me how to change the color of something:

When you are playing, you have your thing that says Aresden Combatant or Elvine Combatant or **** GuildMaster... someone knows how to change the color of this? :S

ty
lirannn
Regular
Posts: 56
Joined: Fri Sep 08, 2006 7:17 pm

Post by lirannn »

Code: Select all

	if( bCitizen == FALSE )	strcpy(cTxt, DRAW_OBJECT_NAME60);
	else
	{
  if( bAresden )
  {
  	if( bHunter == TRUE ) {
     sR = 0;
            sG = 0;
            sB = 0;
    strcpy(cTxt, DEF_MSG_ARECIVIL);
  	}
  	else {
      sR = 0;
            sG = 0;
            sB = 0;
    strcpy(cTxt, DEF_MSG_ARESOLDIER);
  	}
  }
  else
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ELVCIVIL);
  	else strcpy(cTxt, DEF_MSG_ELVSOLDIER);
  }
	}
not tested but adding sRsGsB should work.


btw,this topic goes client source..
<span style='color:green'>Danny says:u dont know how much u can make from weed ,make any item of clothing. im fucking serious, real good ropes!</span><br><br>Helbreath reborn, be there;)<br>owner of hbr.
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

lirannn wrote:

Code: Select all

	if( bCitizen == FALSE )	strcpy(cTxt, DRAW_OBJECT_NAME60);
	else
	{
  if( bAresden )
  {
  	if( bHunter == TRUE ) {
     sR = 0;
            sG = 0;
            sB = 0;
    strcpy(cTxt, DEF_MSG_ARECIVIL);
  	}
  	else {
      sR = 0;
            sG = 0;
            sB = 0;
    strcpy(cTxt, DEF_MSG_ARESOLDIER);
  	}
  }
  else
  {
  	if( bHunter == TRUE ) strcpy(cTxt, DEF_MSG_ELVCIVIL);
  	else strcpy(cTxt, DEF_MSG_ELVSOLDIER);
  }
	}
not tested but adding sRsGsB should work.


btw,this topic goes client source..
where is taht on the client? (srry for posting it in here heh:S ithink was on hgserver src) on game.cpp? ... where?
lirannn
Regular
Posts: 56
Joined: Fri Sep 08, 2006 7:17 pm

Post by lirannn »

how about put it in the search box?
<span style='color:green'>Danny says:u dont know how much u can make from weed ,make any item of clothing. im fucking serious, real good ropes!</span><br><br>Helbreath reborn, be there;)<br>owner of hbr.
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

HMM.. good idea.. but in what .cpp or .h file cuz i couldn't find it... :o
EvilHit
Loyal fan
Posts: 356
Joined: Sun Jan 16, 2005 3:20 am

Post by EvilHit »

game.cpp u nub
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

Select the search entire solution/project >.>
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Post Reply