Premium function

Posts 1–4 of 4 · Page 1 of 1
Premium function
premium function problem again. whenever i add this function to my hack player movements becomes laggy; i tried adjusting the sleep time but no luck, or is it ok to remove the sleep time in the hackthread?im coding a no menu.

im using this function

void Premium()
{
DWORD dwServerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwServerPtr != 0)
{
*(long*)(dwServerPtr+Ofs_Premium1 = 1;
*(long*)(dwServerPtr+Ofs_Premium2 = 1;
}
}
The code I used was:

Code:
if(CH_Premium!=0)
{
DWORD dwServerPointer = *(DWORD*)Addr_Serverpointer;
if(dwServerPointer != 0)
{
    switch(CH_Premium)
    {
    case 1:    *(int*)(dwServerPointer+OFS_PREMIUM1) = 1;
            *(float*)(dwServerPointer+OFS_PREMIUM2) = 1;break;
    case 2:    *(int*)(dwServerPointer+OFS_PREMIUM1) = 2;
            *(float*)(dwServerPointer+OFS_PREMIUM2) = 2;break;
    case 3:    *(int*)(dwServerPointer+OFS_PREMIUM1) = 3;
            *(float*)(dwServerPointer+OFS_PREMIUM2) = 3;break;
    case 4:    *(int*)(dwServerPointer+OFS_PREMIUM1) = 4;
            *(float*)(dwServerPointer+OFS_PREMIUM2) = 4;break;
    }
}
}
But its old. i stopped coding a while ago..

So, this method is outdated. Or you're doing it wrong with Long..
Also > i recommend you not to use a function for every hack. Just make a Hackthread function, and do all hacks there...
Easy:

Code:
void Premium()
{
DWORD dwServerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwPlayerPtr != 0)
{
*(long*)(dwServerPtr+Ofs_Premium1) = 3, 10;
{
*(float*)(dwServerPtr+Ofs_Premium2) = 1, 1;
}
}
}
Quote Originally Posted by lilcreeplil View Post
premium function problem again. whenever i add this function to my hack player movements becomes laggy; i tried adjusting the sleep time but no luck, or is it ok to remove the sleep time in the hackthread?im coding a no menu.

im using this function

void Premium()
{
DWORD dwServerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwServerPtr != 0)
{
*(long*)(dwServerPtr+Ofs_Premium1 = 1;
*(long*)(dwServerPtr+Ofs_Premium2 = 1;
}
}
lol... your coding ph ... theres only 1 premium..
Gold premium



_________________
sorry for my bad english
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us