Log in

View Full Version : [COD4]Auto-Vote



R3m1nD
December 23rd, 2010, 01:58 PM
Hey, is there any app what is starting auto vote, like callvote map ^3x22^1Rage^2TIME^7!. its little hard to press bind with it if you enjoy your hight skill :D :rockon:

Thx for help

EDIT:
i saw source code for it:

int *VoteActive = (int*)0x00C6291E;
unsigned long LastVote = 0;
int LastClient = -1;

if(Spam_Vote && (*VoteActive) == 0)
{
unsigned long CurrentTime = GetTickCount();
if((CurrentTime - LastVote) > 1000) //Check because it takes time for the server to process your vote
{
switch(Spam_Vote_Type)
{
case 0:
LastClient = GetClient_Random(LastClient);
cCodEngine->SendCommandToConsole_Direct("callvote kick \"%s\"\n",cClientInfo[LastClient].PlayerName);
break;
case 1:
cCodEngine->SendCommandToConsole_Direct("callvote map \"^3x22^2Random^3Spam^1Vote^7!\"\n");
break;
}
LastVote = CurrentTime;
}
}

Can some one put it in dll :D