some thing like this if possible

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;
}
}
could you compile this into a dll please..