[Src] /Contrib

Codes already submitted by people of the forums.
Post Reply
Acidx
Member
Posts: 198
Joined: Tue Mar 23, 2004 4:27 am

Post by Acidx »

Well im devloping everyday so im just going to start making everything lol so it seems, and ill release most of my coding here..
Anyways to the source..
This is my version of /contrib mine is diffrent you dont need to logout to get the contrib its updated in game instant hehe i think its is overall better.
And as of now it can only be used one time untill they use all of the contrib points hehe.. so here it is

Use:
/contrib
Server: You got 2000 Contrib.
2000 Contrib is added to your character...


/*========in Game.CPP add =====*/

Code: Select all

/*======ContribScript=====/contrib==By-Acidx==*/
void CGame::Player_OrderContrib(int iClientH)
{/*An Acidx Production - Last Updated Sept.06, 2006 - By Acidx*/
	char cMessage[255];
ZeroMemory(cMessage, sizeof(cMessage));
if (iClientH != NULL)
if (m_pClientList[iClientH]->m_iContribution > 100)
{

	wsprintf( cMessage ,"Error. You can only use this 1 time");
	ShowClientMsg(iClientH, cMessage);
}else
{
	wsprintf( cMessage ,"2000 Contrib Has been Added To Your Character");
	ShowClientMsg(iClientH, cMessage);
	m_pClientList[iClientH]->m_iContribution += 2000;
	//Lmao Hack us a notify message to Activly update it in game without needing to logout jaja owned+1 - Acidx
	SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_QUESTREWARD, 4, 1, m_pClientList[iClientH]->m_iQuestRewardAmount, 
             "Script By Acidx", m_pClientList[iClientH]->m_iContribution);

}
}

/*===== in Game.CPP inside ChatMsgHangler====*/

Code: Select all

if (memcmp(cp, "/contrib", 8) == 0){
  	Player_OrderContrib(iClientH);
  	return;
  }


/*===== In Game.H ======*/

Code: Select all

void Player_OrderContrib(int iClientH);

Enjoy!.. If you make any changes/additions please post and share with the community!

-Acidx
<b>-<span style='color:green'>ACiD-x </span><span style='color:red'> Owning PCs Since 1987</span><br><img src='http://img204.imageshack.us/img204/2245/hackertf5.gif' border='0' alt='user posted image' /><br><img src='http://img509.imageshack.us/img509/6697 ... 4sc4ed.png' border='0' alt='user posted image' /><br><span style='color:orange'>i am Pwn NetGAYLORDS !</span></b><br><span style='color:blue'><br>I Pwn HBUSA =)</span>
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

good job dude keep it up :P
<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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

good job.
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Yeah, we noodles Appriciate your time and effort... Wanna work on a project for me, that you can release?
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

commands sux acctauly .. imo ...
easyier is it to make automaticly i think?
User avatar
Shinakuma
Member
Posts: 110
Joined: Thu Aug 04, 2005 3:52 pm
Location: USA

Post by Shinakuma »

the point of the command is for people that have used their contrib, it doesn't suck at all...
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

Acidx wrote:
/*======ContribScript=====/contrib==By-Acidx==*/
void CGame::Player_OrderContrib(int iClientH)
{/*An Acidx Production - Last Updated Sept.06, 2006 - By Acidx*/
char cMessage[255];
ZeroMemory(cMessage, sizeof(cMessage));
if (iClientH != NULL)
if (m_pClientList[iClientH]->m_iContribution > 100)
{

wsprintf( cMessage ,"Error. You can only use this 1 time");
ShowClientMsg(iClientH, cMessage);
}else
{
wsprintf( cMessage ,"2000 Contrib Has been Added To Your Character");
ShowClientMsg(iClientH, cMessage);
m_pClientList[iClientH]->m_iContribution += 2000;
//Lmao Hack us a notify message to Activly update it in game without needing to logout jaja owned+1 - Acidx
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_QUESTREWARD, 4, 1, m_pClientList[iClientH]->m_iQuestRewardAmount,
            "Script By Acidx", m_pClientList[iClientH]->m_iContribution);

}
}
Nice...

<!--QuoteBegin-code by dax+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (code by dax)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->int main() // entry point - Dax
{ // starting the code - Dax
  cout << /*almost 1st active line done - Dax*/ "line1\n"; // 1st line finished - Dax
return 0; // returning a value - Dax
} // almost there - Dax
// and finished! - Dax
// code by dax[/quote]

Like mine?
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
lirannn
Regular
Posts: 56
Joined: Fri Sep 08, 2006 7:17 pm

Post by lirannn »

Dax wrote: <!--QuoteBegin-code by dax+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (code by dax)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->int main() // entry point - Dax
{ // starting the code - Dax
  cout << /*almost 1st active line done - Dax*/ "line1\n"; // 1st line finished - Dax
return 0; // returning a value - Dax
} // almost there - Dax
// and finished! - Dax
// code by dax
[/quote]
rofl pwned+1
<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.
Orkl
Loyal fan
Posts: 376
Joined: Sat Sep 17, 2005 2:31 pm

Post by Orkl »

lirannn wrote:
Dax wrote: <!--QuoteBegin-code by dax+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (code by dax)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->int main() // entry point - Dax
{ // starting the code - Dax
  cout << /*almost 1st active line done - Dax*/ "line1\n"; // 1st line finished - Dax
return 0; // returning a value - Dax
} // almost there - Dax
// and finished! - Dax
// code by dax
rofl pwned+1 [/quote]

Code: Select all

Forum Post - By Orkl - An Orkl Production

Code: Select all

//Displaying some text - By Orkl - An Orkl Production
//Author: Orkl
//Purpose: Pissing off some nubs
//Date: 11/12/06

//Function: Main
//Author: Orkl
//Purpose: Lol
int main() //Function: Main - By Orkl
{ //Starting the function
//The below line will display some text
c/*by orkl*/o/*by orkl*/u/*by orkl*/t << "By Orkl\n";
return 0;
}
//This has been an Orkl Production

Code: Select all

Had to copy you dax, but cmon, he deserves it, and yours wasn't an Orkl production!

Code: Select all

end of forum post - By Orkl - an orkl production
<!--QuoteBegin-crazymnig88+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (crazymnig88)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->by notepad??? it didn't show any code, just show words wif no mean<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin-charlie+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (charlie)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->he'll probably save it as 600pagebook.bmp<br><br>400gb file plzkthnx<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Omg what nerds. O.< Orkl, get on MSN noodle.

AcidX: Might aswell do these commands too...

/maxlvl
/eks
/killthefkingcmds
/downwithallnoobservers

I like the last 2...

Treax: I concur...
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

ADDKiD wrote: Omg what nerds. O.< Orkl, get on MSN noodle.

AcidX: Might aswell do these commands too...

/maxlvl
/eks
/killthefkingcmds
/downwithallnoobservers

I like the last 2...

Treax: I concur...
You're funny. No wait, that was indigestion.
<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.
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

I laugh...
Post Reply