Code:
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <wininet.h>
#include "xColor.h"
#include "xMenu.h"
#include "xAddys.h"
#include "xMain.h"
#include "xDetour.h"
#include "xDetour2.h"
#include "xBreakpoint.h"
#include "xStruct.h"
#include "targetever.h"
#include "VTable.h"
#include "xDumpProtection.h"
#include "xAntiRev.h"
#include "xDefines.h"
#include "xPatch.h"
#include "xLog.h"
#include "xGUIDTech.h"
#include "xCrypt.h"
#include "xWeaponBinder.h"
#include "xBypass.h"
#include <fstream>
#include <d3d9.h>
#include <d3dx9.h>
#include <time.h>
using namespace std;
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "D3DX9.LIB")
D3D9Menu *Base = NULL;
ModuleBase* Module;
ID3DXFont * _FontDevice;
LPDIRECT3DTEXTURE9 aRed,aGreen,aBlue,aYellow,aPurple,aPink,aOrange,aGrey,aCyan,aBlack,aWhite;
LPDIRECT3DVERTEXBUFFER9 Stream;
UINT OffsetInBytes;
UINT Offset = 0;
UINT m_Stride;
bool Color = true;
BYTE EndSceneOpCodes[7],DrawIndexedPrimiveOpCodes[7];
BYTE PresenOpCodes[7],ResetOpCodes[7];
BOOL AimbotInitialised = FALSE;
BOOL InitAimBot = FALSE;
D3DVIEWPORT9 viewPort;
D3DXVECTOR3 vOrthoLocation;
D3DXMATRIX projection, view, world, identity;
D3DXVECTOR3 *GetScreenCoordFromWorld( IDirect3DDevice9 *pDevice, D3DXVECTOR3 &vScreenCoord, D3DXVECTOR3 vWorldLocation )
{
if( !pDevice ) return NULL;
pDevice->GetTransform( D3DTS_VIEW, &view );
pDevice->GetTransform( D3DTS_PROJECTION, &projection );
pDevice->GetTransform( D3DTS_WORLD, &world );
pDevice->GetViewport( &viewPort );
D3DXMatrixIdentity( &identity );
D3DXVec3Project( &vScreenCoord, &vWorldLocation, &viewPort, &projection, &view, &identity );
if(vScreenCoord.z < 1)
{
return &vScreenCoord;
}
return NULL;
}
float xMenu = 12;
float yMenu = 10;
bool Create;
bool IngameMessage = true;
HRESULT __stdcall xRebuildMenu()
{
Base->AddFolder(Decrypt_text (/*Settings*/ "`rv{t€"),OpenClose,&SETTINGSFOLDER,2);
if(SETTINGSFOLDER)
{
Base->AddItem(Decrypt_text (/*Anti Party Program*/ "N{v-]n†-]|tnz"),OnOff,&AntiPartyProgram,2);
Base->AddItem(Decrypt_text (/*Enable Bypass*/ "R{noyr-O†}n€€"),OnOff,&BypassX1,2);
Base->AddCategory(Decrypt_text (/*Change Menu Colors*/ "Pun{tr-Zr{‚-P|y|€"),OnOff,&ChangeMenuColors,2);
if(ChangeMenuColors)
{
Base->AddItem(Decrypt_text (/*BackGround Color*/ "OnpxT|‚{q-P|y|"),MColor,&MenuColor,5);
Base->AddItem(Decrypt_text (/*Box Color*/ "O|…-P|y|"),MColor,&BoxColor,5);
}
}
Base->AddFolder(Decrypt_text (/*D3D Hacks*/ "Q@Q-Unpx€"),OpenClose,&D3DFOLDER,2);
if(D3DFOLDER)
{
Base->AddItem(Decrypt_text (/*D3D Hook*/ "Q@Q-U||x"),OnOff, &nEnable,2);
Base->AddItem(Decrypt_text (/*Chams A*/ "Punz€-N"),Colors, &nColorA,10);
Base->AddItem(Decrypt_text (/*Chams B*/ "Punz€-O"),Colors, &nColorB,10);
Base->AddItem(Decrypt_text (/*WireFrame*/ "dvrSnzr"),OnOff,&WireFrame,2);
Base->AddItem(Decrypt_text (/*PointMode*/ "]|v{Z|qr"),OnOff,&PointMode,2);
Base->AddItem(Decrypt_text (/*WallHack*/ "dnyyUnpx"),OnOff, &x_WallHack,2);
Base->AddItem(Decrypt_text (/*WallColor*/ "dnyyP|y|"),WallColor1, &WallColor,4);
Base->AddItem(Decrypt_text (/*FullBright*/ "S‚yyOvtu"),OnOff, &x_FullBright,2);
Base->AddItem(Decrypt_text (/*CrossHair*/ "P|€€Unv"),Colors2, &nCross,10);
Base->AddItem(Decrypt_text (/*NoFog*/ "[|S|t"), OnOff, &x_NoFog,2);
Base->AddItem(Decrypt_text (/*GlassWalls*/ "Tyn€€dnyy€"),OnOff,&x_GlassWall,2);
}
Base->AddFolder(Decrypt_text (/*AimBot Hacks*/ "NvzO|-Unpx€"),OpenClose,&AIMBOTFOLDER,2);
if(AIMBOTFOLDER)
{
Base->AddItem(Decrypt_text (/*AimBot*/ "NvzO|"),OnOff,&AimBot,2);
Base->AddItem(Decrypt_text (/*AimKey*/ "NvzXr†"),CV_AIMKEY,&AimKey,4);
Base->AddItem(Decrypt_text (/*AimType*/ "Nvza†}r"),CV_AIMMODE,&AimType,3);
Base->AddItem(Decrypt_text (/*Enemy Only*/ "R{rz†-\{y†"),OnOff,&AimEnemy,2);
Base->AddItem(Decrypt_text (/*See Down*/ "`rr-Q|„{"),OnOff,&SeeDown,2);
}
Base->AddFolder(Decrypt_text (/*ESP/GPS Hacks*/ "R`]<T]`-Unpx€"),OpenClose,&ESPFOLDER,2);
if(ESPFOLDER)
{
Base->AddItem(Decrypt_text (/*ESP - Enable*/ "R`]-:-R{noyr"),OnOff,&EspOnOff,2);
Base->AddItem(Decrypt_text (/*ESP - Enemy Only*/ "R`]-:-R{rz†-\{y†"),OnOff,&EspEnemysOnly,2);
Base->AddItem(Decrypt_text (/*ESP - Name*/ "R`]-:-[nzr"),OnOff,&NameEsp,2);
Base->AddItem(Decrypt_text (/*ESP - Team*/ "R`]-:-arnz"),OnOff,&TeamEsp,2);
Base->AddItem(Decrypt_text (/*ESP - Premium*/ "R`]-:-]rzv‚z"),OnOff,&PremiumEsp,2);
Base->AddItem(Decrypt_text (/*ESP - Health*/ "R`]-:-Urnyu"),OnOff,&HealthEsp,2);
Base->AddItem(Decrypt_text (/*ESP - Ping*/ "R`]-:-]v{t"),OnOff,&PingEsp,2);
Base->AddItem(Decrypt_text (/*ESP - Flags*/ "R`]-:-Synt€"),OnOff,&FlagsEsp,2);
Base->AddItem(Decrypt_text (/*ESP - Kills*/ "R`]-:-Xvyy€"),OnOff,&KillsEsp,2);
Base->AddItem(Decrypt_text (/*ESP - Deaths*/ "R`]-:-Qrnu€"),OnOff,&DeathEsp,2);
Base->AddItem(Decrypt_text (/*ESP - Class*/ "R`]-:-Pyn€€"),OnOff,&ClassEsp,2);
}
Base->AddFolder(Decrypt_text (/*Player Hacks*/ "]yn†r-Unpx€"),OpenClose,&PLAYERFOLDER,2);
if(PLAYERFOLDER)
{
Base->AddItem(Decrypt_text (/*PlayerOPK*/ "]yn†r\]X"), OnOff, &PlayerOPK,2);
Base->AddItem(Decrypt_text (/*DeadSpinner*/ "Qrnq`}v{{r"), OnOff, &Deadspinner,2);
Base->AddItem(Decrypt_text (/*Quick Ladder Up*/ "^‚vpx-Ynqqr-b}"), OnOff, &QuickLadderUp,2);
Base->AddItem(Decrypt_text (/*Super Explosion*/ "`‚}r-R…}y|€v|{"), OnOff, &SuperExplosion,2);
Base->AddItem(Decrypt_text (/*Moon Jump*/ "Z||{-W‚z}"),OnOff,&MoonJump,2);
Base->AddItem(Decrypt_text (/*Super Jump*/ "`‚}r-W‚z}"), OnOff, &SuperJump,2);
Base->AddItem(Decrypt_text (/*No Fall Damage*/ "[|-Snyy-Qnzntr"), OnOff, &NFD,2);
Base->AddItem(Decrypt_text (/*Speed*/ "`}rrq"), setSpeed, &Speed,4);
Base->AddItem(Decrypt_text (/*Stamina*/ "`nzv{n"),OnOff,&Stamina,2);
Base->AddItem(Decrypt_text (/*NoBounds*/ "[|O|‚{q€"),OnOff,&NoBounds,2);
Base->AddItem(Decrypt_text (/*NoSpawnWait*/ "[|`}n„{dnv"),OnOff,&NoSpawnWait,2);
Base->AddItem(Decrypt_text (/*W.T.W.*/ "d;a;d;"),OnOff,&WTW,2);
Base->AddItem(Decrypt_text (/*W.T.H.*/ "d;a;U;"),OnOff,&WTH,2);
Base->AddItem(Decrypt_text (/*Self Kill*/ "`rys-Xvyy"),OnOff,&Selfkill,2);
Base->AddItem(Decrypt_text (/*Dig undermap*/ "Qvt-‚{qrzn}"),OnOff,&Dig,2);
Base->AddItem(Decrypt_text (/*LowGravity*/ "Y|„Tnƒv†"),OnOff,&LowGravity,2);
Base->AddItem(Decrypt_text (/*D3DPlayerView*/ "Q@Q]yn†rcvr„"),OnOff,&D3DPlayerView,2);
Base->AddItem(Decrypt_text (/*Auto Repair*/ "N‚|-_r}nv"),OnOff,&AutoRepair,2);
Base->AddItem(Decrypt_text (/*CQCProne*/ "P^P]|{r"),OnOff,&CQCProne,2);
Base->AddItem(Decrypt_text (/*Invisible*/ "V{ƒv€voyr"),OnOff,&Invisible,2);
}
Base->AddFolder(Decrypt_text (/*Weapon Hacks*/ "drn}|{-Unpx€"),OpenClose,&WEAPONFOLDER,2);
if(WEAPONFOLDER)
{
Base->AddItem(Decrypt_text (/*NoReload*/ "[|_ry|nq"), OnOff, &NoReload,2);
Base->AddItem(Decrypt_text (/*NoDelay*/ "[|Qryn†"), OnOff, &NoDelay,2);
Base->AddItem(Decrypt_text (/*NoRecoil*/ "[|_rp|vy"), OnOff, &NoRecoil,2);
Base->AddItem(Decrypt_text (/*SuperNoSpread*/ "`‚}r[|`}rnq"), OnOff, &SuperNoSpread,2);
Base->AddItem(Decrypt_text (/*NoSpread*/ "[|`}rnq"), OnOff, &NoSpread,2);
Base->AddItem(Decrypt_text (/*BoneShot*/ "O|{r`u|"), OnOff, &BoneShot,2);
Base->AddItem(Decrypt_text (/*BreakLimit*/ "OrnxYvzv"), OnOff, &BreakLimit,2);
Base->AddItem(Decrypt_text (/*Fast Lock On*/ "Sn€-Y|px-\{"), OnOff, &FastLockOn,2);
Base->AddItem(Decrypt_text (/*Fast Nade Blast*/ "Sn€-[nqr-Oyn€"), OnOff, &FastNadeBlast,2);
Base->AddItem(Decrypt_text (/*Crazy Nade*/ "Pn‡†-[nqr"),OnOff,&CrazyNade,2);
Base->AddItem(Decrypt_text (/*S.T.W.*/ "`;a;d;"),OnOff, &STW,2);
Base->AddItem(Decrypt_text (/*Unlimited Ammo*/ "b{yvzvrq-Nzz|"),OnOff,&UnlAmmo,2);
}
Base->AddFolder(Decrypt_text (/*Weapon Binder*/ "drn}|{-Ov{qr"),OpenClose,&WBINDERFOLDER,2);
if(WBINDERFOLDER)
{
Base->AddItem(Decrypt_text (/*Choose Class*/ "Pu||€r-Pyn€€"), pClass, &var[1], 6);
Base->AddItem(Decrypt_text (/*Slot 1*/ "`y|->"), WeaponArray, &var[2], 2003);
Base->AddItem(Decrypt_text (/*Slot 2*/ "`y|-?"), WeaponArray, &var[3], 2003);
Base->AddItem(Decrypt_text (/*Slot 3*/ "`y|-@"), WeaponArray, &var[4], 2003);
Base->AddItem(Decrypt_text (/*Slot 4*/ "`y|-A"), WeaponArray, &var[5], 2003);
Base->AddItem(Decrypt_text (/*Slot 5*/ "`y|-B"), WeaponArray, &var[6], 2003);
Base->AddItem(Decrypt_text (/*Slot 6*/ "`y|-C"), WeaponArray, &var[7], 2003);
Base->AddItem(Decrypt_text (/*Slot 7*/ "`y|-D"), WeaponArray, &var[8], 2003);
Base->AddItem(Decrypt_text (/*Slot 8*/ "`y|-E"), WeaponArray, &var[9], 2003);
}
Base->AddFolder(Decrypt_text (/*Server Hacks*/ "`rƒr-Unpx€"),OpenClose,&SERVERFOLDER,2);
if(SERVERFOLDER)
{
Base->AddItem(Decrypt_text (/*Enable 5. Slot*/ "R{noyr-B;-`y|"), OnOff, &SLOT5,2);
Base->AddItem(Decrypt_text (/*Enable 6. Slot*/ "R{noyr-C;-`y|"), OnOff, &SLOT6,2);
Base->AddItem(Decrypt_text (/*Enable 7. Slot*/ "R{noyr-D;-`y|"), OnOff, &SLOT7,2);
Base->AddItem(Decrypt_text (/*Enable 8. Slot*/ "R{noyr-E;-`y|"), OnOff, &SLOT8,2);
Base->AddItem(Decrypt_text (/*GM Warning*/ "TZ-dn{v{t"),setGM,&GMWarning,2);
}
Base->AddFolder(Decrypt_text (/*Zombie Hacks*/ "g|zovr-Unpx€"),OpenClose,&ZOMBIEFOLDER,2);
if(ZOMBIEFOLDER)
{
Base->AddItem(Decrypt_text (/*Zombie OPK*/ "g|zovr-\]X"),setZOPK, &ZombieOPK,2);
}
Base->AddFolder(Decrypt_text (/*User Hacks*/ "b€r-Unpx€"),OpenClose,&USERFOLDER,2);
if(USERFOLDER)
{
Base->AddCategory(Decrypt_text (/*Select User*/ "`ryrp-b€r"),setUser, &SelectUser,33);
if(SelectUser)
{
Base->AddItem(Decrypt_text (/*Kill User*/ "Xvyy-b€r"),OnOff, &KillUser,2);
Base->AddItem(Decrypt_text (/*Follow User*/ "S|yy|„-b€r"),OnOff, &FollowUser,2);
}
}
Base->AddFolder(Decrypt_text (/*Fast Hacks*/ "Sn€-Unpx€"),OpenClose,&FASTFOLDER,2);
if(FASTFOLDER)
{
Base->AddItem(Decrypt_text (/*Fast Ammo*/ "Sn€-Nzz|"), OnOff, &FastAmmo,2);
Base->AddItem(Decrypt_text (/*Fast Health*/ "Sn€-Urnyu"), OnOff, &FastHealth,2);
Base->AddItem(Decrypt_text (/*Fast Flag*/ "Sn€-Synt"), OnOff, &FastFlag,2);
Base->AddItem(Decrypt_text (/*Fast Repair*/ "Sn€-_r}nv"), OnOff, &FastRepair,2);
}
Base->AddFolder(Decrypt_text (/*Teleport Hacks*/ "aryr}|-Unpx€"),OpenClose,&TPFOLDER,2);
if(TPFOLDER)
{
Base->AddItem(Decrypt_text (/*Dotonbori A*/ "Q||{o|v-N"), F5, &DotonboriA,2);
Base->AddItem(Decrypt_text (/*Dotonbori B*/ "Q||{o|v-O"), F6, &DotonboriB,2);
Base->AddItem(Decrypt_text (/*Marien A*/ "Znvr{-N"), F5, &MarienA,2);
Base->AddItem(Decrypt_text (/*Marien B*/ "Znvr{-O"), F6, &MarienB,2);
Base->AddItem(Decrypt_text (/*Velruf A*/ "cry‚s-N"), F5, &VelrufA,2);
Base->AddItem(Decrypt_text (/*Velruf B*/ "cry‚s-O"), F6, &VelrufB,2);
Base->AddItem(Decrypt_text (/*Bloc A*/ "Oy|p-N"), F5, &BlocA,2);
Base->AddItem(Decrypt_text (/*Bloc B*/ "Oy|p-O"), F6, &BlocB,2);
Base->AddItem(Decrypt_text (/*Khali A*/ "Xunyv-N"), F5, &KhaliA,2);
Base->AddItem(Decrypt_text (/*Khali B*/ "Xunyv-O"), F6, &KhaliB,2);
Base->AddItem(Decrypt_text (/*Xauen A*/ "en‚r{-N"), F5, &XauenA,2);
Base->AddItem(Decrypt_text (/*Xauen B*/ "en‚r{-O"), F6, &XauenB,2);
Base->AddItem(Decrypt_text (/*Khyber A*/ "Xu†or-N"), F5, &KhyberA,2);
Base->AddItem(Decrypt_text (/*Khyber B*/ "Xu†or-O"), F6, &KhyberB,2);
Base->AddItem(Decrypt_text (/*Artifact A*/ "Nvsnp-N"), F5, &ArtifactA,2);
Base->AddItem(Decrypt_text (/*Artifact B*/ "Nvsnp-O"), F6, &ArtifactB,2);
Base->AddItem(Decrypt_text (/*Beringia A*/ "Orv{tvn-N"), F5, &BeringiaA,2);
Base->AddItem(Decrypt_text (/*Beringia B*/ "Orv{tvn-O"), F6, &BeringiaB,2);
Base->AddItem(Decrypt_text (/*Decay A*/ "Qrpn†-N"), F5, &DecayA,2);
Base->AddItem(Decrypt_text (/*Decay B*/ "Qrpn†-O"), F6, &DecayB,2);
}
Base->AddFolder(Decrypt_text (/*Bot Hacks*/ "O|-Unpx€"),OpenClose,&BOTFOLDER,2);
if(BOTFOLDER)
{
Base->AddItem(Decrypt_text (/*Auto Start / Ready*/ "N‚|-`n-<-_rnq†"),OnOff, &AutoStart,2);
Base->AddItem(Decrypt_text (/*Quick Plant*/ "^‚vpx-]yn{"),OnOff, &QuickPlant,2);
Base->AddItem(Decrypt_text (/*Quick Defuse*/ "^‚vpx-Qrs‚€r"), OnOff, &QuickDefuse,2);
Base->AddItem(Decrypt_text (/*Plant Any Where*/ "]yn{-N{†-durr"), OnOff, &PAD,2);
Base->AddItem(Decrypt_text (/*Defuse Any Where*/ "Qrs‚€r-N{†-durr"), OnOff, &DAW,2);
Base->AddItem(Decrypt_text (/*Auto Bomb*/ "N‚|-O|zo"), OnOff, &AutoBomb,2);
Base->AddItem(Decrypt_text (/*Auto Nipper*/ "N‚|-[v}}r"), OnOff, &AutoNipper,2);
Base->AddItem(Decrypt_text (/*Auto Plant*/ "N‚|-]yn{"),OnOff,&AutoPlant,2);
Base->AddItem(Decrypt_text (/*Auto Defuse*/ "N‚|-Qrs‚€r"),OnOff,&AutoDefuse,2);
Base->AddItem(Decrypt_text (/*Anti AFK Kick*/ "N{v-NSX-Xvpx"),OnOff, &AntiAFK,2);
}
return TRUE;
}
float fFps = NULL;
float fLastTickCount = NULL;
float fCurrentTickCount;
char cFrameRate[50] = {NULL};
int xTime5;
int xTime4;
int xTime3;
int xTime2;
int xTime1;
char *GetFrameRate()
{
fCurrentTickCount = clock() * 0.001f;
++fFps;
if((fCurrentTickCount - fLastTickCount) > 1.0f)
{
fLastTickCount = fCurrentTickCount;
sprintf( cFrameRate, "FPS: %d", int( fFps ) );
fFps = 0;
}
return cFrameRate;
} void D3D9Menu::Boarders(LPDIRECT3DDEVICE9 pDevice,ID3DXFont* _FontDevice, float x, float y)
{
DrawBox(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,GREY);
DrawRectangle(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,1,mBLACK);
if(MenuColor == 0){
DrawBox(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,GREY);}
if(BoxColor == 0){
DrawRectangle(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,1,mBLACK);}
if(MenuColor == 1){
DrawBox(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,BLUE2);}
if(BoxColor == 1){
DrawRectangle(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,1,BLUE);}
if(MenuColor == 2){
DrawBox(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,RED2);}
if(BoxColor == 2){
DrawRectangle(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,1,RED);}
if(MenuColor == 3){
DrawBox(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,CYAN2);}
if(BoxColor == 3){
DrawRectangle(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,1,CYAN);}
if(MenuColor == 4){
DrawBox(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,GREEN2);}
if(BoxColor == 4){
DrawRectangle(pDevice,4,10,Mxofs+25,Mmax*Mysize+40,1,GREEN);}
//if(xTime5 == 1){DrawTextC(999,800,RED,"Trial Version - [5] - Minutes Remaining",_FontDevice);}
/*if(xTime5 == 1){*/DrawTextC(999,800,RED,"Full Version - www.CyberCheatz.com",_FontDevice);/*}*/
if(xTime4 == 1){DrawTextC(999,800,RED,"Trial Version - [4] - Minutes Remaining",_FontDevice);}
if(xTime3 == 1){DrawTextC(999,800,RED,"Trial Version - [3] - Minutes Remaining",_FontDevice);}
if(xTime2 == 1){DrawTextC(999,800,RED,"Trial Version - [2] - Minutes Remaining",_FontDevice);}
if(xTime1 == 1){DrawTextC(999,800,RED,"Trial Version - [1] - Minute Remaining",_FontDevice);}
if(xTime5 == 0){DrawTextC(999,800,RED,"",_FontDevice);}
if(xTime4 == 0){DrawTextC(999,800,RED,"",_FontDevice);}
if(xTime3 == 0){DrawTextC(999,800,RED,"",_FontDevice);}
if(xTime2 == 0){DrawTextC(999,800,RED,"",_FontDevice);}
if(xTime1 == 0){DrawTextC(999,800,RED,"",_FontDevice);}
DrawTextL(x+4,Mmax*Mysize+35,WHITE,GetFrameRate(), _FontDevice);
DrawTextL(x+74,Mmax*Mysize+35,YELLOW,Decrypt_text (/*By TradEmArk*/ "O†-anqRzNx"),_FontDevice);
if(SelectUser){Boarders2(pDevice, _FontDevice);}
}
void D3D9Menu::Boarders2(LPDIRECT3DDEVICE9 pDevice,ID3DXFont* _FontDevice)
{
DrawBox(pDevice,200,10,170,55,GREY);
DrawRectangle(pDevice,200,10,170,55 ,1, mBLACK);
DrawTextC(285,10,RED,Decrypt_text (/*User Infos*/ "b€r-V{s|€"),_FontDevice);
DrawTextC(285,30,WHITE,UserNameMenu,_FontDevice);
DrawTextC(285,50,WHITE,UserIPMenu,_FontDevice);
}
void x_Player()
{
DWORD PTR_PLAYER = *(DWORD*)PTR_PLAYERPTR;
DWORD PTR_SERVER = *(DWORD*)PTR_SERVERPTR;
if(PTR_PLAYER != 0)
{
if(SuperNoSpread)
{
*(double*)MEM_SUPERNOSPREAD = 0;
}
else
{
*(double*)MEM_SUPERNOSPREAD = 5;
}
if ( AutoRepair )
{
if ( *(DWORD*)(PTR_PLAYER+PlayerAnimation) == *(DWORD*)(PlayerAnimationVehicle) )
{
*(BYTE*)(ADR_AUTOREPAIR) = 1;
*(FLOAT*)(ADR_FASTREPAIR) = 14;
}
}
if( SuperExplosion )
{
*(float*)(ADR_SuperExplosion) = 400.0f;
}
else
{
*(float*)(ADR_SuperExplosion) = 3.7e-1;
}
if(DotonboriA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 5745.638184;
*(float*)(PTR_PLAYER + OFS_Y) = 8136.030273;
*(float*)(PTR_PLAYER + OFS_Z) = 193.862152;
}
}
/////////////////////////////////////////////////////
if(DotonboriB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 4643.898926;
*(float*)(PTR_PLAYER + OFS_Y) = 5909.547852;
*(float*)(PTR_PLAYER + OFS_Z) = 204.022903;
}
}
/////////////////////////////////////////////////////
if(MarienA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 3653.894531;
*(float*)(PTR_PLAYER + OFS_Y) = 2495.826416;
*(float*)(PTR_PLAYER + OFS_Z) = 62.702488;
}
}
/////////////////////////////////////////////////////
if(MarienB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 2666.574219;
*(float*)(PTR_PLAYER + OFS_Y) = 3485.433105;
*(float*)(PTR_PLAYER + OFS_Z) = 62.702488;
}
}
/////////////////////////////////////////////////////
if(CadoroA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 1957.290161;
*(float*)(PTR_PLAYER + OFS_Y) = 2391.639648;
*(float*)(PTR_PLAYER + OFS_Z) = 262.748016;
}
}
/////////////////////////////////////////////////////
if(CadoroB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 2996.580566;
*(float*)(PTR_PLAYER + OFS_Y) = 3690.143066;
*(float*)(PTR_PLAYER + OFS_Z) = 280.124786;
}
}
/////////////////////////////////////////////////////
if(VelrufA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 2941.710938;
*(float*)(PTR_PLAYER + OFS_Y) = 4006.549561;
*(float*)(PTR_PLAYER + OFS_Z) = 177.879547;
}
}
/////////////////////////////////////////////////////
if(VelrufB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 2385.072510;
*(float*)(PTR_PLAYER + OFS_Y) = 3492.060791;
*(float*)(PTR_PLAYER + OFS_Z) = 200.987244;
}
}
/////////////////////////////////////////////////////
if(BlocA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 2855.690674;
*(float*)(PTR_PLAYER + OFS_Y) = 2596.960938;
*(float*)(PTR_PLAYER + OFS_Z) = 287.452393;
}
}
/////////////////////////////////////////////////////
if(BlocB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 2855.631836;
*(float*)(PTR_PLAYER + OFS_Y) = 2841.132568;
*(float*)(PTR_PLAYER + OFS_Z) = 622.006958;
}
}
/////////////////////////////////////////////////////
if(KhaliA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 3638.498291;
*(float*)(PTR_PLAYER + OFS_Y) = 4668.644531;
*(float*)(PTR_PLAYER + OFS_Z) = 942.701416;
}
}
/////////////////////////////////////////////////////
if(KhaliB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 4666.466309;
*(float*)(PTR_PLAYER + OFS_Y) = 4580.945313;
*(float*)(PTR_PLAYER + OFS_Z) = 913.796631;
}
}
/////////////////////////////////////////////////////
if(XauenA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 3542.612305;
*(float*)(PTR_PLAYER + OFS_Y) = 3514.294434;
*(float*)(PTR_PLAYER + OFS_Z) = 218.159256;
}
}
/////////////////////////////////////////////////////
if(XauenB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 4222.146973;
*(float*)(PTR_PLAYER + OFS_Y) = 4240.328125;
*(float*)(PTR_PLAYER + OFS_Z) = 201.859665;
}
}
/////////////////////////////////////////////////////
if(KhyberA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 3834.090088;
*(float*)(PTR_PLAYER + OFS_Y) = 2687.793457;
*(float*)(PTR_PLAYER + OFS_Z) = 36.671398;
}
}
/////////////////////////////////////////////////////
if(KhyberB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 4344.426758;
*(float*)(PTR_PLAYER + OFS_Y) = 3644.459229;
*(float*)(PTR_PLAYER + OFS_Z) = 117.970886;
}
}
/////////////////////////////////////////////////////
if(ArtifactA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 2976.223633;
*(float*)(PTR_PLAYER + OFS_Y) = 3182.355469;
*(float*)(PTR_PLAYER + OFS_Z) = -3.568463;
}
}
/////////////////////////////////////////////////////
if(ArtifactB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 2450.996338;
*(float*)(PTR_PLAYER + OFS_Y) = 3358.174072;
*(float*)(PTR_PLAYER + OFS_Z) = 128.944641;
}
}
/////////////////////////////////////////////////////
if(BeringiaA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 4065.145996;
*(float*)(PTR_PLAYER + OFS_Y) = 3789.231201;
*(float*)(PTR_PLAYER + OFS_Z) = 554.373230;
}
}
/////////////////////////////////////////////////////
if(BeringiaB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 3061.874756;
*(float*)(PTR_PLAYER + OFS_Y) = 3644.541504;
*(float*)(PTR_PLAYER + OFS_Z) = 410.848785;
}
}
/////////////////////////////////////////////////////
if(KaraqumA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 2410.851074;
*(float*)(PTR_PLAYER + OFS_Y) = 3254.205322;
*(float*)(PTR_PLAYER + OFS_Z) = 1434.785034;
}
}
/////////////////////////////////////////////////////
if(KaraqumB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 2956.465820;
*(float*)(PTR_PLAYER + OFS_Y) = 4352.144043;
*(float*)(PTR_PLAYER + OFS_Z) = 1481.444946;
}
}
/////////////////////////////////////////////////////
if(DecayA)
{
if (GetAsyncKeyState(VK_F5)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 2678.036865;
*(float*)(PTR_PLAYER + OFS_Y) = 3512.164551;
*(float*)(PTR_PLAYER + OFS_Z) = 6.123757;
}
}
/////////////////////////////////////////////////////
if(DecayB)
{
if (GetAsyncKeyState(VK_F6)&1)
{
*(float*)(PTR_PLAYER + OFS_X) = 3654.477051;
*(float*)(PTR_PLAYER + OFS_Y) = 2941.200195;
*(float*)(PTR_PLAYER + OFS_Z) = 129.354630;
}
}
/////////////////////////////////////////////////////
if( GMWarning == 1 )
{
char *gmname=(char *) (MEM_GMWARNING);
if (strlen(gmname)>2) {
char gmwarn[333];
sprintf(gmwarn, "Warning: %s » is in this Room.", MEM_GMWARNING);
}
}
if (g_pBase->pLocal)
{
if ( ZombieOPK ) /*Light House*/
{
for(int i = 4; i < 32; i++)
{
CPlayer* pPlayer = g_pBase->pGlobal[i];
pPlayer->PosX=3318.81;
pPlayer->PosY=16.93;
pPlayer->PosZ=3148.48;
}
}
}
if ( PlayerOPK )
{
if (PTR_PLAYER != 0 && PTR_SERVER != 0)
for(int i = 0; i < 32; i++)
{
*(float*)(PTR_PLAYER + OFS_X) =0 ;
*(float*)(PTR_PLAYER+ OFS_Y) =0 ;
*(float*)ADR_NOBOUNDS1 = 0;
*(float*)ADR_NOBOUNDS2 = 0;
*(float*)ADR_NOBOUNDS3 = 0;
*(int*)(PTR_PLAYER + OFS_NFD) = -99999999;
CPlayer* pPlayerA = p_Player->pGlobal[i];
pPlayerA->PosX=0;
pPlayerA->PosY=0;
pPlayerA->PosZ=0;
}
}
if( NoRecoil )
{
if(PTR_PLAYER != 0)
{
*(float*)(PTR_PLAYER + OFS_NORECOIL1) = 0;
*(float*)(PTR_PLAYER + OFS_NORECOIL2) = 0;
*(float*)(PTR_PLAYER + OFS_NORECOIL3) = 0;
}
}
if( NoSpread )
{
*(float*)(PTR_PLAYER+OFS_NOSPREAD) = 1;
}
else
{
*(float*)(PTR_PLAYER+OFS_NOSPREAD) = 0;
}
if ( NoReload )
{
if ( *(INT*)(PTR_PLAYER+OFS_WEAPONSTATE) == *(INT*)(ADR_WEAPONSTATERELOAD) )
{
*(FLOAT*)(PTR_PLAYER+OFS_NORELOAD) = 1.0F;
}
}
if ( NoDelay )
{
if(GetAsyncKeyState(VK_LBUTTON))
{
*(DWORD*)(PTR_PLAYER+OFS_NODELAY) = -1;
}
}
if ( Deadspinner )
{
*(float*)(MEM_DEADSPINNER) = 400.0f;
}
else
{
*(float*)(MEM_DEADSPINNER) = 2.0e-2;
}
if ( QuickLadderUp )
{
*(double*)(ADR_LADDERQUICKLY) = 300;
}
else
{
*(double*)(ADR_LADDERQUICKLY) = 40;
}
if( NFD )
{
*(int*)(PTR_PLAYER + OFS_NFD) = -99999999;
}
if ( SuperJump )
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
if(PTR_PLAYER != 0)
{
*(float*)(PTR_PLAYER+OFS_Z) +=175;
}
}
}
if( NoBounds )
{
*(float*)ADR_NOBOUNDS1 = 0;
*(float*)ADR_NOBOUNDS2 = 0;
*(float*)ADR_NOBOUNDS3 = 0;
}
if( NoSpawnWait )
{
*(float*)ADR_NOSPAWNWAIT1 = 0;
*(float*)ADR_NOSPAWNWAIT2 = 0;
}
if( Stamina )
{
*(float*)ADR_STAMINA1=1000;
*(float*)ADR_STAMINA2=0;
*(float*)ADR_STAMINA3=0;
*(float*)ADR_STAMINA4=0;
*(float*)ADR_STAMINA5=1000;
}
if( WTW )
{
*(float*)(MEM_WTW) = -999;
}
else
{
*(float*)(MEM_WTW) = 6;
}
if( GlassWalls )
{
*(int*)ADR_GLASSWALLS = 4;
}
else
{
*(int*)ADR_GLASSWALLS = 0;
}
if( BoneShot )
{
if(IsShooting())
{
*(double*)(MEM_BONESHOT) = 1235;
}
else
{
*(double*)(MEM_BONESHOT) = 1.237e3;
}
}
if( STW )
{
if(IsShooting())
{
*(float*)(MEM_STW) = 999;
}
else
{
*(float*)(MEM_STW) = 6;
}
}
if( WTH )
{
if(IsShooting())
{
*(float*)(ADR_WTH) = 10;
}
else
{
*(float*)(ADR_WTH) = 0.1;
}
}
if( AntiAFK )
{
*(float*)(ADR_ANTIAFK)=1;
}
bool bChangedValue = true;
int oldValue;
if( CQCProne )
{
int *pProne = (int *)ADR_CQCPRONE;
if( GetAsyncKeyState('C')&1 )
{
if( bChangedValue )
{
oldValue = *pProne;
bChangedValue = false;
}
*pProne = 3;
}
else{if( !bChangedValue )
{
*pProne = oldValue;
bChangedValue = true;
}
}
}
if( UnlAmmo )
{
if(IsShooting())
{
UnlAmmoP.Patch();
}
else
{
UnlAmmoP.Restore();
}
}
if( FastLockOn )
{
*(int*) ADR_FASTLOCKON = 1;
}
if( LowGravity )
{
if(PTR_PLAYER != 0)
{
*(float*)(PTR_PLAYER+OFS_LOWGRAVITY) = 100.0f;
}
}
if( Dig )
{
if (GetAsyncKeyState(VK_MENU))
{
*(float*)(PTR_PLAYER+OFS_Z) = -2000;
}
}
if( Selfkill )
{
*(int*)(PTR_PLAYER+OFS_NFD) +=999999;
}
switch( Speed )
{
case 0:*(double*)ADR_SPEED = 97;break;
case 1:*(double*)ADR_SPEED = 145.0f;break;
case 2:*(double*)ADR_SPEED = 350.0f;break;
case 3:*(double*)ADR_SPEED..