Quote:
help please :(. OPK that has saving position just like teleport :(
void MakeTeleport()
{
for(int i = 0; i < 32; i++)
{
cPlayer mPlayer = StructClass::getPlayer(i);
if(mPlayer != null)
{
mPlayer->X = PlayerPositionsX[i];
mPlayer->Y = PlayerPositionsY[i];
mPlayer->Z = PlayerPositionsZ[i];
}
}
SavePositions();
}
void SavePositions()
{
for(int i = 0; i < 32; i++)
{
cPlayer mPlayer = StructClass::getPlayer(i);
if(mPlayer != null)
{
PlayerPositionsX[i] = mPlayer->X;
PlayerPositionsY[i] = mPlayer->Y;
PlayerPositionsZ[i] = mPlayer->Z;
}
}
MakeTeleport();
}
for(int i = 0; i < 32; i++)Quote:
;) Should Work Like this!Code:void MakeTeleport() { for(int i = 0; i < 32; i++) { cPlayer mPlayer = StructClass::getPlayer(i); if(mPlayer != null) { mPlayer->X = PlayerPositionsX[i]; mPlayer->Y = PlayerPositionsY[i]; mPlayer->Z = PlayerPositionsZ[i]; } } SavePositions(); } void SavePositions() { for(int i = 0; i < 32; i++) { cPlayer mPlayer = StructClass::getPlayer(i); if(mPlayer != null) { PlayerPositionsX[i] = mPlayer->X; PlayerPositionsY[i] = mPlayer->Y; PlayerPositionsZ[i] = mPlayer->Z; } } MakeTeleport(); }
for ( INT PlayerSlot = 0; PlayerSlot < pLocalServer->MaxPlayers; ++ PlayerSlot )
for (auto &player : wr_player_pool->remote_player)
you need to use UnknownPK Unpatch method to get it working back.Quote:
Hey, I would like to ask for a source to speedhack, because I do not know why the Mem does not work anymore.
VOID xWriteMemory(PVOID dwAdress,VOID* dwValue,INT dwBytes)
{
DWORD dwProtect,dwProtected;
VirtualProtect(dwAdress,dwBytes,PAGE_EXECUTE_READWRITE,&dwProtect);
memcpy(dwAdress,dwValue,dwBytes);
VirtualProtect(dwAdress,dwBytes,dwProtect,&dwProtected);
}
template <typename T>void WriteMEM(void* adr,T Vaule,T *Input = NULL)
{
if(Input == 0)
xWriteMemory((void*)adr,(void*)&Vaule,sizeof(T));
else
xWriteMemory((void*)Input,(void*)adr,sizeof(T));
}
but this methode crash and making partyprogramm too on 32bit system :DQuote:
you need to use UnknownPK Unpatch method to get it working back.
Code:VOID xWriteMemory(PVOID dwAdress,VOID* dwValue,INT dwBytes) { DWORD dwProtect,dwProtected; VirtualProtect(dwAdress,dwBytes,PAGE_EXECUTE_READWRITE,&dwProtect); memcpy(dwAdress,dwValue,dwBytes); VirtualProtect(dwAdress,dwBytes,dwProtect,&dwProtected); } template <typename T>void WriteMEM(void* adr,T Vaule,T *Input = NULL) { if(Input == 0) xWriteMemory((void*)adr,(void*)&Vaule,sizeof(T)); else xWriteMemory((void*)Input,(void*)adr,sizeof(T)); }
WR made an update like half a year ago blocking code that changes "raw" memory... UnknownPK made what N4N033 posted, public, allowing almost everyone to use it... by that many other people just made their own code out of that (since there's not only one way for making things).Quote:
Hey, I would like to ask for a source to speedhack, because I do not know why the Mem does not work anymore.
Quote:
if( cEsp.FZ_HEALTHBAR== 1 )
{
char szhealth[100];
int Red1,Green1;
Red1 = 255-((GetGlobalInfo(MaxPlayer)->HEALTH/10)*2.55);
Green1 = (GetGlobalInfo(MaxPlayer)->HEALTH/10)*2.55;
DrawBox((int)EspView.x-80, (int)EspView.y-115, 100, 5,D3DCOLOR_ARGB( 255 ,20, 20, 20),pDevice);
DrawBox((int)EspView.x-80, (int)EspView.y-115, GetGlobalInfo(MaxPlayer)->HEALTH/10, 5,D3DCOLOR_ARGB( 255, Red1, Green1, 0),pDevice);
DrawRectangle((int)EspView.x-80, (int)EspView.y-115,100, 5, 1,LightBlue,pDevice);
sprintf(szhealth,"%d HP\n ",(int)GetGlobalInfo(MaxPlayer)->HEALTH/100);
Frenz->DrawTextC((int)EspView.x-100, (int)EspView.y-120,D3DCOLOR_ARGB(255,000,191,255), szhealth, pFont);
EspView.y += 14;
}