[src]/getreps

Codes already submitted by people of the forums.
Post Reply
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

cost 1 maj, gives 10 reps


search for (game.cpp)

Code: Select all

  	if (memcmp(cp, "/summonall ", 11) == 0) {
  	AdminOrder_SummonAll(iClientH, cp, dwMsgSize - 21);
  	return;
  }
After ADD

Code: Select all

  if (memcmp(cp, "/getreps",8) == 0) {
  	PlayerOrder_GetRep(iClientH);
  	return;


  }
At the end of game.cpp add:

Code: Select all

void CGame::PlayerOrder_GetRep(int iClientH) {
	{
        if (m_pClientList[iClientH]->m_iGizonItemUpgradeLeft > 0) {
	m_pClientList[iClientH]->m_iRating += 10;
        m_pClientList[iClientH]->m_iGizonItemUpgradeLeft -= 1;
  }
	}
}
Somewhere in Game.h add:

Code: Select all

	//Get Reps By Kiruku
void PlayerOrder_GetRep(int iClientH);
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

:P simple codes
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

yea but for n00bs who look here they needed (me 2 months ago)
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

Code: Select all

void CGame::PlayerOrder_GetRep(int iClientH) {
	{
        if(m_pClientList[iClientH]->m_iRating >= 10000) return;
        if (m_pClientList[iClientH]->m_iGizonItemUpgradeLeft > 0) {
	m_pClientList[iClientH]->m_iRating += 10;
        m_pClientList[iClientH]->m_iGizonItemUpgradeLeft -= 1;
  }
	}
}
because max rating is set to 10000 and why u need lost ur majestic for nothing if ur rep is 10000 already
Pollof
noob
Posts: 15
Joined: Sat Jan 14, 2006 5:51 pm

Post by Pollof »

Kiruku wrote: yea but for n00bs who look here they needed (me 2 months ago)
I think its the best way to start coding... Nice work ;)...
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

Treax... if u have that much rep.. for what u need this command then? i mean , if u can get with this command that much rep then u need put the majestics cost up that players never can get that high rep...
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

Code: Select all

//Get Reps By Kiruku
void PlayerOrder_GetRep(int iClientH);
I don't belive that you made it somewhy.. sry if u really did :P
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

yo i did but i got idea from another guy and he helped me fix errors :/ forgot something ...
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

nice work ^^
Post Reply