[src] Contribution Code

Codes already submitted by people of the forums.
Post Reply
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

So heres my contribution code.
it will make all players Contribuion how u want

so first search in game.cpp

Code: Select all

case 61:
    if (_bGetIsStringIsNumber(token) == FALSE) {
    	wsprintf(cTxt, "(!!!) Player(%s) data file error! wrong Data format - Connection closed. ", m_pClientList[iClientH]->m_cCharName); 
    	PutLogList(cTxt);
    	delete pContents;
    	delete pStrTok;
    	return FALSE;
    }
cReadModeA = 0;
    break;
then replace it with

Code: Select all

	case 61:
    if (_bGetIsStringIsNumber(token) == FALSE) {
    	wsprintf(cTxt, "(!!!) Player(%s) data file error! wrong Data format - Connection closed. ", m_pClientList[iClientH]->m_cCharName); 
    	PutLogList(cTxt);
    	delete pContents;
    	delete pStrTok;
    	return FALSE;
    }

    m_pClientList[iClientH]->m_iContribution = atoi(token);
    // Contribution Code By Treax
    if(m_pClientList[iClientH]->m_iContribution <= 1) {m_pClientList[iClientH]->m_iContribution = 2000;
    }
    cReadModeA = 0;
    break;
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

this is Automatical contribution???
<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' />
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

Yes it is ... coz there is no activate code like u see
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

It's on the functon that checks player's data when logging in...so the code will just check the contribution line if is < 1 (0 or negative numbers) will set it to 2000.

Nice idea Treax2
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Post Reply