Advertisement
Guest User

Untitled

a guest
Sep 18th, 2018
2,905
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 90.16 KB | None | 0 0
  1. //hai sal luati coduri na sal
  2.  
  3. #include <windows.h>
  4. #include <d3d9.h>
  5. #include "imgui.h"
  6. #include "imgui_impl_dx9.h"
  7. #include "vtable.h"
  8. #include "main.h"
  9. #include <math.h>
  10. #include <ymath.h>
  11. #include <d3dx9.h>
  12. #pragma comment(lib, "d3d9.lib")
  13. #pragma comment(lib, "d3dx9.lib")
  14.  
  15.  
  16. #define sleep Sleep
  17. #define D3D_VFUNCTIONS 119
  18. #define DEVICE_PTR 0xC97C28
  19. #define ENDSCENE_INDEX 42
  20. #define RESET_INDEX 16
  21.  
  22. #define SAMP_INFO 0x21A0F8
  23. #define SAMP_SETTINGS 0x3C5
  24. #define SAMP_FUNC_SAY 0x57F0
  25. #define SAMP_FUNC_SENDCMD 0x65C60
  26. #define M_PI 3.14159265358979323846
  27. #define PILOT_ADDR 0x96914C
  28.  
  29. #define Ryon 1076115084
  30. #define Over 1254581962
  31. #define Narda 1946938678
  32. #define Medik 1551226685
  33. #define Andy -626896906
  34. #define mlg 437135449
  35. #define kegan -189440424
  36. #define kz 951980208
  37. #define dumi -558884738
  38. #define razvan 115159147
  39. #define theweek -2043349170
  40. #define benq 1912777623
  41.  
  42.  
  43.  
  44. #define DEFCOLOR_SRC(name, r, g, b) \
  45. static Color name## (uint8_t a = 240){ return Color (r, g, b, a); }
  46.  
  47. bool rainbowmenu = false;
  48. bool RainbowRadar = false;
  49. bool RainbowHeadLights = false;
  50. bool slapper = false;
  51. bool no_bike_fall = false;
  52.  
  53. class Color {
  54. public:
  55.  
  56. Color() {
  57. SetColor(0, 0, 0, 255);
  58. }
  59.  
  60. Color(uint8_t r, uint8_t g, uint8_t b) {
  61. SetColor(r, g, b, 255);
  62. }
  63.  
  64. Color(uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
  65. SetColor(r, g, b, a);
  66. }
  67.  
  68. void SetColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255) {
  69. _color[0] = (uint8_t)r;
  70. _color[1] = (uint8_t)g;
  71. _color[2] = (uint8_t)b;
  72. _color[3] = (uint8_t)a;
  73. }
  74.  
  75. void GetColor(uint8_t &r, uint8_t &g, uint8_t &b, uint8_t &a) const {
  76. r = _color[0];
  77. g = _color[1];
  78. b = _color[2];
  79. a = _color[3];
  80. }
  81.  
  82. uint8_t &operator[](int index) {
  83. return _color[index];
  84. }
  85.  
  86. const uint8_t &operator[](int index) const {
  87. return _color[index];
  88. }
  89.  
  90. bool operator == (const Color &rhs) const {
  91. return (*((int *)this) == *((int *)&rhs));
  92. }
  93.  
  94. bool operator != (const Color &rhs) const {
  95. return !(operator==(rhs));
  96. }
  97.  
  98. int r() { return _color[0]; }
  99. int g() { return _color[1]; }
  100. int b() { return _color[2]; }
  101. int a() { return _color[3]; }
  102.  
  103. int GetR() { return _color[0]; }
  104. int GetG() { return _color[1]; }
  105. int GetB() { return _color[2]; }
  106. int GetA() { return _color[3]; }
  107.  
  108. void SetR(uint8_t _i) { _color[0] = _i; }
  109. void SetG(uint8_t _i) { _color[1] = _i; }
  110. void SetB(uint8_t _i) { _color[2] = _i; }
  111. void SetA(uint8_t _i) { _color[3] = _i; }
  112.  
  113. Color &operator=(const Color &rhs) {
  114. *(int*)(&_color[0]) = *(int*)&rhs._color[0];
  115. return *this;
  116. }
  117.  
  118. Color operator+(const Color &rhs) const {
  119. int red = _color[0] + rhs._color[0];
  120. int green = _color[1] + rhs._color[1];
  121. int blue = _color[2] + rhs._color[2];
  122. int alpha = _color[3] + rhs._color[3];
  123.  
  124. red = red > 255 ? 255 : red;
  125. green = green > 255 ? 255 : green;
  126. blue = blue > 255 ? 255 : blue;
  127. alpha = alpha > 255 ? 255 : alpha;
  128.  
  129. return Color(red, green, blue, alpha);
  130. }
  131.  
  132. Color operator-(const Color &rhs) const {
  133. int red = _color[0] - rhs._color[0];
  134. int green = _color[1] - rhs._color[1];
  135. int blue = _color[2] - rhs._color[2];
  136. int alpha = _color[3] - rhs._color[3];
  137. red = red < 0 ? 0 : red;
  138. green = green < 0 ? 0 : green;
  139. blue = blue < 0 ? 0 : blue;
  140. alpha = alpha < 0 ? 0 : alpha;
  141. return Color(red, green, blue, alpha);
  142. }
  143.  
  144. operator const uint8_t*() {
  145. return (uint8_t*)(&_color[0]);
  146. }
  147.  
  148. static Color FromHSB(float hue, float saturation, float brightness)
  149. {
  150. float h = hue == 1.0f ? 0 : hue * 6.0f;
  151. float f = h - (int)h;
  152. float p = brightness * (1.0f - saturation);
  153. float q = brightness * (1.0f - saturation * f);
  154. float t = brightness * (1.0f - (saturation * (1.0f - f)));
  155.  
  156. if (h < 1)
  157. {
  158. return Color(
  159. (unsigned char)(brightness * 255),
  160. (unsigned char)(t * 255),
  161. (unsigned char)(p * 255)
  162. );
  163. }
  164. else if (h < 2)
  165. {
  166. return Color(
  167. (unsigned char)(q * 255),
  168. (unsigned char)(brightness * 255),
  169. (unsigned char)(p * 255)
  170. );
  171. }
  172. else if (h < 3)
  173. {
  174. return Color(
  175. (unsigned char)(p * 255),
  176. (unsigned char)(brightness * 255),
  177. (unsigned char)(t * 255)
  178. );
  179. }
  180. else if (h < 4)
  181. {
  182. return Color(
  183. (unsigned char)(p * 255),
  184. (unsigned char)(q * 255),
  185. (unsigned char)(brightness * 255)
  186. );
  187. }
  188. else if (h < 5)
  189. {
  190. return Color(
  191. (unsigned char)(t * 255),
  192. (unsigned char)(p * 255),
  193. (unsigned char)(brightness * 255)
  194. );
  195. }
  196. else
  197. {
  198. return Color(
  199. (unsigned char)(brightness * 255),
  200. (unsigned char)(p * 255),
  201. (unsigned char)(q * 255)
  202. );
  203. }
  204. }
  205.  
  206. ImU32 GetU32()
  207. {
  208. return ((_color[3] & 0xff) << 24) + ((_color[2] & 0xff) << 16) + ((_color[1] & 0xff) << 8)
  209. + (_color[0] & 0xff);
  210. //return (ImU32)(((_color[3] & 0xff) << 24) + ((_color[0] & 0xff) << 16) + ((_color[1] & 0xff) << 8) + (_color[2] & 0xff));
  211. }
  212.  
  213. DEFCOLOR_SRC(Black, 0, 0, 0);
  214. DEFCOLOR_SRC(White, 255, 255, 255);
  215. DEFCOLOR_SRC(Red, 255, 0, 0);
  216. DEFCOLOR_SRC(Green, 0, 255, 0);
  217. DEFCOLOR_SRC(Blue, 0, 0, 255);
  218. DEFCOLOR_SRC(Lime, 0, 255, 0);
  219. DEFCOLOR_SRC(Yellow, 255, 255, 0);
  220. DEFCOLOR_SRC(Cyan, 0, 255, 255);
  221. DEFCOLOR_SRC(Magenta, 255, 0, 255);
  222. DEFCOLOR_SRC(Silver, 192, 192, 192);
  223. DEFCOLOR_SRC(Gray, 128, 128, 128);
  224. DEFCOLOR_SRC(Maroon, 128, 0, 0);
  225. DEFCOLOR_SRC(Olive, 128, 128, 0);
  226. DEFCOLOR_SRC(Purple, 128, 0, 128);
  227. DEFCOLOR_SRC(Teal, 0, 128, 128);
  228. DEFCOLOR_SRC(Navy, 0, 0, 128);
  229. DEFCOLOR_SRC(DarkRed, 139, 0, 0);
  230. DEFCOLOR_SRC(Brown, 165, 42, 42);
  231. DEFCOLOR_SRC(Firebrick, 178, 34, 34);
  232. DEFCOLOR_SRC(Crimson, 220, 20, 60);
  233. DEFCOLOR_SRC(IndianRed, 205, 92, 92);
  234. DEFCOLOR_SRC(LightCoral, 240, 128, 128);
  235. DEFCOLOR_SRC(DarkSalmon, 233, 150, 122);
  236. DEFCOLOR_SRC(Salmon, 250, 128, 114);
  237. DEFCOLOR_SRC(LightSalmon, 255, 160, 122);
  238. DEFCOLOR_SRC(OrangeRed, 255, 69, 0);
  239. DEFCOLOR_SRC(DarkOrange, 255, 140, 0);
  240. DEFCOLOR_SRC(Orange, 255, 165, 0);
  241. DEFCOLOR_SRC(Gold, 255, 215, 0);
  242. DEFCOLOR_SRC(DarkGoldenRod, 184, 134, 11);
  243. DEFCOLOR_SRC(GoldenRod, 218, 165, 32);
  244. DEFCOLOR_SRC(YellowGreen, 154, 205, 50);
  245. DEFCOLOR_SRC(DarkOliveGreen, 85, 107, 47);
  246. DEFCOLOR_SRC(OliveDrab, 107, 142, 35);
  247. DEFCOLOR_SRC(LawnGreen, 124, 252, 0);
  248. DEFCOLOR_SRC(ChartReuse, 127, 255, 0);
  249. DEFCOLOR_SRC(GreenYellow, 173, 255, 47);
  250. DEFCOLOR_SRC(DarkGreen, 0, 100, 0);
  251. DEFCOLOR_SRC(ForestGreen, 34, 139, 34);
  252. DEFCOLOR_SRC(LimeGreen, 50, 205, 50);
  253. DEFCOLOR_SRC(DarkCyan, 0, 139, 139);
  254. DEFCOLOR_SRC(Aqua, 0, 255, 255);
  255. DEFCOLOR_SRC(LightCyan, 224, 255, 255);
  256. DEFCOLOR_SRC(DarkTurquoise, 0, 206, 209);
  257. DEFCOLOR_SRC(Turquoise, 64, 224, 208);
  258. DEFCOLOR_SRC(MediumTurquoise, 72, 209, 204);
  259. DEFCOLOR_SRC(PaleTurquoise, 175, 238, 238);
  260. DEFCOLOR_SRC(Aquamarine, 127, 255, 212);
  261. DEFCOLOR_SRC(PowderBlue, 176, 224, 230);
  262. DEFCOLOR_SRC(DodgerBlue, 30, 144, 255);
  263. DEFCOLOR_SRC(Lightblue, 173, 216, 230);
  264. DEFCOLOR_SRC(SkyBlue, 135, 206, 235);
  265. DEFCOLOR_SRC(LightSkyBlue, 135, 206, 250);
  266. DEFCOLOR_SRC(MidnightBlue, 25, 25, 112);
  267. DEFCOLOR_SRC(DarkBlue, 0, 0, 139);
  268. DEFCOLOR_SRC(MediumBlue, 0, 0, 205);
  269. DEFCOLOR_SRC(RoyalBlue, 65, 105, 225);
  270. DEFCOLOR_SRC(BlueViolet, 138, 43, 226);
  271. DEFCOLOR_SRC(Indigo, 75, 0, 130);
  272. DEFCOLOR_SRC(DarkSlateBlue, 72, 61, 139);
  273. DEFCOLOR_SRC(SlateBlue, 106, 90, 205);
  274. DEFCOLOR_SRC(MediumSlateBlue, 123, 104, 238);
  275. DEFCOLOR_SRC(MediumPurple, 147, 112, 219);
  276. DEFCOLOR_SRC(Darkmagenta, 139, 0, 139);
  277. DEFCOLOR_SRC(Darkviolet, 148, 0, 211);
  278. DEFCOLOR_SRC(DarkGray, 169, 169, 169);
  279. DEFCOLOR_SRC(LightGray, 211, 211, 211);
  280. DEFCOLOR_SRC(Gainsboro, 220, 220, 220);
  281. DEFCOLOR_SRC(LtBlue, 0, 150, 255);
  282. DEFCOLOR_SRC(LtGreen, 0, 255, 100);
  283. private:
  284. uint8_t _color[4];
  285. };
  286. struct Color2
  287. {
  288. int r;
  289. int g;
  290. int b;
  291. int a;
  292.  
  293. Color2()
  294. {
  295. this->r = 0;
  296. this->g = 0;
  297. this->b = 0;
  298. this->a = 255;
  299. }
  300.  
  301. Color2(int r, int g, int b)
  302. {
  303. this->r = r;
  304. this->g = g;
  305. this->b = b;
  306. this->a = 255;
  307. }
  308.  
  309. Color2(int r, int g, int b, int a)
  310. {
  311. this->r = r;
  312. this->g = g;
  313. this->b = b;
  314. this->a = a;
  315. }
  316.  
  317. Color2 operator / (float div)
  318. {
  319. Color2 color = *this;
  320. color.r = color.r / div;
  321. color.g = color.g / div;
  322. color.b = color.b / div;
  323. return color;
  324. }
  325.  
  326. Color2& operator /= (float div)
  327. {
  328. Color2& color = *this;
  329. color.r /= div;
  330. color.g /= div;
  331. color.b /= div;
  332. return color;
  333. }
  334.  
  335. Color2& operator *= (float coeff)
  336. {
  337. Color2& color = *this;
  338. color.r *= coeff;
  339. color.g *= coeff;
  340. color.b *= coeff;
  341. return color;
  342. }
  343.  
  344. static Color2 FromHSB(float hue, float saturation, float brightness)
  345. {
  346. float h = hue == 1.0f ? 0 : hue * 6.0f;
  347. float f = h - (int)h;
  348. float p = brightness * (1.0f - saturation);
  349. float q = brightness * (1.0f - saturation * f);
  350. float t = brightness * (1.0f - (saturation * (1.0f - f)));
  351.  
  352. if (h < 1)
  353. {
  354. return Color2(
  355. (unsigned char)(brightness * 255),
  356. (unsigned char)(t * 255),
  357. (unsigned char)(p * 255)
  358. );
  359. }
  360. else if (h < 2)
  361. {
  362. return Color2(
  363. (unsigned char)(q * 255),
  364. (unsigned char)(brightness * 255),
  365. (unsigned char)(p * 255)
  366. );
  367. }
  368. else if (h < 3)
  369. {
  370. return Color2(
  371. (unsigned char)(p * 255),
  372. (unsigned char)(brightness * 255),
  373. (unsigned char)(t * 255)
  374. );
  375. }
  376. else if (h < 4)
  377. {
  378. return Color2(
  379. (unsigned char)(p * 255),
  380. (unsigned char)(q * 255),
  381. (unsigned char)(brightness * 255)
  382. );
  383. }
  384. else if (h < 5)
  385. {
  386. return Color2(
  387. (unsigned char)(t * 255),
  388. (unsigned char)(p * 255),
  389. (unsigned char)(brightness * 255)
  390. );
  391. }
  392. else
  393. {
  394. return Color2(
  395. (unsigned char)(brightness * 255),
  396. (unsigned char)(p * 255),
  397. (unsigned char)(q * 255)
  398. );
  399. }
  400. }
  401.  
  402. static Color2 FromImColor(ImColor color)
  403. {
  404. return Color2(
  405. (int)(color.Value.x * 255),
  406. (int)(color.Value.y * 255),
  407. (int)(color.Value.z * 255),
  408. (int)(color.Value.w * 255)
  409. );
  410. }
  411.  
  412.  
  413. static ImColor ToImColor(Color2 color)
  414. {
  415. return ImColor(
  416. color.r / 255.f,
  417. color.g / 255.f,
  418. color.b / 255.f,
  419. color.a / 255.f
  420. );
  421. }
  422.  
  423. };
  424.  
  425. extern HINSTANCE hAppInstance;
  426.  
  427. UCHAR szFileSys[255], szVolNameBuff[255];
  428. DWORD dwMFL, dwSysFlags;
  429. DWORD dwSerial;
  430. LPCTSTR szHD = "C:\\";
  431.  
  432. HINSTANCE HThisModule;
  433. bool DoUnload;
  434.  
  435.  
  436. typedef HRESULT(__stdcall* _EndScene)(IDirect3DDevice9* pDevice);
  437. _EndScene oEndScene;
  438.  
  439. typedef long(__stdcall* _Reset)(IDirect3DDevice9* pDevice, D3DPRESENT_PARAMETERS* pp);
  440. _Reset oReset = nullptr;
  441.  
  442. const char stunanims[12][15]
  443. {
  444. "DAM_armL_frmBK",
  445. "DAM_armL_frmFT",
  446. "DAM_armL_frmLT",
  447. "DAM_armR_frmBK",
  448. "DAM_armR_frmFT",
  449. "DAM_armR_frmRT",
  450. "DAM_LegL_frmBK",
  451. "DAM_LegL_frmFT",
  452. "DAM_LegL_frmLT",
  453. "DAM_LegR_frmBK",
  454. "DAM_LegR_frmFT",
  455. "DAM_LegR_frmRT"
  456. };
  457. const char stunanims2[4][18]
  458. {
  459. "DAM_stomach_frmBK",
  460. "DAM_stomach_frmFT",
  461. "DAM_stomach_frmLT",
  462. "DAM_stomach_frmRT"
  463. };
  464.  
  465. bool bAntiStun = false;
  466. bool tintarainbow = false;
  467. bool fake_ping = false;
  468. bool InvertWalk = false;
  469. bool bAntiStunned = false;
  470. bool antiaim = false;
  471. bool pilot = false;
  472.  
  473.  
  474. bool atentat1 = false;//e c mortii lui de c++
  475. bool tick_done;
  476. bool bEditFootSync;
  477. DWORD tick;
  478. float fWeaponDamage[55] =
  479. {
  480. 82.5, // 0 - Fist
  481. 1.0, // 1 - Brass knuckles
  482. 1.0, // 2 - Golf club
  483. 1.0, // 3 - Nitestick
  484. 1.0, // 4 - Knife
  485. 1.0, // 5 - Bat
  486. 1.0, // 6 - Shovel
  487. 1.0, // 7 - Pool cue
  488. 1.0, // 8 - Katana
  489. 1.0, // 9 - Chainsaw
  490. 1.0, // 10 - Dildo
  491. 1.0, // 11 - Dildo 2
  492. 1.0, // 12 - Vibrator
  493. 1.0, // 13 - Vibrator 2
  494. 1.0, // 14 - Flowers
  495. 1.0, // 15 - Cane
  496. 82.5, // 16 - Grenade
  497. 0.0, // 17 - Teargas
  498. 1.0, // 18 - Molotov
  499. 9.9, // 19 - Vehicle M4 (custom)
  500. 46.2, // 20 - Vehicle minigun (custom)
  501. 0.0, // 21
  502. 8.25, // 22 - Colt 45
  503. 13.2, // 23 - Silenced
  504. 46.2, // 24 - Deagle
  505. 49.5,//3.3, // 25 - Shotgun
  506. 49.5,//3.3, // 26 - Sawed-off
  507. 39.6,//4.95, // 27 - Spas
  508. 6.6, // 28 - UZI
  509. 8.25, // 29 - MP5
  510. 9.900001, // 30 - AK47
  511. 9.900001, // 31 - M4
  512. 6.6, // 32 - Tec9
  513. 24.750001, // 33 - Cuntgun
  514. 41.25, // 34 - Sniper
  515. 82.5, // 35 - Rocket launcher
  516. 82.5, // 36 - Heatseeker
  517. 1.0, // 37 - Flamethrower
  518. 46.2, // 38 - Minigun
  519. 82.5, // 39 - Satchel
  520. 0.0, // 40 - Detonator
  521. 0.33, // 41 - Spraycan
  522. 0.33, // 42 - Fire extinguisher
  523. 0.0, // 43 - Camera
  524. 0.0, // 44 - Night vision
  525. 0.0, // 45 - Infrared
  526. 0.0, // 46 - Parachute
  527. 0.0, // 47 - Fake pistol
  528. 2.64, // 48 - Pistol whip (custom)
  529. 9.9, // 49 - Vehicle
  530. 330.0, // 50 - Helicopter blades
  531. 82.5, // 51 - Explosion
  532. 1.0, // 52 - Car park (custom)
  533. 1.0, // 53 - Drowning
  534. 165.0 // 54 - Splat
  535. };
  536. bool OnSendPacket(BitStream *parameters, PacketPriority priority, PacketReliability reliability, char orderingChannel)
  537. {
  538. uint8_t packetId;
  539. stOnFootData OnFootData;
  540. parameters->ResetReadPointer();
  541. parameters->Read(packetId);
  542. parameters->Read((char *)&OnFootData, sizeof(stOnFootData));
  543. switch (packetId)
  544. {
  545. case ID_PLAYER_SYNC:
  546.  
  547. if (antiaim)
  548. {
  549. bEditFootSync = true;
  550. //stOnFootData OnFootData;
  551. //memcpy(&OnFootData, &g_Players->pLocalPlayer->onFootData, sizeof(stOnFootData));
  552. OnFootData.byteSpecialAction = 3;
  553. //parameters->Reset();
  554. //parameters->Write((BYTE)ID_PLAYER_SYNC);
  555. //parameters->Write((PCHAR)&OnFootData, sizeof(stOnFootData));
  556. //g_RakFuncs->Send(parameters, HIGH_PRIORITY, UNRELIABLE_SEQUENCED, 0);
  557. }
  558. if (InvertWalk)
  559. {
  560. bEditFootSync = true;
  561.  
  562. D3DXQUATERNION Quat, Quat2;
  563. Quat.w = OnFootData.fQuaternion[0];
  564. Quat.x = OnFootData.fQuaternion[1];
  565. Quat.y = OnFootData.fQuaternion[2];
  566. Quat.z = OnFootData.fQuaternion[3];
  567. //
  568. D3DXVECTOR3 Axis;
  569. Axis.x = 0;
  570. Axis.y = 1;
  571. Axis.z = 0;
  572. D3DXQuaternionRotationAxis(&Quat2, &Axis, M_PI);
  573. D3DXQuaternionMultiply(&Quat, &Quat, &Quat2);
  574. OnFootData.fQuaternion[0] = Quat.w;
  575. OnFootData.fQuaternion[1] = Quat.x;
  576. OnFootData.fQuaternion[2] = Quat.y;
  577. OnFootData.fQuaternion[3] = Quat.z;
  578.  
  579. }
  580. if (bEditFootSync)
  581. {
  582. parameters->Reset();
  583. parameters->Write((BYTE)ID_PLAYER_SYNC);
  584. parameters->Write((PCHAR)&OnFootData, sizeof(stOnFootData));
  585. pSAMP->sendPacket(parameters);
  586. bEditFootSync = false;
  587. }
  588. if (atentat1)
  589. {
  590.  
  591. if (!tick_done)
  592. {
  593. tick = GetTickCount64();
  594. tick_done = true;
  595. }
  596. if (GetTickCount64() - tick > 700)
  597. {
  598. static int current_tick = 1;
  599.  
  600. stBulletData BulletData;
  601. parameters->ResetReadPointer();
  602. parameters->Read(packetId);
  603. parameters->Read((PCHAR)&BulletData, sizeof(stBulletData));
  604.  
  605. int weaponid = pSAMP->getPlayers()->pLocalPlayer->byteCurrentWeapon;
  606.  
  607. for (int i = 0; i < SAMP_MAX_PLAYERS; i++)
  608. {
  609. if (pSAMP->getPlayers()->pRemotePlayer[i] == nullptr)
  610. continue;
  611. if (pSAMP->getPlayers()->pRemotePlayer[i]->pPlayerData == nullptr)
  612. continue;
  613. if (!pSAMP->getPlayers()->pRemotePlayer[i]->pPlayerData->fActorHealth)
  614. continue;
  615. float damage_t = pSAMP->getPlayers()->pRemotePlayer[i]->pPlayerData->fActorHealth / fWeaponDamage[pSAMP->getPlayers()->pLocalPlayer->byteCurrentWeapon];
  616.  
  617.  
  618. for (int z = 0; z < round(damage_t) + 1; z++)
  619. {
  620. BulletData.byteType = 1;
  621. BulletData.fOrigin[0] = pSAMP->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[0];
  622. BulletData.fOrigin[1] = pSAMP->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[1];
  623. BulletData.fOrigin[2] = pSAMP->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[2];
  624.  
  625. BulletData.fTarget[0] = pSAMP->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[0];
  626. BulletData.fTarget[1] = pSAMP->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[1];
  627. BulletData.fTarget[2] = pSAMP->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[2];
  628.  
  629. if (pSAMP->getPlayers()->pRemotePlayer[i]->pPlayerData->bytePlayerState == PLAYER_STATE_ONFOOT)
  630. {
  631. BulletData.fCenter[0] = (1.0f / 2) - ((rand() % (int)(1.0f * 10.0f) / 100.0f));
  632. BulletData.fCenter[1] = (1.0f / 2) - ((rand() % (int)(1.0f * 10.0f) / 100.0f));
  633. BulletData.fCenter[2] = 0.50f - ((rand() % 100) / 100.0f);
  634. }
  635.  
  636. else
  637. {
  638. BulletData.fCenter[0] = 0.0f;
  639. BulletData.fCenter[1] = 0.0f;
  640. BulletData.fCenter[2] = 0.56f - ((rand() % 5) / 100.0f);
  641. }
  642. BulletData.sTargetID = i;
  643. BulletData.byteWeaponID = weaponid;
  644. BitStream bsGiveDamage;
  645. bsGiveDamage.Write(false);
  646. bsGiveDamage.Write((USHORT)i);
  647. bsGiveDamage.Write((float)fWeaponDamage[weaponid]);
  648. bsGiveDamage.Write((int)weaponid);
  649. bsGiveDamage.Write((rand() % 7) + 3);
  650. pSAMP->sendRPC(RPC_GiveTakeDamage, &bsGiveDamage, HIGH_PRIORITY, RELIABLE_SEQUENCED, NULL, false);
  651.  
  652.  
  653. parameters->Reset();
  654. parameters->Write((BYTE)ID_BULLET_SYNC);
  655. parameters->Write((PCHAR)&BulletData, sizeof(stBulletData));
  656. pSAMP->sendPacket(parameters);
  657. }
  658.  
  659.  
  660. }
  661.  
  662. tick = 0;
  663. tick_done = false;
  664. }
  665. }
  666.  
  667. }
  668. return TRUE;
  669. }
  670.  
  671. bool gamespeedovar1 = false;
  672. ////////// AIMBOT STUFF ///////////////
  673. DWORD gpoint;
  674. bool c_aimbot = false;
  675. int t = 0;
  676. int keyt;
  677. float fcxpos;
  678. float fcypos;
  679. float camxpos;
  680. float fpvectorx;
  681. float fpvectory;
  682. float fxpos1;
  683. float fypos1;
  684. float fxpos2;
  685. float fypos2;
  686. float fxpos2a;
  687. float fypos2a;
  688. float fphp;
  689. float aa;
  690. float ab;
  691. float ac;
  692. float beta;
  693. float alpha;
  694. float fFps = NULL;
  695. float fLastTickCount = NULL;
  696. float fCurrentTickCount;
  697. float centerX = 0.0f;
  698. float centerY = 0.0f;
  699. float resX = 0.0f;
  700. float resY = 0.0f;
  701.  
  702. DWORD* pTarget = (DWORD*)0xB6F3B8;//pointer of target object.
  703. DWORD* pActor = (DWORD*)0xB6F5F0;//pointer of player actor
  704. DWORD* pCamera = (DWORD*)0xB6F99C;//camera pointer
  705. float* camXpos = (float*)0xB6F258;//writeable camera Z angle
  706. int smooth_aim = 0;
  707.  
  708.  
  709. LONG x;
  710. LONG y;
  711. POINT pos;
  712. DWORD php;
  713. DWORD xpos1;
  714. DWORD ypos1;
  715. DWORD xpos2;
  716. DWORD ypos2;
  717. DWORD pmtrx1;
  718. DWORD pmtrx2;
  719. DWORD pvectorx;
  720. DWORD pvectory;
  721. DWORD ptarget;
  722. DWORD pped;
  723. DWORD pId;
  724. DWORD dwOldProtect = 0;
  725.  
  726.  
  727. //SMNEKERIE//SMSM
  728.  
  729. bool RainbowHud = false;
  730. bool mapteleport = false;
  731. bool bEditBulletSync = false;
  732. bool teleport_checkpoint = false;
  733. static float misc_RainbowSpeed;
  734. int rrspeed;
  735. bool culoare_pusa;
  736. //int setrotation = 0;
  737. //wal menu
  738. bool wallmenu = false;
  739. //menuname
  740. bool menuname = false;
  741. //poormenu
  742. bool pooraim = false;
  743. bool poormenu = false;
  744. bool sniperpoor2 = false;
  745. bool deaglepoor2 = false;
  746. bool deagletrigger2 = false;
  747. bool riflepoor2 = false;
  748. bool mp5poor2 = false;
  749. bool combatpoor2 = false;
  750. bool akpoor2 = false;
  751. bool m4poor2 = false;
  752. //no recoil
  753. bool poormenu2 = false;
  754. bool sniperpoor24 = false;
  755. bool deaglepoor24 = false;
  756. bool deagletrigger24 = false;
  757. bool riflepoor24 = false;
  758. bool mp5poor24 = false;
  759. bool combatpoor24 = false;
  760. bool akpoor24 = false;
  761. bool m4poor24 = false;
  762. //trigger menu
  763. bool triggermenu = false;
  764. bool sniperpoor23 = false;
  765. bool deaglepoor23 = false;
  766. bool deagletrigger23 = false;
  767. bool riflepoor23 = false;
  768. bool mp5poor23 = false;
  769. bool combatpoor23 = false;
  770. bool akpoor23 = false;
  771. bool m4poor23 = false;
  772.  
  773. bool tp = false;
  774. int cheat_spammer_delay = 1;
  775. bool cheat_enable_spammer = false;
  776. char cheat_spammer_text[256];
  777. bool Mouse_Fix = false;
  778. //nitro car
  779. bool nitrocar = false;
  780. //tankmode
  781. bool tankmodecar = false;
  782. //bool c_slap = false;
  783. //BYTE* slap = (BYTE*)0xB6F5F0;
  784. bool watercarvar = false;
  785. bool Trigger = false;
  786. bool wall = false;
  787. bool weather = false;
  788. bool taim = false;
  789. bool megajumpvar = false;
  790. //bool noreload = false;
  791. BYTE* bjump = (BYTE*)0x969161;
  792. bool c_bjump = false;
  793. bool c_norecoil = false;
  794. bool normalaim = false;
  795. bool fake_kick = false;
  796. bool ioxygen = false;
  797. bool c_infRun = false;
  798. BYTE* infRun = (BYTE*)0xB7CEE4;
  799. bool c_GodMode = false;
  800. BYTE* GodMode = (BYTE*)0x96916D;
  801. bool fastrot = false;
  802. bool fpsunlockvar = false;
  803. bool thermalvisionvar = false;
  804. bool infammovar = false;
  805. DWORD* pInfo = NULL;
  806. BYTE* ThroughWalls = NULL;
  807. float* fDistance = NULL;
  808. bool nop = false;
  809. ///aimbotmenu
  810. bool aimbotmenu = false;
  811. bool mp5checked = false;
  812. bool akchecked = false;
  813. bool sniperchecked = false;
  814. bool minigunchecked = false;
  815. bool silencedchecked = false;
  816. bool shotgunchecked = false;
  817. bool riflechecked = false;
  818. bool tecchecked = false;
  819. bool combatchecked = false;
  820. bool m4a1checked = false;
  821. bool deaglechecked = false;
  822. bool panic = false;
  823.  
  824. // nu il mai gasesc pan
  825. bool g_bwasInitialized = false;
  826. bool m_IsGameFullyLoaded = false;
  827. bool menuOpen = false;
  828. bool wndproc = false;
  829. bool* p_open = NULL;
  830. bool recon = false;
  831. int item = 0;
  832. int timeset;
  833. int weatherset;
  834. int whsize = 5;
  835. int setfakeping;
  836. int setgamespeed;
  837. int startstop;
  838. int close;
  839. int hwndd;
  840. int startmenu;
  841.  
  842. DWORD key;
  843. HMODULE samp = GetModuleHandleA("samp.dll");
  844. DWORD address = (DWORD)samp + 0x64230;
  845. DWORD procID;
  846. DWORD g_dwSAMP_Addr = NULL;
  847. DWORD *g_Chat = NULL;
  848. HANDLE handle;
  849. HWND hWnd;
  850.  
  851. WNDPROC oriWndProc = NULL;
  852. extern LRESULT ImGui_ImplDX9_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
  853.  
  854. void everything()
  855. {
  856. GetWindowThreadProcessId(hWnd, &procID);
  857. handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, procID);
  858. }
  859.  
  860. void toggleSAMPCursor(int iToggle)
  861. {
  862. void *obj = *(void **)((DWORD)samp + 0x21A10C);
  863. ((void(__thiscall *) (void *, int, bool)) ((DWORD)samp + 0x9BD30))(obj, iToggle ? 3 : 0, !iToggle);
  864. if (!iToggle)
  865. ((void(__thiscall *) (void *)) ((DWORD)samp + 0x9BC10))(obj);
  866. }
  867.  
  868. void toggleChat(int toggle)
  869. {
  870. int togchattrue = 0xC3;
  871. int togchatfalse = 2347862870;
  872. everything();
  873.  
  874. if (toggle == 1)
  875. {
  876. WriteProcessMemory(handle, (LPVOID)((DWORD)samp + 0x64230), &togchattrue, sizeof(togchattrue), 0);
  877. }
  878. else
  879. {
  880. WriteProcessMemory(handle, (LPVOID)((DWORD)samp + 0x64230), &togchatfalse, sizeof(togchatfalse), 0);
  881. }
  882. }
  883.  
  884. void Shutdown()
  885. {
  886. void** vTableDevice = *(void***)(*(DWORD*)DEVICE_PTR);
  887. VTableHookManager* vmtHooks = new VTableHookManager(vTableDevice, D3D_VFUNCTIONS);
  888. vmtHooks->Unhook(ENDSCENE_INDEX);
  889. menuOpen = false;
  890. toggleSAMPCursor(0);
  891. toggleChat(0);
  892. close = 1;
  893. normalaim = false;
  894. Mouse_Fix = false;
  895. //nitro car
  896. nitrocar = false;
  897. //tankmode
  898. tankmodecar = false;
  899. //bool c_slap = false;
  900. //BYTE* slap = (BYTE*)0xB6F5F0;
  901. watercarvar = false;
  902. Trigger = false;
  903. wall = false;
  904. megajumpvar = false;
  905. //bool noreload = false;
  906. bjump = (BYTE*)0x969161;
  907. c_bjump = false;
  908. c_norecoil = false;
  909. fake_kick = false;
  910. ioxygen = false;
  911. c_infRun = false;
  912. c_GodMode = false;
  913. fastrot = false;
  914. fpsunlockvar = false;
  915. thermalvisionvar = false;
  916. infammovar = false;;
  917. mp5checked = false;
  918. akchecked = false;
  919. sniperchecked = false;
  920. minigunchecked = false;
  921. silencedchecked = false;
  922. shotgunchecked = false;
  923. riflechecked = false;
  924. tecchecked = false;
  925. combatchecked = false;
  926. m4a1checked = false;
  927. deaglechecked = false;
  928. atentat1 = false;
  929. }
  930.  
  931.  
  932. //OLEACA
  933. char namechanger[256];
  934. bool namech = false;
  935.  
  936.  
  937. int setLocalPlayerName(const char *name)
  938. {
  939. if (pSAMP->getPlayers() == NULL || pSAMP->getPlayers()->pLocalPlayer == NULL)
  940. return 0;
  941.  
  942. int strlen_name = strlen(name);
  943. if (strlen_name == 0 || strlen_name > SAMP_ALLOWED_PLAYER_NAME_LENGTH)
  944. return 0;
  945.  
  946. ((void(__thiscall *) (void *, const char *name, int len)) (g_dwSAMP_Addr + 0xB290)) (&pSAMP->getPlayers()->pVTBL_txtHandler, name, strlen_name);
  947. return 1;
  948. }
  949. //?/???A($@($(#$(#(R(ERFNDF(#((#%EJTRje
  950.  
  951.  
  952. //SPAMMER FMM
  953. void addSayToChatWindow(char *msg)
  954. {
  955. if (pSAMP == NULL)
  956. return;
  957.  
  958. if (msg == NULL)
  959. return;
  960.  
  961. if (msg == NULL)
  962. return;
  963.  
  964. if (msg[0] == '/')
  965. {
  966. ((void(__thiscall *) (void *_this, char *message)) (g_dwSAMP_Addr + SAMP_FUNC_SENDCMD))(pSAMP->getInput(), msg);
  967. }
  968. else
  969. {
  970. ((void(__thiscall *) (void *_this, char *message)) (g_dwSAMP_Addr + SAMP_FUNC_SAY)) (pSAMP->getPlayers()->pLocalPlayer, msg);
  971. }
  972. }
  973.  
  974. void say(char *text, ...)
  975. {
  976. if (pSAMP == NULL)
  977. return;
  978.  
  979. if (text == NULL)
  980. return;
  981.  
  982. va_list ap;
  983. char tmp[128];
  984. memset(tmp, 0, 128);
  985.  
  986. va_start(ap, text);
  987. vsprintf(tmp, text, ap);
  988. va_end(ap);
  989.  
  990. addSayToChatWindow(tmp);
  991. }
  992. //SPAMMER
  993.  
  994.  
  995. SAMPFramework *pSAMP;
  996. CD3DHook *pD3DHook;
  997.  
  998. //v2
  999. void Boss()
  1000. {
  1001. ImGuiStyle& style = ImGui::GetStyle();
  1002. style.Colors[ImGuiCol_Text] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f);
  1003. style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f);
  1004. style.Colors[ImGuiCol_WindowBg] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f);
  1005. style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
  1006. style.Colors[ImGuiCol_PopupBg] = ImVec4(0.05f, 0.05f, 0.10f, 0.90f);
  1007. style.Colors[ImGuiCol_Border] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1008. style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
  1009. style.Colors[ImGuiCol_FrameBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.30f);
  1010. style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.90f, 0.80f, 0.80f, 0.40f);
  1011. style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.90f, 0.65f, 0.65f, 0.45f);
  1012. style.Colors[ImGuiCol_TitleBg] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1013. style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1014. style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1015. style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1016. style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.20f, 0.25f, 0.30f, 0.60f);
  1017. style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1018. style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.84f, 0.01f, 0.01f, 0.59f);
  1019. style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(1.00f, 0.00f, 0.00f, 1.00f);
  1020. style.Colors[ImGuiCol_ComboBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.99f);
  1021. style.Colors[ImGuiCol_CheckMark] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1022. style.Colors[ImGuiCol_SliderGrab] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1023. style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1024. style.Colors[ImGuiCol_Button] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1025. style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1026. style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1027. style.Colors[ImGuiCol_Header] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1028. style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1029. style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.00f, 0.53f, 1.00f, 1.00f);
  1030. style.Colors[ImGuiCol_Column] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f);
  1031. style.Colors[ImGuiCol_ColumnHovered] = ImVec4(0.70f, 0.60f, 0.60f, 1.00f);
  1032. style.Colors[ImGuiCol_ColumnActive] = ImVec4(0.90f, 0.70f, 0.70f, 1.00f);
  1033. style.Colors[ImGuiCol_ResizeGrip] = ImVec4(1.00f, 1.00f, 1.00f, 0.30f);
  1034. style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4(1.00f, 1.00f, 1.00f, 0.60f);
  1035. style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(1.00f, 1.00f, 1.00f, 0.90f);
  1036. style.Colors[ImGuiCol_CloseButton] = ImVec4(0.50f, 0.50f, 0.90f, 0.50f);
  1037. style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.70f, 0.70f, 0.90f, 0.60f);
  1038. style.Colors[ImGuiCol_CloseButtonActive] = ImVec4(0.70f, 0.70f, 0.70f, 1.00f);
  1039. style.Colors[ImGuiCol_PlotLines] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
  1040. style.Colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f);
  1041. style.Colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f);
  1042. style.Colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f);
  1043. style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(0.00f, 0.00f, 1.00f, 0.35f);
  1044. style.Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f);
  1045. style.WindowTitleAlign = ImGuiAlign_Center;
  1046. }
  1047.  
  1048. void RainbowM()
  1049. {
  1050. static float rainbow_color_redus; //speed
  1051. rainbow_color_redus += misc_RainbowSpeed = 0.0001 * rrspeed;
  1052. if (rainbow_color_redus > 1.f) rainbow_color_redus = 0.f;
  1053. DWORD rainbow_color_x = Color2::ToImColor(Color2::FromHSB(rainbow_color_redus, 1.f, 1.f));
  1054. ImVec4 mainColorActive = Color2::ToImColor(Color2::FromHSB(rainbow_color_redus, 1.f, 1.f));
  1055. ImGuiStyle& style = ImGui::GetStyle();
  1056. style.Colors[ImGuiCol_Text] = ImVec4(1.f, 1.f, 1.f, .78f);
  1057. style.Colors[ImGuiCol_TextDisabled] = mainColorActive;;
  1058. style.Colors[ImGuiCol_WindowBg] = mainColorActive;
  1059. style.Colors[ImGuiCol_ChildWindowBg] = mainColorActive;
  1060. style.Colors[ImGuiCol_PopupBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
  1061. style.Colors[ImGuiCol_Border] = ImVec4(0.00f, 0.00f, 0.00f, 0.35f);
  1062. style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
  1063. style.Colors[ImGuiCol_FrameBg] = ImVec4(0.13f, 0.14f, 0.17f, 1.00f);
  1064. style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.13f, 0.14f, 0.17f, 0.78f);
  1065. style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.13f, 0.14f, 0.17f, 1.00f);
  1066. style.Colors[ImGuiCol_TitleBg] = mainColorActive;
  1067. style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.20f, 0.22f, 0.27f, 0.75f);
  1068. style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.13f, 0.14f, 0.17f, 1.00f);
  1069. style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.20f, 0.22f, 0.27f, 0.47f);
  1070. style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
  1071. style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.09f, 0.15f, 0.16f, 1.00f);
  1072. style.Colors[ImGuiCol_ScrollbarGrabHovered] = mainColorActive;
  1073. style.Colors[ImGuiCol_ScrollbarGrabActive] = mainColorActive;
  1074. style.Colors[ImGuiCol_ComboBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
  1075. style.Colors[ImGuiCol_CheckMark] = mainColorActive;
  1076. style.Colors[ImGuiCol_SliderGrab] = mainColorActive;
  1077. style.Colors[ImGuiCol_SliderGrabActive] = mainColorActive;
  1078. style.Colors[ImGuiCol_Button] = mainColorActive;
  1079. style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.13f, 0.14f, 0.17f, 0.86f);
  1080. style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.13f, 0.14f, 0.17f, 1.00f);
  1081. style.Colors[ImGuiCol_Header] = mainColorActive;
  1082. style.Colors[ImGuiCol_HeaderHovered] = mainColorActive;
  1083. style.Colors[ImGuiCol_HeaderActive] = mainColorActive;
  1084. style.Colors[ImGuiCol_Column] = ImVec4(0.15f, 0.00f, 0.00f, 0.35f);
  1085. style.Colors[ImGuiCol_ColumnHovered] = mainColorActive;
  1086. style.Colors[ImGuiCol_ColumnActive] = mainColorActive;
  1087. style.Colors[ImGuiCol_ResizeGrip] = mainColorActive;
  1088. style.Colors[ImGuiCol_ResizeGripHovered] = mainColorActive;
  1089. style.Colors[ImGuiCol_ResizeGripActive] = mainColorActive;
  1090. style.Colors[ImGuiCol_CloseButton] = ImVec4(0.00f, 0.00f, 0.00f, 0.0f);
  1091. style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.00f, 0.00f, 0.00f, 0.0f);
  1092. style.Colors[ImGuiCol_CloseButtonActive] = ImVec4(0.00f, 0.00f, 0.00f, 0.0f);
  1093. style.Colors[ImGuiCol_PlotLines] = ImVec4(0.86f, 0.93f, 0.89f, 0.63f);
  1094. style.Colors[ImGuiCol_PlotLinesHovered] = mainColorActive;
  1095. style.Colors[ImGuiCol_PlotHistogram] = ImVec4(0.86f, 0.93f, 0.89f, 0.63f);
  1096. style.Colors[ImGuiCol_PlotHistogramHovered] = mainColorActive;
  1097. style.Colors[ImGuiCol_TextSelectedBg] = mainColorActive;
  1098. style.Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(0.20f, 0.22f, 0.27f, 0.73f);
  1099. style.WindowTitleAlign = ImGuiAlign_Center;
  1100. }
  1101.  
  1102. void RenderGUI()
  1103. {
  1104. static float f = 0.0f;
  1105. ImGuiWindowFlags window_flags = 0;
  1106. window_flags |= ImGuiWindowFlags_NoResize;
  1107. window_flags |= ImGuiWindowFlags_NoCollapse;
  1108. window_flags |= ImGuiWindowFlags_MenuBar;
  1109. ImGuiWindowFlags window_flags_about = 0;
  1110. window_flags_about |= ImGuiWindowFlags_NoResize;
  1111. window_flags_about |= ImGuiWindowFlags_NoCollapse;
  1112. window_flags_about |= ImGuiWindowFlags_NoMove;
  1113. ImGui::SetNextWindowSize(ImVec2(400.f, 400.f));
  1114. if (!ImGui::Begin("V3.4", p_open = NULL, window_flags))
  1115. {
  1116. ImGui::End();
  1117. return;
  1118. }
  1119. if (ImGui::BeginMenuBar())
  1120. {
  1121. ImGui::SetNextWindowSize(ImVec2(140.f, 60.f));
  1122. if (ImGui::BeginMenu("Panic"))
  1123. {
  1124. if (ImGui::Button("Panic", ImVec2(125.f, 20.f)))
  1125. {
  1126. ImGui::OpenPopup("Panic");
  1127. }
  1128. if (ImGui::BeginPopupModal("Panic", p_open = NULL, window_flags_about))
  1129. {
  1130. ImGui::SetWindowSize(ImVec2(293.f, 80.f));
  1131. ImGui::Text("Are you sure about this?");
  1132. if (ImGui::Button("Yes", ImVec2(135.f, 20.f)))
  1133. {
  1134. Shutdown();
  1135. }
  1136. ImGui::SameLine();
  1137. if (ImGui::Button("No", ImVec2(135.f, 20.f)))
  1138. {
  1139. ImGui::CloseCurrentPopup();
  1140. }
  1141. ImGui::EndPopup();
  1142. }
  1143. ImGui::EndMenu();
  1144. }
  1145. if (ImGui::BeginMenu("Themes"))
  1146. {
  1147. ImGui::PushItemWidth(125.f);
  1148. const char* items[] = { "Default", "Rainbow" };
  1149. ImGui::Combo("##1000", &item, items, 2);
  1150. if (item == 0)
  1151. {
  1152. Boss();
  1153. }
  1154. if (item == 1)
  1155. {
  1156. RainbowM();
  1157. }
  1158. ImGui::EndMenu();
  1159. }
  1160. if (ImGui::BeginMenu("Settings"))
  1161. {
  1162. const char* items[] = { "Insert", "Home", "Delete","End" };
  1163. ImGui::PushItemWidth(125.f);
  1164. ImGui::Combo("##2000", &startmenu, items, 4);
  1165. if (startmenu == 0)
  1166. {
  1167. key = VK_INSERT;
  1168. }
  1169. if (startmenu == 1)
  1170. {
  1171. key = VK_HOME;
  1172. }
  1173. if (startmenu == 2)
  1174. {
  1175. key = VK_DELETE;
  1176. }
  1177. if (startmenu == 3)
  1178. {
  1179. key = VK_END;
  1180. }
  1181. ImGui::EndMenu();
  1182. }
  1183. if (ImGui::BeginMenu("Info"))
  1184. {
  1185. if (ImGui::Button("Info", ImVec2(125.f, 20.f)))
  1186. {
  1187. ImGui::OpenPopup("Info");
  1188. }
  1189. ImGui::SetWindowSize(ImVec2(293.f, 80.f));
  1190. if (ImGui::BeginPopupModal("Info", p_open = NULL, window_flags_about))
  1191. {
  1192. ImGui::Text("CHEAT FOR SAMPCAC VERSION:");
  1193. ImGui::Text("V.0.0.9");
  1194. ImGui::Separator();
  1195. ImGui::Text("LICENCE:");
  1196. ImGui::Text("DEVELOPER: Yes");
  1197. ImGui::Text("EXPIRED: No");
  1198. ImGui::Separator();
  1199. ImGui::Text("CREDITS:");
  1200. ImGui::Separator();
  1201. ImGui::Text("DEVELOPER :");
  1202. ImGui::TextColored(ImColor(255, 100, 100), "NiLmeR");
  1203. ImGui::Separator();
  1204. ImGui::Text("CONTRIBUTOR :");
  1205. //ImGui::Text("Serban1337");
  1206. ImGui::Text("Ryon.SILENT");
  1207. ImGui::Text("DarkADV");
  1208. ImGui::Text("IMGUI BY MALWELL");
  1209. if (ImGui::Button("Close"))
  1210. {
  1211. ImGui::CloseCurrentPopup();
  1212. }
  1213. ImGui::EndPopup();
  1214. }
  1215. ImGui::EndMenu();
  1216. }
  1217. ImGui::EndMenuBar();
  1218. }
  1219.  
  1220. if (ImGui::CollapsingHeader("WEAPON MENU"))
  1221. {
  1222. ImGui::Checkbox("##68", &c_aimbot); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Aimbot");
  1223. ImGui::Checkbox("", &normalaim); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Smooth");
  1224. ImGui::SameLine(300.f);
  1225. if (ImGui::Button("Settings## Smooth"))
  1226. {
  1227. aimbotmenu = !aimbotmenu;
  1228. }
  1229. ImGui::Checkbox("##1", &pooraim); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Poor Aimbot");
  1230. ImGui::SameLine(300.f);
  1231. if (ImGui::Button("Settings##Poor Aimbot"))
  1232. {
  1233. poormenu = !poormenu;
  1234. }
  1235. ImGui::Checkbox(" Triggerbot", &Trigger);
  1236. ImGui::SameLine(300.f);
  1237. if (ImGui::Button("Settings## Triggerbot"))
  1238. {
  1239. triggermenu = !triggermenu;
  1240. }
  1241. ImGui::Checkbox("##2", &c_norecoil);ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "No Recoil");
  1242. ImGui::SameLine(300.f);
  1243. if (ImGui::Button("Settings## No Recoil"))
  1244. {
  1245. poormenu2 = !poormenu2;
  1246. }
  1247. ImGui::Checkbox("##3", &infammovar); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Infinite Ammo");
  1248.  
  1249. }
  1250. if (ImGui::CollapsingHeader("VISUAL MENU"))
  1251. {
  1252. ImGui::Checkbox(" Wallhack", &wall);
  1253. ImGui::SameLine(300.f);
  1254. if (ImGui::Button("Settings## Wallhack"))
  1255. {
  1256. wallmenu = !wallmenu;
  1257. }
  1258. ImGui::Checkbox(" Time", &taim); ImGui::SameLine(); ImGui::SliderInt("##1", &timeset, 0, 24, "TIME: %0.0f");
  1259. ImGui::Checkbox(" Weather", &weather); ImGui::SameLine(); ImGui::SliderInt("##2", &weatherset, 0, 10, "WEATHER: %0.0f");
  1260. ImGui::Checkbox(" Thermal Vision", &thermalvisionvar);
  1261. }
  1262. if (ImGui::CollapsingHeader("PLAYER MENU"))
  1263. {
  1264. ImGui::Checkbox("##4", &megajumpvar); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Mega Jump");
  1265. ImGui::Checkbox("##", &c_bjump); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Mega Jump Bike");
  1266. ImGui::Checkbox(" Infinite Run", &c_infRun);
  1267. ImGui::Checkbox(" Infinite Oxygen", &ioxygen);
  1268. ImGui::Checkbox(" Anti Stun", &bAntiStun);
  1269. ImGui::Checkbox("##5", &c_GodMode); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "GodMode");
  1270. ImGui::Checkbox(" Fast Rotation", &fastrot);
  1271. //ImGui::SliderInt("##9234", &setrotation, 1, 100, "%.0f");
  1272. ImGui::Checkbox("##12", &antiaim); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Anti Aim");
  1273. ImGui::Checkbox("##10", &InvertWalk); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Upside Mode");
  1274. //ImGui::SliderInt("##500", &setrotation, 1, 100, "%.0f")
  1275. //ImGui::Checkbox("Auto Slap", &c_slap);
  1276. }
  1277. if (ImGui::CollapsingHeader("CARS MENU"))
  1278. {
  1279. ImGui::Checkbox("##6", &watercarvar); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Water Car");
  1280. ImGui::Checkbox("##7", &tankmodecar); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Tank Mode");
  1281. ImGui::Checkbox("##6261", &pilot); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Pro Diriving");
  1282. if (pilot == true)
  1283. {
  1284. *(bool*)PILOT_ADDR = true;
  1285. }
  1286. else
  1287. {
  1288. *(bool*)PILOT_ADDR = false;
  1289. }
  1290. ImGui::Checkbox(" Nitro All Cars", &nitrocar);
  1291. }
  1292. if (ImGui::CollapsingHeader("OTHER MENU"))
  1293. {
  1294. ImGui::Checkbox(" Mouse Fix", &Mouse_Fix);
  1295. ImGui::Checkbox(" Fps Unlocker", &fpsunlockvar);
  1296. ImGui::Checkbox("##12", &no_bike_fall); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Anti Bike Fall");
  1297. ImGui::Checkbox("##8", &teleport_checkpoint); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Teleport Checkpoint F9");
  1298. ImGui::Checkbox("##12", &tp); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Teleport Map F10");
  1299. ImGui::Checkbox("##123", &slapper); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Slap F7");
  1300. ImGui::Checkbox("##14", &fake_ping); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Fake Lag");
  1301. ImGui::SameLine(320.0f);
  1302. ImGui::PushItemWidth(65.0f);
  1303. ImGui::SliderInt("##9234", &setfakeping, 500, 1000, "%.0f");
  1304. ImGui::Checkbox("##142", &gamespeedovar1); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "Game Speed");
  1305. ImGui::SameLine(320.0f);
  1306. ImGui::PushItemWidth(65.0f);
  1307. ImGui::SliderInt("##92342", &setgamespeed, 1, 1000, "%.0f");
  1308. if (ImGui::Button("Spawn ##5345"))
  1309. {
  1310. if (pSAMP == NULL)
  1311. return;
  1312.  
  1313. ((void(__thiscall *) (void *_this)) (g_dwSAMP_Addr + 0x3EC0)) (pSAMP->getPlayers()->pLocalPlayer);
  1314. ((void(__thiscall *) (void *_this)) (g_dwSAMP_Addr + 0x3AD0)) (pSAMP->getPlayers()->pLocalPlayer);
  1315. }
  1316. ImGui::SameLine();
  1317. if (ImGui::Button("Fake Death"))
  1318. {
  1319. if (pSAMP == NULL)
  1320. return;
  1321. ((void(__thiscall *) (void *)) (g_dwSAMP_Addr + 0x55E0))
  1322. (pSAMP->getPlayers()->pLocalPlayer);
  1323. }
  1324. ImGui::PushItemWidth(100.0f);
  1325. ImGui::InputText("SPAMMER TEXT", cheat_spammer_text, sizeof(cheat_spammer_text));
  1326. ImGui::PushItemWidth(95.0f);
  1327. ImGui::InputInt("Delay (in ms)", &cheat_spammer_delay);
  1328.  
  1329. if (cheat_enable_spammer)
  1330. {
  1331. if (ImGui::Button("Stop")) cheat_enable_spammer = false;
  1332. }
  1333. else
  1334. {
  1335. if (ImGui::Button("Start")) cheat_enable_spammer = true;
  1336. }
  1337. }
  1338. if (ImGui::CollapsingHeader("RAINBOW MENU"))
  1339. {
  1340. if (ImGui::Button("Sync All Rainbow"))
  1341. {
  1342. RainbowHud = true;
  1343. culoare_pusa = true;
  1344. rainbowmenu = true;
  1345. tintarainbow = true;
  1346. RainbowHeadLights = true;
  1347. RainbowRadar = true;
  1348.  
  1349. }
  1350. ImGui::Checkbox("Rainbow Crosshair", &tintarainbow);
  1351. ImGui::Checkbox(" Rainbow Hud", &RainbowHud);
  1352. ImGui::Checkbox(" Radar Rainbow", &RainbowRadar);
  1353. ImGui::Checkbox(" Rainbow Car Lights", &RainbowHeadLights);
  1354. ImGui::Checkbox(" Rainbow Car", &culoare_pusa);
  1355. ImGui::Checkbox(" Rainbow Menu", &rainbowmenu);
  1356. ImGui::PushItemWidth(230.0f);
  1357. ImGui::SliderInt("Speed", &rrspeed, 0, 100, "%.0f%%");
  1358. }
  1359. if (ImGui::CollapsingHeader("DEVELOPER MENU"))
  1360. {
  1361. ImGui::Checkbox("##9", &atentat1); ImGui::SameLine(); ImGui::TextColored(ImColor(255, 100, 100), "AtentatBOT");
  1362. ImGui::Checkbox(" Fake Kick", &fake_kick);
  1363. ImGui::Checkbox(" LOCAL NICK CHANGE", &namech);
  1364. ImGui::SameLine(300.f);
  1365. if (ImGui::Button("Settings## Change"))
  1366. {
  1367. menuname = !menuname;
  1368. }
  1369. }
  1370. ImGui::End();
  1371. //poor menu
  1372. if (poormenu)
  1373. {
  1374. ImGui::SetNextWindowSize(ImVec2(310.0f, 300.0f));
  1375. if (ImGui::Begin("Poor Aimbot Settings", p_open = NULL, window_flags))
  1376. {
  1377. ImGui::Checkbox("Deagle", &deaglepoor2);
  1378. ImGui::Checkbox("M4", &m4poor2);
  1379. ImGui::Checkbox("AK47", &akpoor2);
  1380. ImGui::Checkbox("Rifle", &riflepoor2);
  1381. ImGui::Checkbox("MP5", &mp5poor2);
  1382. ImGui::Checkbox("Combat Shotgun", &combatpoor2);
  1383. ImGui::Text(" ");
  1384. if (ImGui::Button("Hide", ImVec2(75.f, 20.f)))
  1385. {
  1386. poormenu = !poormenu;
  1387. }
  1388. ImGui::End();
  1389. }
  1390. }
  1391. //aimbotmenu
  1392. if (aimbotmenu)
  1393. {
  1394. ImGui::SetNextWindowSize(ImVec2(310.0f, 300.0f));
  1395. if (ImGui::Begin("Smooth Settings", p_open = NULL, window_flags))
  1396. {
  1397. ImGui::Checkbox("Deagle", &deaglechecked);
  1398. ImGui::Checkbox("SD Pistol", &silencedchecked);
  1399. ImGui::Checkbox("M4", &m4a1checked);
  1400. ImGui::Checkbox("AK47", &akchecked);
  1401. ImGui::Checkbox("Rifle", &riflechecked);
  1402. ImGui::Checkbox("MP5", &mp5checked);
  1403. ImGui::Checkbox("Combat Shotgun", &combatchecked);
  1404. ImGui::Checkbox("ShotGun", &shotgunchecked);
  1405. ImGui::Checkbox("TEC", &tecchecked);
  1406. ImGui::Checkbox("Minigun", &minigunchecked);
  1407. ImGui::Checkbox("Rifle", &riflechecked);
  1408. ImGui::Text(" ");
  1409. if (ImGui::Button("Hide", ImVec2(75.f, 20.f)))
  1410. {
  1411. aimbotmenu = !aimbotmenu;
  1412. }
  1413. ImGui::End();
  1414. }
  1415. }
  1416. //trigger menu
  1417. if (triggermenu)
  1418. {
  1419. ImGui::SetNextWindowSize(ImVec2(310.0f, 300.0f));
  1420. if (ImGui::Begin("Trigger Settings", p_open = NULL, window_flags))
  1421. {
  1422. ImGui::Checkbox("Deagle", &deaglepoor23);
  1423. ImGui::Checkbox("M4", &m4poor23);
  1424. ImGui::Checkbox("AK47", &akpoor23);
  1425. ImGui::Checkbox("Rifle", &riflepoor23);
  1426. ImGui::Checkbox("MP5", &mp5poor23);
  1427. ImGui::Checkbox("Combat Shotgun", &combatpoor23);
  1428. ImGui::Text(" ");
  1429. if (ImGui::Button("Hide", ImVec2(75.f, 20.f)))
  1430. {
  1431. triggermenu = !triggermenu;
  1432. }
  1433. ImGui::End();
  1434. }
  1435. }
  1436. //recoil menu
  1437. if (poormenu2)
  1438. {
  1439. ImGui::SetNextWindowSize(ImVec2(310.0f, 300.0f));
  1440. if (ImGui::Begin("No Recoil Settings", p_open = NULL, window_flags))
  1441. {
  1442. ImGui::Checkbox("Deagle", &deaglepoor24);
  1443. ImGui::Checkbox("M4", &m4poor24);
  1444. ImGui::Checkbox("AK47", &akpoor24);
  1445. ImGui::Checkbox("Rifle", &riflepoor24);
  1446. ImGui::Checkbox("MP5", &mp5poor24);
  1447. ImGui::Checkbox("Combat Shotgun", &combatpoor24);
  1448. ImGui::Text(" ");
  1449. if (ImGui::Button("Hide", ImVec2(75.f, 20.f)))
  1450. {
  1451. poormenu2 = !poormenu2;
  1452. }
  1453. ImGui::End();
  1454. }
  1455. }
  1456. if (wallmenu)
  1457. {
  1458. ImGui::SetNextWindowSize(ImVec2(210.0f, 200.0f));
  1459. if (ImGui::Begin("WallHack Settings", p_open = NULL, window_flags))
  1460. {
  1461. ImGui::SliderInt("##5231", &whsize, 0, 100, ("Range: %0.0f"));
  1462. ImGui::Text(" ");
  1463. if (ImGui::Button("Hide", ImVec2(75.f, 20.f)))
  1464. {
  1465. wallmenu = !wallmenu;
  1466. }
  1467. ImGui::End();
  1468. }
  1469. }
  1470. if (menuname)
  1471. {
  1472. ImGui::SetNextWindowSize(ImVec2(220.0f, 210.0f));
  1473. if (ImGui::Begin("Local Nick Settings", p_open = NULL, window_flags))
  1474. {
  1475. ImGui::InputText("CHANGE", namechanger, sizeof(namechanger));
  1476. ImGui::Text(" ");
  1477. if (ImGui::Button("Hide", ImVec2(75.f, 20.f)))
  1478. {
  1479. menuname = !menuname;
  1480. }
  1481. ImGui::End();
  1482. }
  1483. }
  1484. }
  1485.  
  1486. void mainThread(void *pvParams)
  1487. {
  1488.  
  1489. }
  1490.  
  1491. void Fakekick()
  1492. {
  1493. if (fake_kick)
  1494. {
  1495. unsigned int func = (unsigned int)GetModuleHandleA("samp.dll") + 0x58C0;//g_dwSAMP_Addr + 0x4D70
  1496. __asm {
  1497. PUSH 00
  1498. PUSH 0xFFFF
  1499. CALL func
  1500. }
  1501. }
  1502. }
  1503.  
  1504. void InfOxygen()
  1505. {
  1506. if (ioxygen)
  1507. {
  1508. everything();
  1509. DWORD infiniteoxygenAddr = 0x96916E;
  1510. DWORD infiniteoxygen = 1;
  1511.  
  1512. WriteProcessMemory(handle, (LPVOID)infiniteoxygenAddr, &infiniteoxygen, sizeof(infiniteoxygen), 0);
  1513. }
  1514. }
  1515.  
  1516. void fastrotation()
  1517. {
  1518. if (fastrot)
  1519. {
  1520. DWORD cped = 0;
  1521. ReadProcessMemory(handle, (LPCVOID)0xB6F5F0, &cped, sizeof(DWORD), 0);
  1522. DWORD moveAddr = cped + 0x560;
  1523. DWORD move = 0; ReadProcessMemory(handle, (LPCVOID)moveAddr, &move, sizeof(move), 0);
  1524. if (move == 1103626240) {} if (move >= 1089470463) {
  1525. DWORD ceva = 1103626240;
  1526. WriteProcessMemory(handle, (LPVOID)moveAddr, &ceva, sizeof(ceva), 0);
  1527. }
  1528. }
  1529. }
  1530.  
  1531. void functions()
  1532. {
  1533. if (namech)
  1534. {
  1535. if (strlen(namechanger))
  1536. {
  1537.  
  1538. {
  1539. setLocalPlayerName(namechanger);
  1540. }
  1541. }
  1542.  
  1543. }
  1544.  
  1545. if (no_bike_fall)
  1546. {
  1547. DWORD bikefall = 1;
  1548. ReadProcessMemory(handle, (LPVOID)(0x004BA3B9), &bikefall, sizeof(bikefall), 0);
  1549.  
  1550. if (bikefall != 239593)
  1551. {
  1552. bikefall = 239593;
  1553. WriteProcessMemory(handle, (LPVOID)(0x004BA3B9), &bikefall, sizeof(bikefall), 0);
  1554. }
  1555. }
  1556.  
  1557. if (!no_bike_fall)
  1558. {
  1559. DWORD bikefall = 1;
  1560. ReadProcessMemory(handle, (LPVOID)(0x004BA3B9), &bikefall, sizeof(bikefall), 0);
  1561.  
  1562. if (bikefall != 61244431)
  1563. {
  1564. bikefall = 61244431;
  1565. WriteProcessMemory(handle, (LPVOID)(0x004BA3B9), &bikefall, sizeof(bikefall), 0);
  1566. }
  1567. }
  1568.  
  1569. if (slapper)
  1570. {
  1571. if (!tick_done)
  1572. {
  1573. tick = GetTickCount64();
  1574. tick_done = true;
  1575. }
  1576.  
  1577. if (GetAsyncKeyState(VK_F7))
  1578. {
  1579.  
  1580. if (GetTickCount64() - tick > 100) // every 100 ms + 5´meter height
  1581. {
  1582.  
  1583. DWORD ped = *(DWORD*)(0xB6F5F0);
  1584.  
  1585.  
  1586.  
  1587. DWORD matrix = *(DWORD*)(ped + 0x14);
  1588. float *zcrd = (float*)(matrix + 0x38);
  1589.  
  1590.  
  1591. float zcrd2 = *(float*)(matrix + 0x38);
  1592.  
  1593. *zcrd = zcrd2 + 6.0f;
  1594.  
  1595. tick_done = false;
  1596. }
  1597.  
  1598. }
  1599.  
  1600. }
  1601.  
  1602. if (Mouse_Fix)
  1603. {
  1604. float x;
  1605. float y;
  1606. ReadProcessMemory(handle, (PBYTE*)0xB6EC1C, &x, 4, 0);
  1607. ReadProcessMemory(handle, (PBYTE*)0xB6EC18, &y, 4, 0);
  1608. if (x != y)
  1609. {
  1610. WriteProcessMemory(handle, (LPVOID)0xB6EC18, &x, 4, 0);
  1611. }
  1612. }
  1613.  
  1614. if (fake_ping)
  1615. {
  1616. DWORD fakeping = 1;
  1617. ReadProcessMemory(handle, (LPVOID)((DWORD)samp + 0xEC0A8), &fakeping, sizeof(fakeping), 0);
  1618.  
  1619. if (fakeping != setfakeping)
  1620. {
  1621. fakeping = setfakeping;
  1622. WriteProcessMemory(handle, (LPVOID)((DWORD)samp + 0xEC0A8), &fakeping, sizeof(fakeping), 0);
  1623. }
  1624. }
  1625. if (!fake_ping)
  1626. {
  1627. DWORD fakeping = 1;
  1628. ReadProcessMemory(handle, (LPVOID)((DWORD)samp + 0xEC0A8), &fakeping, sizeof(fakeping), 0);
  1629.  
  1630. if (fakeping != 100)
  1631. {
  1632. fakeping = 100;
  1633. WriteProcessMemory(handle, (LPVOID)((DWORD)samp + 0xEC0A8), &fakeping, sizeof(fakeping), 0);
  1634. }
  1635. }
  1636. if (gamespeedovar1)
  1637. {
  1638. *(float*)(0xB7CB64) = setgamespeed;
  1639. }
  1640. else
  1641. {
  1642. *(float*)(0xB7CB64);
  1643. }
  1644. if (bAntiStun)
  1645. {
  1646. if (!pSAMP->getPlayers())
  1647. return;
  1648. if (!bAntiStunned)
  1649. {
  1650. // but it doesn't work only for sniper
  1651. DWORD dwStunAddr = *(DWORD*)0x00B6F5F0;
  1652. *(BYTE*)(dwStunAddr + 0x478) = 4;
  1653. }
  1654.  
  1655. // for sniper stun
  1656. float fRate = 100.f;
  1657. bAntiStunned = true;
  1658. }
  1659. else
  1660. {
  1661. if (bAntiStunned)
  1662. {
  1663. DWORD dwStunAddr = *(DWORD*)0x00B6F5F0;
  1664. *(BYTE*)(dwStunAddr + 0x478) = 0;
  1665.  
  1666. float fRate = 1.f;
  1667. bAntiStunned = false;
  1668. }
  1669. }
  1670. if (tp)
  1671. {
  1672. if (GetAsyncKeyState(VK_F10))
  1673. {
  1674. DWORD mapx, mapy, cpz, cped, cpon, matrix;
  1675. mapx = *(DWORD*)0xBA67B8;
  1676. mapy = *(DWORD*)0xBA67BC;
  1677. cped = *(DWORD*)0xB6F5F0;
  1678. matrix = *(DWORD*)(cped + 0x14);
  1679.  
  1680. *(DWORD*)(matrix + 0x30) = mapx;
  1681. *(DWORD*)(matrix + 0x34) = mapy;
  1682. }
  1683. }
  1684.  
  1685. if (teleport_checkpoint)
  1686. {
  1687. if (GetAsyncKeyState(VK_F10))
  1688. {
  1689. int cpx, cpy, cpz, cped, matrix, cpon;
  1690. ReadProcessMemory(handle, (LPVOID)0xC7DEC8, &cpx, sizeof(cpx), NULL);
  1691. ReadProcessMemory(handle, (LPVOID)0xC7DECC, &cpy, sizeof(cpy), NULL);
  1692. ReadProcessMemory(handle, (LPVOID)0xC7DED0, &cpz, sizeof(cpz), NULL);
  1693. ReadProcessMemory(handle, (LPCVOID)0xB6F5F0, &cped, sizeof(cped), NULL);
  1694. ReadProcessMemory(handle, (LPCVOID)(cped + 0x14), &matrix, sizeof(matrix), NULL);
  1695. ReadProcessMemory(handle, (LPVOID)0xC7DEEA, &cpon, sizeof(cpon), NULL);
  1696. if (cpon != 0) {
  1697. WriteProcessMemory(handle, (LPVOID)(matrix + 0x30), &cpx, sizeof(cpx), NULL);
  1698. WriteProcessMemory(handle, (LPVOID)(matrix + 0x34), &cpy, sizeof(cpy), NULL);
  1699. WriteProcessMemory(handle, (LPVOID)(matrix + 0x38), &cpz, sizeof(cpz), NULL);
  1700. }
  1701.  
  1702. }
  1703. }
  1704.  
  1705. if (pooraim)
  1706. {
  1707. if (GetAsyncKeyState(VK_LBUTTON))
  1708. {
  1709. int wID;
  1710. wID = *(BYTE*)0xBAA410;
  1711. DWORD* pActor = (DWORD*)0xB6F5F0;//pointer of player actor
  1712. DWORD* pPed = (DWORD*)((*pActor) + 0x79C);//pointer to target player
  1713. DWORD* pMtrx2 = (DWORD*)((*pPed) + 0x14);//matrix of target player
  1714. float* playerHP = (float*)((*pPed) + 0x540);//health of target player
  1715. DWORD* pMtrx1 = (DWORD*)((*pActor) + 0x14);//matrix of player actor
  1716.  
  1717. if (wID == 24 && deaglepoor2 || wID == 31 && m4poor2 || wID == 30 && akpoor2 || wID == 27 && combatpoor2 || wID == 33 && riflepoor2 || wID == 29 && mp5poor2 || wID == 34 && sniperpoor2)
  1718. {
  1719. if (deaglepoor2)
  1720. {
  1721. if (*pPed > 0)
  1722. {
  1723.  
  1724. if (*playerHP > 0.0f)
  1725. {
  1726. float* x = (float*)((*pMtrx1) + 0x30);//X position Ped
  1727. float* y = (float*)((*pMtrx1) + 0x34);//Y position Ped
  1728. float* z = (float*)((*pMtrx1) + 0x38);//Z position Ped
  1729.  
  1730.  
  1731. float* x1 = (float*)((*pMtrx2) + 0x30);//X position Target
  1732. float* y1 = (float*)((*pMtrx2) + 0x34);//Y position Target
  1733. float* z1 = (float*)((*pMtrx2) + 0x38);//Z position Target
  1734. float* RotAngle = (float*)((*pActor) + 0x558);//health of target player
  1735. float Xwiping = (float)*x + 2 * (float)cos(*RotAngle + 1.48353F);
  1736. float Ywiping = (float)*y + 2 * (float)sin(*RotAngle + 1.48353F);
  1737. float Zwiping = (float)*z + 0.5F;
  1738. *x1 = (float)Xwiping;
  1739. *y1 = (float)Ywiping;
  1740. *z1 = (float)Zwiping;
  1741. }
  1742. }
  1743. }
  1744.  
  1745. if (m4poor2)
  1746. {
  1747. if (*pPed > 0)
  1748. {
  1749.  
  1750. if (*playerHP > 0.0f)
  1751. {
  1752. float* x = (float*)((*pMtrx1) + 0x30);//X position Ped
  1753. float* y = (float*)((*pMtrx1) + 0x34);//Y position Ped
  1754. float* z = (float*)((*pMtrx1) + 0x38);//Z position Ped
  1755.  
  1756.  
  1757. float* x1 = (float*)((*pMtrx2) + 0x30);//X position Target
  1758. float* y1 = (float*)((*pMtrx2) + 0x34);//Y position Target
  1759. float* z1 = (float*)((*pMtrx2) + 0x38);//Z position Target
  1760. float* RotAngle = (float*)((*pActor) + 0x558);//health of target player
  1761. float Xwiping = (float)*x + 2 * (float)cos(*RotAngle + 1.48353F);
  1762. float Ywiping = (float)*y + 2 * (float)sin(*RotAngle + 1.48353F);
  1763. float Zwiping = (float)*z + 0.5F;
  1764. *x1 = (float)Xwiping;
  1765. *y1 = (float)Ywiping;
  1766. *z1 = (float)Zwiping;
  1767. }
  1768. }
  1769. }
  1770. if (riflepoor2)
  1771. {
  1772. if (*pPed > 0)
  1773. {
  1774.  
  1775. if (*playerHP > 0.0f)
  1776. {
  1777. float* x = (float*)((*pMtrx1) + 0x30);//X position Ped
  1778. float* y = (float*)((*pMtrx1) + 0x34);//Y position Ped
  1779. float* z = (float*)((*pMtrx1) + 0x38);//Z position Ped
  1780.  
  1781.  
  1782. float* x1 = (float*)((*pMtrx2) + 0x30);//X position Target
  1783. float* y1 = (float*)((*pMtrx2) + 0x34);//Y position Target
  1784. float* z1 = (float*)((*pMtrx2) + 0x38);//Z position Target
  1785. float* RotAngle = (float*)((*pActor) + 0x558);//health of target player
  1786. float Xwiping = (float)*x + 2 * (float)cos(*RotAngle + 1.48353F);
  1787. float Ywiping = (float)*y + 2 * (float)sin(*RotAngle + 1.48353F);
  1788. float Zwiping = (float)*z + 0.5F;
  1789. *x1 = (float)Xwiping;
  1790. *y1 = (float)Ywiping;
  1791. *z1 = (float)Zwiping;
  1792. }
  1793. }
  1794. }
  1795.  
  1796. if (akpoor2)
  1797. {
  1798. if (*pPed > 0)
  1799. {
  1800.  
  1801. if (*playerHP > 0.0f)
  1802. {
  1803. float* x = (float*)((*pMtrx1) + 0x30);//X position Ped
  1804. float* y = (float*)((*pMtrx1) + 0x34);//Y position Ped
  1805. float* z = (float*)((*pMtrx1) + 0x38);//Z position Ped
  1806.  
  1807.  
  1808. float* x1 = (float*)((*pMtrx2) + 0x30);//X position Target
  1809. float* y1 = (float*)((*pMtrx2) + 0x34);//Y position Target
  1810. float* z1 = (float*)((*pMtrx2) + 0x38);//Z position Target
  1811. float* RotAngle = (float*)((*pActor) + 0x558);//health of target player
  1812. float Xwiping = (float)*x + 2 * (float)cos(*RotAngle + 1.48353F);
  1813. float Ywiping = (float)*y + 2 * (float)sin(*RotAngle + 1.48353F);
  1814. float Zwiping = (float)*z + 0.5F;
  1815. *x1 = (float)Xwiping;
  1816. *y1 = (float)Ywiping;
  1817. *z1 = (float)Zwiping;
  1818. }
  1819. }
  1820. }
  1821.  
  1822. if (combatpoor2)
  1823. {
  1824. if (*pPed > 0)
  1825. {
  1826.  
  1827. if (*playerHP > 0.0f)
  1828. {
  1829. float* x = (float*)((*pMtrx1) + 0x30);//X position Ped
  1830. float* y = (float*)((*pMtrx1) + 0x34);//Y position Ped
  1831. float* z = (float*)((*pMtrx1) + 0x38);//Z position Ped
  1832.  
  1833.  
  1834. float* x1 = (float*)((*pMtrx2) + 0x30);//X position Target
  1835. float* y1 = (float*)((*pMtrx2) + 0x34);//Y position Target
  1836. float* z1 = (float*)((*pMtrx2) + 0x38);//Z position Target
  1837. float* RotAngle = (float*)((*pActor) + 0x558);//health of target player
  1838. float Xwiping = (float)*x + 2 * (float)cos(*RotAngle + 1.48353F);
  1839. float Ywiping = (float)*y + 2 * (float)sin(*RotAngle + 1.48353F);
  1840. float Zwiping = (float)*z + 0.5F;
  1841. *x1 = (float)Xwiping;
  1842. *y1 = (float)Ywiping;
  1843. *z1 = (float)Zwiping;
  1844. }
  1845. }
  1846. }
  1847.  
  1848. if (mp5poor2)
  1849. {
  1850. if (*pPed > 0)
  1851. {
  1852.  
  1853. if (*playerHP > 0.0f)
  1854. {
  1855. float* x = (float*)((*pMtrx1) + 0x30);//X position Ped
  1856. float* y = (float*)((*pMtrx1) + 0x34);//Y position Ped
  1857. float* z = (float*)((*pMtrx1) + 0x38);//Z position Ped
  1858.  
  1859.  
  1860. float* x1 = (float*)((*pMtrx2) + 0x30);//X position Target
  1861. float* y1 = (float*)((*pMtrx2) + 0x34);//Y position Target
  1862. float* z1 = (float*)((*pMtrx2) + 0x38);//Z position Target
  1863. float* RotAngle = (float*)((*pActor) + 0x558);//health of target player
  1864. float Xwiping = (float)*x + 2 * (float)cos(*RotAngle + 1.48353F);
  1865. float Ywiping = (float)*y + 2 * (float)sin(*RotAngle + 1.48353F);
  1866. float Zwiping = (float)*z + 0.5F;
  1867. *x1 = (float)Xwiping;
  1868. *y1 = (float)Ywiping;
  1869. *z1 = (float)Zwiping;
  1870. }
  1871. }
  1872. }
  1873.  
  1874. if (sniperpoor2)
  1875. {
  1876. if (*pPed > 0)
  1877. {
  1878.  
  1879. if (*playerHP > 0.0f)
  1880. {
  1881. float* x = (float*)((*pMtrx1) + 0x30);//X position Ped
  1882. float* y = (float*)((*pMtrx1) + 0x34);//Y position Ped
  1883. float* z = (float*)((*pMtrx1) + 0x38);//Z position Ped
  1884.  
  1885.  
  1886. float* x1 = (float*)((*pMtrx2) + 0x30);//X position Target
  1887. float* y1 = (float*)((*pMtrx2) + 0x34);//Y position Target
  1888. float* z1 = (float*)((*pMtrx2) + 0x38);//Z position Target
  1889. float* RotAngle = (float*)((*pActor) + 0x558);//health of target player
  1890. float Xwiping = (float)*x + 2 * (float)cos(*RotAngle + 1.48353F);
  1891. float Ywiping = (float)*y + 2 * (float)sin(*RotAngle + 1.48353F);
  1892. float Zwiping = (float)*z + 0.5F;
  1893. *x1 = (float)Xwiping;
  1894. *y1 = (float)Ywiping;
  1895. *z1 = (float)Zwiping;
  1896. }
  1897. }
  1898. }
  1899. }
  1900. }
  1901. }
  1902.  
  1903. if (cheat_enable_spammer)
  1904. {
  1905. if (strlen(cheat_spammer_text))
  1906. {
  1907. if (cheat_spammer_delay)
  1908. {
  1909. static int sent = 0;
  1910.  
  1911. if ((GetTickCount() - sent) >= cheat_spammer_delay)
  1912. {
  1913. say(cheat_spammer_text);
  1914. sent = GetTickCount();
  1915. }
  1916. }
  1917. else
  1918. {
  1919. say(cheat_spammer_text);
  1920. }
  1921. }
  1922. }
  1923.  
  1924. //WaterCar
  1925. // start watercar
  1926. if (watercarvar)
  1927. {
  1928. everything();
  1929. DWORD watercarAddr = 0x6C2759;
  1930. DWORD watercar = 1;
  1931. ReadProcessMemory(handle, (LPVOID)watercarAddr, &watercar, sizeof(watercar), 0);
  1932.  
  1933. watercar = 1;
  1934. WriteProcessMemory(handle, (LPVOID)watercarAddr, &watercar, sizeof(watercar), 0);
  1935. Sleep(10);
  1936.  
  1937. }
  1938. // stop watercar
  1939. if (!watercarvar)
  1940. {
  1941. everything();
  1942. DWORD watercarAddr = 0x6C2759;
  1943. DWORD watercar = 0;
  1944. ReadProcessMemory(handle, (LPVOID)watercarAddr, &watercar, sizeof(watercar), 0);
  1945.  
  1946. if (watercar = 1)
  1947. {
  1948. watercar = 0;
  1949. WriteProcessMemory(handle, (LPVOID)watercarAddr, &watercar, sizeof(watercar), 0);
  1950. Sleep(10);
  1951. }
  1952.  
  1953. }
  1954.  
  1955. //tankmode
  1956. if (tankmodecar)
  1957. {
  1958. everything();
  1959. DWORD tankmodeAddr = 0x969164;
  1960. DWORD tankmode = 1;
  1961. ReadProcessMemory(handle, (LPVOID)tankmodeAddr, &tankmode, sizeof(tankmode), 0);
  1962.  
  1963. tankmode = 1;
  1964. WriteProcessMemory(handle, (LPVOID)tankmodeAddr, &tankmode, sizeof(tankmode), 0);
  1965. Sleep(10);
  1966.  
  1967. }
  1968. // stop tank
  1969. if (!tankmodecar)
  1970. {
  1971. everything();
  1972. DWORD tankmodeAddr = 0x969164;
  1973. DWORD tankmode = 0;
  1974. ReadProcessMemory(handle, (LPVOID)tankmodeAddr, &tankmode, sizeof(tankmode), 0);
  1975.  
  1976. if (tankmode = 1)
  1977. {
  1978. tankmode = 0;
  1979. WriteProcessMemory(handle, (LPVOID)tankmodeAddr, &tankmode, sizeof(tankmode), 0);
  1980. Sleep(10);
  1981. }
  1982.  
  1983. }
  1984. //nitro
  1985. if (nitrocar)
  1986. {
  1987. everything();
  1988. DWORD nitromodeAddr = 0x969165;
  1989. DWORD nitromode = 1;
  1990. ReadProcessMemory(handle, (LPVOID)nitromodeAddr, &nitromode, sizeof(nitromode), 0);
  1991.  
  1992. nitromode = 1;
  1993. WriteProcessMemory(handle, (LPVOID)nitromodeAddr, &nitromode, sizeof(nitromode), 0);
  1994. Sleep(10);
  1995.  
  1996. }
  1997. // stop nitro
  1998. if (!nitrocar)
  1999. {
  2000. everything();
  2001. DWORD nitromodeAddr = 0x969165;
  2002. DWORD nitromode = 0;
  2003. ReadProcessMemory(handle, (LPVOID)nitromodeAddr, &nitromode, sizeof(nitromode), 0);
  2004.  
  2005. if (nitromode = 1)
  2006. {
  2007. nitromode = 0;
  2008. WriteProcessMemory(handle, (LPVOID)nitromodeAddr, &nitromode, sizeof(nitromode), 0);
  2009. Sleep(10);
  2010. }
  2011.  
  2012. }
  2013.  
  2014. // TRIGGERBOT
  2015. if (Trigger)
  2016. {
  2017.  
  2018. int rem[5];
  2019. int wID;
  2020. wID = *(BYTE*)0xBAA410;
  2021. rem[0] = *(int *)0xB6F3B8;
  2022. rem[1] = rem[0];
  2023. rem[1] += 0x79C;
  2024. if (wID == 24 && deaglepoor23 || wID == 31 && m4poor23 || wID == 30 && akpoor23 || wID == 27 && combatpoor23 || wID == 33 && riflepoor23 || wID == 29 && mp5poor23 || wID == 34 && sniperpoor23)
  2025. {
  2026. if (deaglepoor23)
  2027. {
  2028. if (*(int *)rem[1] > 0)
  2029. {
  2030. INPUT Input = { 0 };
  2031. Input.type = INPUT_MOUSE;
  2032. Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
  2033. SendInput(1, &Input, sizeof(INPUT));
  2034. Sleep(100);
  2035. ZeroMemory(&Input, sizeof(INPUT));
  2036. Input.type = INPUT_MOUSE;
  2037. Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
  2038. SendInput(1, &Input, sizeof(INPUT));
  2039. }
  2040. }
  2041. if (m4poor23)
  2042. {
  2043. if (*(int *)rem[1] > 0)
  2044. {
  2045. INPUT Input = { 0 };
  2046. Input.type = INPUT_MOUSE;
  2047. Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
  2048. SendInput(1, &Input, sizeof(INPUT));
  2049. Sleep(100);
  2050. ZeroMemory(&Input, sizeof(INPUT));
  2051. Input.type = INPUT_MOUSE;
  2052. Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
  2053. SendInput(1, &Input, sizeof(INPUT));
  2054. }
  2055. }
  2056. if (akpoor23)
  2057. {
  2058. if (*(int *)rem[1] > 0)
  2059. {
  2060. INPUT Input = { 0 };
  2061. Input.type = INPUT_MOUSE;
  2062. Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
  2063. SendInput(1, &Input, sizeof(INPUT));
  2064. Sleep(100);
  2065. ZeroMemory(&Input, sizeof(INPUT));
  2066. Input.type = INPUT_MOUSE;
  2067. Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
  2068. SendInput(1, &Input, sizeof(INPUT));
  2069. }
  2070. }
  2071. if (combatpoor23)
  2072. {
  2073. if (*(int *)rem[1] > 0)
  2074. {
  2075. INPUT Input = { 0 };
  2076. Input.type = INPUT_MOUSE;
  2077. Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
  2078. SendInput(1, &Input, sizeof(INPUT));
  2079. Sleep(100);
  2080. ZeroMemory(&Input, sizeof(INPUT));
  2081. Input.type = INPUT_MOUSE;
  2082. Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
  2083. SendInput(1, &Input, sizeof(INPUT));
  2084. }
  2085. }
  2086. if (riflepoor23)
  2087. {
  2088. if (*(int *)rem[1] > 0)
  2089. {
  2090. INPUT Input = { 0 };
  2091. Input.type = INPUT_MOUSE;
  2092. Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
  2093. SendInput(1, &Input, sizeof(INPUT));
  2094. Sleep(100);
  2095. ZeroMemory(&Input, sizeof(INPUT));
  2096. Input.type = INPUT_MOUSE;
  2097. Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
  2098. SendInput(1, &Input, sizeof(INPUT));
  2099. }
  2100. }
  2101. if (mp5poor23)
  2102. {
  2103. if (*(int *)rem[1] > 0)
  2104. {
  2105. INPUT Input = { 0 };
  2106. Input.type = INPUT_MOUSE;
  2107. Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
  2108. SendInput(1, &Input, sizeof(INPUT));
  2109. Sleep(100);
  2110. ZeroMemory(&Input, sizeof(INPUT));
  2111. Input.type = INPUT_MOUSE;
  2112. Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
  2113. SendInput(1, &Input, sizeof(INPUT));
  2114. }
  2115. }
  2116. if (sniperpoor23)
  2117. {
  2118. if (*(int *)rem[1] > 0)
  2119. {
  2120. INPUT Input = { 0 };
  2121. Input.type = INPUT_MOUSE;
  2122. Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
  2123. SendInput(1, &Input, sizeof(INPUT));
  2124. Sleep(100);
  2125. ZeroMemory(&Input, sizeof(INPUT));
  2126. Input.type = INPUT_MOUSE;
  2127. Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
  2128. SendInput(1, &Input, sizeof(INPUT));
  2129. }
  2130. }
  2131. }
  2132. }
  2133.  
  2134.  
  2135. // inf ammo
  2136. if (infammovar)
  2137. {
  2138. everything();
  2139. DWORD infiniteammoAddr = 0x969178;
  2140. DWORD infiniteammo3 = 1;
  2141. WriteProcessMemory(handle, (LPVOID)infiniteammoAddr, &infiniteammo3, sizeof(infiniteammo3), 0);
  2142. }
  2143.  
  2144. if (!infammovar)
  2145. {
  2146. everything();
  2147. DWORD infiniteammoAddr = 0x969178;
  2148. DWORD infiniteammo3 = 0;
  2149. WriteProcessMemory(handle, (LPVOID)infiniteammoAddr, &infiniteammo3, sizeof(infiniteammo3), 0);
  2150.  
  2151. infiniteammo3 = 0;
  2152. Sleep(10);
  2153.  
  2154. }
  2155. if (thermalvisionvar)
  2156. {
  2157. everything();
  2158. DWORD thermalvisionAddr = 0xC402B8;
  2159. DWORD thermalvision = 1;
  2160.  
  2161. ReadProcessMemory(handle, (LPCVOID)thermalvisionAddr, &thermalvision, sizeof(thermalvision), 0);
  2162.  
  2163. thermalvision = 1;
  2164. DWORD valuetherm = 256;
  2165. WriteProcessMemory(handle, (LPVOID)thermalvisionAddr, &valuetherm, sizeof(valuetherm), 0);
  2166. Sleep(10);
  2167.  
  2168. }
  2169. //stop thermal
  2170. if (!thermalvisionvar)
  2171. {
  2172. everything();
  2173. DWORD thermalvisionAddr = 0xC402B8;
  2174. DWORD thermalvision = 0;
  2175.  
  2176. ReadProcessMemory(handle, (LPCVOID)thermalvisionAddr, &thermalvision, sizeof(thermalvision), 0);
  2177.  
  2178. thermalvision = 0;
  2179. DWORD valuetherm = 0;
  2180. WriteProcessMemory(handle, (LPVOID)thermalvisionAddr, &thermalvision, sizeof(valuetherm), 0);
  2181.  
  2182. }
  2183. if (c_norecoil)
  2184. {
  2185. everything();
  2186. int wID;
  2187. wID = *(BYTE*)0xBAA410;
  2188. DWORD norecoilAddr = 0xB7CDC8;
  2189. DWORD norecoil = 1;
  2190. if (wID == 24 && deaglepoor24 || wID == 31 && m4poor24 || wID == 30 && akpoor24 || wID == 27 && combatpoor24 || wID == 33 && riflepoor24 || wID == 29 && mp5poor24)
  2191. {
  2192. if (m4poor24)
  2193. {
  2194.  
  2195. ReadProcessMemory(handle, (LPCVOID)norecoilAddr, &norecoil, sizeof(norecoil), 0);
  2196.  
  2197. norecoil = 1;
  2198. DWORD valuetherm = 1.074754357;
  2199. WriteProcessMemory(handle, (LPVOID)norecoilAddr, &valuetherm, sizeof(valuetherm), 0);
  2200. Sleep(10);
  2201. }
  2202. if (deaglepoor24)
  2203. {
  2204.  
  2205. ReadProcessMemory(handle, (LPCVOID)norecoilAddr, &norecoil, sizeof(norecoil), 0);
  2206.  
  2207. norecoil = 1;
  2208. DWORD valuetherm = 1.074754357;
  2209. WriteProcessMemory(handle, (LPVOID)norecoilAddr, &valuetherm, sizeof(valuetherm), 0);
  2210. Sleep(10);
  2211. }
  2212. if (akpoor24)
  2213. {
  2214.  
  2215. ReadProcessMemory(handle, (LPCVOID)norecoilAddr, &norecoil, sizeof(norecoil), 0);
  2216.  
  2217. norecoil = 1;
  2218. DWORD valuetherm = 1.074754357;
  2219. WriteProcessMemory(handle, (LPVOID)norecoilAddr, &valuetherm, sizeof(valuetherm), 0);
  2220. Sleep(10);
  2221. }
  2222. if (combatpoor24)
  2223. {
  2224.  
  2225. ReadProcessMemory(handle, (LPCVOID)norecoilAddr, &norecoil, sizeof(norecoil), 0);
  2226.  
  2227. norecoil = 1;
  2228. DWORD valuetherm = 1.074754357;
  2229. WriteProcessMemory(handle, (LPVOID)norecoilAddr, &valuetherm, sizeof(valuetherm), 0);
  2230. Sleep(10);
  2231. }
  2232. if (riflepoor24)
  2233. {
  2234.  
  2235. ReadProcessMemory(handle, (LPCVOID)norecoilAddr, &norecoil, sizeof(norecoil), 0);
  2236.  
  2237. norecoil = 1;
  2238. DWORD valuetherm = 1.074754357;
  2239. WriteProcessMemory(handle, (LPVOID)norecoilAddr, &valuetherm, sizeof(valuetherm), 0);
  2240. Sleep(10);
  2241. }
  2242. if (mp5poor24)
  2243. {
  2244.  
  2245. ReadProcessMemory(handle, (LPCVOID)norecoilAddr, &norecoil, sizeof(norecoil), 0);
  2246.  
  2247. norecoil = 1;
  2248. DWORD valuetherm = 1.074754357;
  2249. WriteProcessMemory(handle, (LPVOID)norecoilAddr, &valuetherm, sizeof(valuetherm), 0);
  2250. Sleep(10);
  2251. }
  2252. }
  2253. }
  2254.  
  2255. if (wall)
  2256. {
  2257. pInfo = (DWORD*)(g_dwSAMP_Addr + SAMP_INFO);
  2258. while (*pInfo == 0) Sleep(1000);
  2259. while (*(DWORD*)(*pInfo + SAMP_SETTINGS) == 0) Sleep(1000);
  2260. ThroughWalls = (BYTE*)(*(DWORD*)(*pInfo + SAMP_SETTINGS) + 0x2F);
  2261. fDistance = (float*)((DWORD*)(*(DWORD*)(*pInfo + SAMP_SETTINGS) + 0x27));
  2262.  
  2263. DWORD OldProt;
  2264. VirtualProtect((LPVOID)ThroughWalls, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
  2265. VirtualProtect((LPVOID)fDistance, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
  2266.  
  2267. if (*ThroughWalls != 512)
  2268. {
  2269.  
  2270. *fDistance = (float)whsize * 15;
  2271. *ThroughWalls = 512;
  2272. }
  2273.  
  2274. if (GetAsyncKeyState(VK_F8))
  2275. {
  2276. *fDistance = 70;
  2277. Sleep(100);
  2278. *ThroughWalls = 513;
  2279. }
  2280. }
  2281. else
  2282. {
  2283. pInfo = (DWORD*)(g_dwSAMP_Addr + SAMP_INFO);
  2284. while (*pInfo == 0) Sleep(1000);
  2285. while (*(DWORD*)(*pInfo + SAMP_SETTINGS) == 0) Sleep(1000);
  2286. ThroughWalls = (BYTE*)(*(DWORD*)(*pInfo + SAMP_SETTINGS) + 0x2F);
  2287. fDistance = (float*)((DWORD*)(*(DWORD*)(*pInfo + SAMP_SETTINGS) + 0x27));
  2288.  
  2289. DWORD OldProt;
  2290. VirtualProtect((LPVOID)ThroughWalls, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
  2291. VirtualProtect((LPVOID)fDistance, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
  2292.  
  2293. if (*ThroughWalls != 513)
  2294. {
  2295.  
  2296. *fDistance = 70;
  2297. *ThroughWalls = 513;
  2298. }
  2299. }
  2300. // FPS UNLOCKER
  2301. if (fpsunlockvar)
  2302. {
  2303. everything();
  2304. DWORD fps = 0;
  2305. ReadProcessMemory(handle, (LPCVOID)((DWORD)samp + 0x9D9D0), &fps, sizeof(fps), 0);
  2306.  
  2307. if (fps != 1347550997)
  2308. {
  2309. DWORD pFps = 1347550997;
  2310. WriteProcessMemory(handle, (LPVOID)((DWORD)samp + 0x9D9D0), &pFps, sizeof(pFps), 0);
  2311.  
  2312. }
  2313. }
  2314.  
  2315. //FPS UNLOCKER STOP
  2316. if (!fpsunlockvar)
  2317. {
  2318. everything();
  2319. DWORD fps = 0;
  2320. ReadProcessMemory(handle, (LPCVOID)((DWORD)samp + 0x9D9D0), &fps, sizeof(fps), 0);
  2321.  
  2322. if (fps == 1347550997)
  2323. {
  2324. DWORD pFps = 1347550997;
  2325. WriteProcessMemory(handle, (LPVOID)((DWORD)samp + 0x9D9D0), &pFps, sizeof(pFps), 0);
  2326.  
  2327. }
  2328. }
  2329.  
  2330. // Infinite oxygen
  2331. // start oxygen
  2332. if (ioxygen)
  2333. {
  2334. everything();
  2335. DWORD infiniteoxygenAddr = 0x96916E;
  2336. DWORD infiniteoxygen = 1;
  2337.  
  2338. WriteProcessMemory(handle, (LPVOID)infiniteoxygenAddr, &infiniteoxygen, sizeof(infiniteoxygen), 0);
  2339. }
  2340.  
  2341. // stop oxygen
  2342. if (!ioxygen)
  2343. {
  2344. everything();
  2345. DWORD infiniteoxygenAddr = 0x96916E;
  2346. DWORD infiniteoxygen = 0;
  2347.  
  2348. WriteProcessMemory(handle, (LPVOID)infiniteoxygenAddr, &infiniteoxygen, sizeof(infiniteoxygen), 0);
  2349. }
  2350.  
  2351. // INFINITE RUN
  2352. if (c_infRun)
  2353. {
  2354.  
  2355. *infRun = 1;
  2356. c_infRun = true;
  2357.  
  2358. }
  2359. else {
  2360. *infRun = 0;
  2361. c_infRun = false;
  2362. }
  2363.  
  2364. if (c_aimbot)
  2365. {
  2366. c_aimbot = true;
  2367.  
  2368. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)0xB6F5F0, &gpoint, 4, 0);
  2369.  
  2370. if ((gpoint > 0) && (t == 0))
  2371. {
  2372. t = 1;
  2373. }
  2374. if (gpoint > 0)
  2375. {
  2376. pmtrx1 = gpoint + 0x14;
  2377. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)pmtrx1, &pmtrx1, 4, 0);
  2378. xpos1 = pmtrx1 + 0x30;
  2379. ypos1 = pmtrx1 + 0x34;
  2380. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)xpos1, &fxpos1, 4, 0);
  2381. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)ypos1, &fypos1, 4, 0);
  2382. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)0xB6F9CC, &fcxpos, 4, 0);
  2383. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)0xB6F9D0, &fcypos, 4, 0);
  2384. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)0xB6F3B8, &ptarget, 4, 0);
  2385. pped = ptarget + 0x79C;
  2386. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)pped, &pped, 4, 0);
  2387.  
  2388. if (pped > 0)
  2389. {
  2390. pvectorx = pped + 0x44;
  2391. pvectory = pped + 0x48;
  2392. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)pvectorx, &fpvectorx, 4, 0);
  2393. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)pvectory, &fpvectory, 4, 0);
  2394. pmtrx2 = pped + 0x14;
  2395. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)pmtrx2, &pmtrx2, 4, 0);
  2396. xpos2 = pmtrx2 + 0x30;
  2397. ypos2 = pmtrx2 + 0x34;
  2398. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)xpos2, &fxpos2, 4, 0);
  2399. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)ypos2, &fypos2, 4, 0);
  2400. php = pped + 0x540;
  2401. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)php, &fphp, 4, 0);
  2402. if (fphp > 0)
  2403. {
  2404. fxpos2a = fxpos2;
  2405. fypos2a = fypos2;
  2406. aa = fabs(fcxpos - fxpos2);
  2407. ab = fabs(fcypos - fypos2);
  2408. ac = sqrt(aa*aa + ab * ab);
  2409. alpha = asin(aa / ac);
  2410. beta = acos(aa / ac);
  2411. if ((fxpos1 > fxpos2) && (fypos1 < fypos2))
  2412. {
  2413. beta = -beta;
  2414. }
  2415. if ((fxpos1 > fxpos2) && (fypos1 > fypos2))
  2416. {
  2417. beta = beta;
  2418. }
  2419. if ((fxpos1 < fxpos2) && (fypos1 > fypos2))
  2420. {
  2421. beta = (alpha + (3.14 / 2));
  2422. }
  2423. if ((fxpos1 < fxpos2) && (fypos1 < fypos2))
  2424. {
  2425. beta = (-alpha - (3.14 / 2));
  2426. }
  2427. camxpos = beta + 0.0389;
  2428. ReadProcessMemory(GetCurrentProcess(), (LPCVOID)0xB7347A, &keyt, 4, 0);
  2429. if (keyt > 0)
  2430. {
  2431. WriteProcessMemory(GetCurrentProcess(), (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL);
  2432. }
  2433. }
  2434. }
  2435. }
  2436. }
  2437. else {
  2438. c_aimbot = false;
  2439. }
  2440.  
  2441. if (normalaim)
  2442. {
  2443. float fcxpos;
  2444. float fcypos;
  2445. float camxpos;
  2446. float camypos;
  2447. float fpvectorx;
  2448. float fpvectory;
  2449. float fxpos1;
  2450. float fypos1;
  2451. float fzpos1;
  2452. float fxpos2;
  2453. float fypos2;
  2454. float fzpos2;
  2455. float fxpos2a;
  2456. float fypos2a;
  2457. float fzpos2a;
  2458. float fphp;
  2459. float aa;
  2460. float ab;
  2461. float ac;
  2462. float beta;
  2463. float alpha;
  2464. int t;
  2465. int wID;
  2466. int keyt;
  2467. t = 0;
  2468.  
  2469. DWORD php;
  2470. DWORD xpos1;
  2471. DWORD ypos1;
  2472. DWORD zpos1;
  2473. DWORD xpos2;
  2474. DWORD ypos2;
  2475. DWORD zpos2;
  2476. DWORD pmtrx1;
  2477. DWORD pmtrx2;
  2478. DWORD pvectorx;
  2479. DWORD pvectory;
  2480. DWORD gpoint;
  2481. DWORD ptarget;
  2482. DWORD pped;
  2483. DWORD pId;
  2484. ReadProcessMemory(handle, (LPCVOID)0xBAA410, &wID, sizeof(int), 0);
  2485. ReadProcessMemory(handle, (LPCVOID)0xB6F5F0, &gpoint, 4, 0);
  2486.  
  2487.  
  2488.  
  2489. if (gpoint > 0) {
  2490. pmtrx1 = gpoint + 0x14; // location pointer of player XYZ
  2491. ReadProcessMemory(handle, (LPCVOID)pmtrx1, &pmtrx1, 4, 0);
  2492.  
  2493. xpos1 = pmtrx1 + 0x30; // x position of player
  2494. ypos1 = pmtrx1 + 0x34; // y position of player
  2495. zpos1 = pmtrx1 + 0x38; // z position of player
  2496.  
  2497. ReadProcessMemory(handle, (LPCVOID)xpos1, &fxpos1, 4, 0);
  2498. ReadProcessMemory(handle, (LPCVOID)ypos1, &fypos1, 4, 0);
  2499. ReadProcessMemory(handle, (LPCVOID)zpos1, &fzpos1, 4, 0);
  2500.  
  2501. ReadProcessMemory(handle, (LPCVOID)0xB6F9CC, &fcxpos, 4, 0); // not really sure
  2502. ReadProcessMemory(handle, (LPCVOID)0xB6F9D0, &fcypos, 4, 0); // not really sure
  2503.  
  2504. ReadProcessMemory(handle, (LPCVOID)0xB6F3B8, &ptarget, 4, 0); // pointer to target
  2505.  
  2506. pped = ptarget + 0x79C; // our current target
  2507. ReadProcessMemory(handle, (LPCVOID)pped, &pped, 4, 0);
  2508.  
  2509. if (pped > 0)
  2510. {
  2511. pvectorx = pped + 0x44; // border (x) (hitbox)
  2512. pvectory = pped + 0x48; // border (y) (hitbox)
  2513.  
  2514. ReadProcessMemory(handle, (LPCVOID)pvectorx, &fpvectorx, 4, 0);
  2515. ReadProcessMemory(handle, (LPCVOID)pvectory, &fpvectory, 4, 0);
  2516.  
  2517. pmtrx2 = pped + 0x14; // pointer to XYZ of target
  2518. ReadProcessMemory(handle, (LPCVOID)pmtrx2, &pmtrx2, 4, 0);
  2519.  
  2520. xpos2 = pmtrx2 + 0x30; // x position (of target)
  2521. ypos2 = pmtrx2 + 0x34; // y position (of target)
  2522. zpos2 = pmtrx2 + 0x38; // position (of target)
  2523.  
  2524. ReadProcessMemory(handle, (LPCVOID)xpos2, &fxpos2, 4, 0);
  2525. ReadProcessMemory(handle, (LPCVOID)ypos2, &fypos2, 4, 0);
  2526. ReadProcessMemory(handle, (LPCVOID)zpos2, &fzpos2, 4, 0);
  2527.  
  2528. php = pped + 0x540; // ped health
  2529. ReadProcessMemory(handle, (LPCVOID)php, &fphp, 4, 0);
  2530.  
  2531. float theta, dist;
  2532. if (fphp > 0) // if ped health > 0
  2533. {
  2534. //dist = sqrt((float)(xpos2-xpos1)*(xpos2-xpos1) + (ypos2-ypos1)*(ypos2-ypos1) + (zpos2-zpos1)*(zpos2-zpos1));
  2535.  
  2536. dist = sqrt((fxpos2 - fxpos1)*(fxpos2 - fxpos1) + (fypos2 - fypos1)*(fypos2 - fypos1) + (fzpos2 - fzpos1)*(fzpos2 - fzpos1));
  2537. theta = asin((fzpos2 - fzpos1) / dist);
  2538. theta -= (90 / (3.14 * 180));
  2539.  
  2540. fxpos2a = fxpos2;
  2541. fypos2a = fypos2;
  2542.  
  2543. aa = fabs(fcxpos - fxpos2);
  2544. ab = fabs(fcypos - fypos2);
  2545. ac = sqrt(aa*aa + ab * ab);
  2546.  
  2547. alpha = asin(aa / ac);
  2548. beta = acos(aa / ac);
  2549.  
  2550. if ((fxpos1 > fxpos2) && (fypos1 < fypos2))
  2551. {
  2552. beta = -beta;
  2553. }
  2554. if ((fxpos1 > fxpos2) && (fypos1 > fypos2))
  2555. {
  2556. beta = beta;
  2557. }
  2558. if ((fxpos1 < fxpos2) && (fypos1 > fypos2))
  2559. {
  2560. beta = (alpha + (3.14 / 2));
  2561. }
  2562. if ((fxpos1 < fxpos2) && (fypos1 < fypos2))
  2563. {
  2564. beta = (-alpha - (3.14 / 2));
  2565. }
  2566.  
  2567. if (wID == 24 && deaglechecked) {
  2568. camxpos = beta + 0.0410;
  2569. camypos = theta + 0.0389 + dist / 3000;
  2570. WriteProcessMemory(handle, (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL); // write X-coordinate vector to X-coordinate vector of camera
  2571. }
  2572. if (wID == 31 && m4a1checked) {
  2573. camxpos = beta + 0.0300 + (dist / 14000);
  2574. camypos = theta + 0.0389 + dist / 3000;
  2575. WriteProcessMemory(handle, (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL); // write X-coordinate vector to X-coordinate vector of camera
  2576. }
  2577. if (wID == 27 && combatchecked) {
  2578. camxpos = beta + 0.0300 + (dist / 14000);
  2579. camypos = theta + 0.0389 + dist / 3000;
  2580. WriteProcessMemory(handle, (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL); // write X-coordinate vector to X-coordinate vector of camera
  2581. }
  2582. if (wID == 32 && tecchecked) {
  2583. camxpos = beta + 0.0300 + (dist / 14000);
  2584. camypos = theta + 0.0389 + dist / 3000;
  2585. WriteProcessMemory(handle, (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL); // write X-coordinate vector to X-coordinate vector of camera
  2586. }
  2587. if (wID == 33 && riflechecked){
  2588. camxpos = beta + 0.0300 + (dist / 14000);
  2589. camypos = theta + 0.0389 + dist / 3000;
  2590. WriteProcessMemory(handle, (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL); // write X-coordinate vector to X-coordinate vector of camera
  2591. }
  2592. if (wID == 25 && shotgunchecked) {
  2593. camxpos = beta + 0.0300 + (dist / 14000);
  2594. camypos = theta + 0.0389 + dist / 3000;
  2595. WriteProcessMemory(handle, (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL); // write X-coordinate vector to X-coordinate vector of camera
  2596. }
  2597. if (wID == 23 && silencedchecked) {
  2598. camxpos = beta + 0.0300 + (dist / 14000);
  2599. camypos = theta + 0.0389 + dist / 3000;
  2600. WriteProcessMemory(handle, (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL); // write X-coordinate vector to X-coordinate vector of camera
  2601. }
  2602. if (wID == 38 && minigunchecked) {
  2603. camxpos = beta + 0.0300 + (dist / 14000);
  2604. camypos = theta + 0.0389 + dist / 3000;
  2605. WriteProcessMemory(handle, (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL); // write X-coordinate vector to X-coordinate vector of camera
  2606. }
  2607. if (wID == 34 && sniperchecked) {
  2608. camxpos = beta + 0.0300 + (dist / 14000);
  2609. camypos = theta + 0.0389 + dist / 3000;
  2610. WriteProcessMemory(handle, (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL); // write X-coordinate vector to X-coordinate vector of camera
  2611. }
  2612. if (wID == 30 && akchecked) {
  2613. camxpos = beta + 0.0300 + (dist / 14000);
  2614. camypos = theta + 0.0389 + dist / 3000;
  2615. WriteProcessMemory(handle, (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL); // write X-coordinate vector to X-coordinate vector of camera
  2616. }
  2617. if (wID == 29 && mp5checked) {
  2618. camxpos = beta + 0.0300 + (dist / 14000);
  2619. camypos = theta + 0.0389 + dist / 3000;
  2620. WriteProcessMemory(handle, (LPVOID)0xB6F258, (LPVOID)&camxpos, 4, NULL); // write X-coordinate vector to X-coordinate vector of camera
  2621. }
  2622. }
  2623. }
  2624. }
  2625. }
  2626.  
  2627. }
  2628.  
  2629.  
  2630. HRESULT __stdcall Hooked_Present(IDirect3DDevice9 *pDevice, CONST RECT *pSrcRect, CONST RECT *pDestRect, HWND hDestWindow, CONST RGNDATA *pDirtyRegion)
  2631. {
  2632. static float rainbow_color_redus; //speed
  2633. rainbow_color_redus += misc_RainbowSpeed = 0.0001 * rrspeed;
  2634. if (rainbow_color_redus > 1.f) rainbow_color_redus = 0.f;
  2635. DWORD rainbow_color_x = Color2::ToImColor(Color2::FromHSB(rainbow_color_redus, 1.f, 1.f));
  2636. ImVec4 mainColorActive = Color2::ToImColor(Color2::FromHSB(rainbow_color_redus, 1.f, 1.f));
  2637.  
  2638. if (RainbowHud)
  2639. {
  2640. *(DWORD*)(0xBAB22C) = rainbow_color_x;
  2641. *(DWORD*)(0xBAB230) = rainbow_color_x;
  2642. *(DWORD*)(0xBAB234) = rainbow_color_x;
  2643. *(DWORD*)(0xBAB238) = rainbow_color_x;
  2644. *(DWORD*)(0xBAB23C) = rainbow_color_x;
  2645. *(DWORD*)(0xBAB260) = rainbow_color_x;
  2646. *(DWORD*)(0xBAB240) = rainbow_color_x;
  2647. *(DWORD*)(0xBAB244) = rainbow_color_x;
  2648. *(DWORD*)(0xBAB248) = rainbow_color_x;
  2649. *(DWORD*)(0xBAB24C) = rainbow_color_x;
  2650. *(DWORD*)(0xBAB250) = rainbow_color_x;
  2651. *(DWORD*)(0xBAB254) = rainbow_color_x;
  2652. //B1G SOURCE BY RYONADV#1052
  2653. *(DWORD*)(0xBAB258) = rainbow_color_x;
  2654. *(DWORD*)(0xBAB25C) = rainbow_color_x;
  2655. *(DWORD*)(0xBAB260) = rainbow_color_x;
  2656. *(BYTE*)(0x58D973 + 1) = (BYTE)round(mainColorActive.x * 255.f);
  2657. *(BYTE*)(0x58D96E + 1) = (BYTE)round(mainColorActive.y * 255.f);
  2658. *(BYTE*)(0x58D969 + 1) = (BYTE)round(mainColorActive.z * 255.f);
  2659.  
  2660. *(BYTE*)(0x58D8AF + 1) = (BYTE)round(mainColorActive.x * 255.f);
  2661. *(BYTE*)(0x58D8AA + 1) = (BYTE)round(mainColorActive.y * 255.f);
  2662. *(BYTE*)(0x58D89F + 1) = (BYTE)round(mainColorActive.z * 255.f);
  2663. for (int i = 0; i < SAMP_MAX_TEXTDRAWS; i++)
  2664. {
  2665. if (pSAMP->getInfo()->pPools->pTextdraw->textdraw[i] == nullptr)
  2666. continue;
  2667. pSAMP->getInfo()->pPools->pTextdraw->textdraw[i]->dwLetterColor = rainbow_color_x;
  2668. // pSAMP->getInfo()->pPools->pTextdraw->textdraw[i]->dwBoxColor = rainbow_color_x;
  2669. }
  2670.  
  2671. for (int i = 0; i < SAMP_MAX_PLAYERTEXTDRAWS; i++) {
  2672. if (pSAMP->getInfo()->pPools->pTextdraw->playerTextdraw[i] == nullptr)
  2673. continue;
  2674. pSAMP->getInfo()->pPools->pTextdraw->playerTextdraw[i]->dwLetterColor = rainbow_color_x;
  2675. // pSAMP->getInfo()->pPools->pTextdraw->playerTextdraw[i]->dwBoxColor = rainbow_color_x;
  2676. }
  2677. }
  2678. if (RainbowHud == false)
  2679. {
  2680. *(DWORD*)(0xBAB22C) = 0xFF1D19B4;
  2681. *(DWORD*)(0xBAB230) = 0xFF2C6836;
  2682. *(DWORD*)(0xBAB234) = 0xFF7F3C32;
  2683. *(DWORD*)(0xBAB238) = 0xFFF1CBAC;
  2684. *(DWORD*)(0xBAB23C) = 0xFFE1E1E1;
  2685. *(DWORD*)(0xBAB240) = 0xFF000000;
  2686. *(DWORD*)(0xBAB244) = 0xFF106290;
  2687. *(DWORD*)(0xBAB248) = 0xFFFC6EA8;
  2688. *(DWORD*)(0xBAB24C) = 0xFF969696;
  2689. *(DWORD*)(0xBAB250) = 0xFF110F68;
  2690. *(DWORD*)(0xBAB254) = 0xFF1F4726;
  2691. *(DWORD*)(0xBAB258) = 0xFF63C0E2;
  2692. *(DWORD*)(0xBAB25C) = 0xFF6B5A4A;
  2693. *(DWORD*)(0xBAB260) = 0xFFC81914;
  2694. *(DWORD*)(0xBAB264) = 0xFF00FFFF;
  2695.  
  2696. //fist
  2697. *(BYTE*)(0x58D973 + 1) = 255;
  2698. *(BYTE*)(0x58D96E + 1) = 255;
  2699. *(BYTE*)(0x58D969 + 1) = 255;
  2700.  
  2701. *(BYTE*)(0x58D8AF + 1) = 255;
  2702. *(BYTE*)(0x58D8AA + 1) = 255;
  2703. *(BYTE*)(0x58D89F + 1) = 255;
  2704. }
  2705. if (culoare_pusa)
  2706. {
  2707. if (*(DWORD*)0xBA18FC > 0) // car
  2708. {
  2709. *(byte*)(*(DWORD*)0xBA18FC + 1076) = 255;
  2710. *(byte*)(*(DWORD*)0xBA18FC + 1077) = 255;
  2711. *(byte*)(*(DWORD*)0xBA18FC + 1078) = 255;
  2712. *(byte*)(*(DWORD*)0xBA18FC + 1079) = 255;
  2713.  
  2714. *(DWORD*)((g_dwSAMP_Addr + 0x215AC8) + 4 * 255) = rainbow_color_x;
  2715. }
  2716. }
  2717.  
  2718. if (RainbowRadar)
  2719. {
  2720. *(BYTE*)(0x58A9A2) = (BYTE)round(mainColorActive.x * 255.f);
  2721. *(BYTE*)(0x58A99A) = (BYTE)round(mainColorActive.y * 255.f);
  2722. *(BYTE*)(0x58A996) = (BYTE)round(mainColorActive.z * 240.f);
  2723.  
  2724. *(BYTE*)(0x58A8EE) = (BYTE)round(mainColorActive.x * 255.f);
  2725. *(BYTE*)(0x58A8E6) = (BYTE)round(mainColorActive.y * 255.f);
  2726. *(BYTE*)(0x58A8DE) = (BYTE)round(mainColorActive.z * 255.f);
  2727.  
  2728. *(BYTE*)(0x58A89A) = (BYTE)round(mainColorActive.x * 255.f);
  2729. *(BYTE*)(0x58A896) = (BYTE)round(mainColorActive.y * 255.f);
  2730. *(BYTE*)(0x58A894) = (BYTE)round(mainColorActive.z * 255.f);
  2731.  
  2732. *(BYTE*)(0x58A798) = (BYTE)round(mainColorActive.x * 255.f);
  2733. *(BYTE*)(0x58A790) = (BYTE)round(mainColorActive.y * 255.f);
  2734. *(BYTE*)(0x58A78E) = (BYTE)round(mainColorActive.z * 255.f);
  2735.  
  2736. *(BYTE*)(0x582F20) = (BYTE)round(mainColorActive.x * 255.f);
  2737. *(BYTE*)(0x582F1A) = (BYTE)round(mainColorActive.y * 255.f);
  2738. *(BYTE*)(0x582F18) = (BYTE)round(mainColorActive.z * 255.f);
  2739.  
  2740. *(BYTE*)(0x588690 + 1) = (BYTE)round(mainColorActive.x * 255.f);
  2741. *(BYTE*)(0x58868B + 1) = (BYTE)round(mainColorActive.y * 255.f);
  2742. *(BYTE*)(0x588686 + 1) = (BYTE)round(mainColorActive.z * 255.f);
  2743.  
  2744. *(byte*)(0x5860CC + 1) = (BYTE)round(mainColorActive.x * 255.f);
  2745. *(byte*)(0x5860C1 + 1) = (BYTE)round(mainColorActive.y * 255.f);
  2746. *(byte*)(0x5860BC + 1) = (BYTE)round(mainColorActive.z * 255.f);
  2747. }
  2748.  
  2749. if (RainbowRadar == false)
  2750.  
  2751. {
  2752. *(BYTE*)(0x58A9A2) = 0;
  2753. *(BYTE*)(0x58A99A) = 0;
  2754. *(BYTE*)(0x58A996) = 0;
  2755.  
  2756. *(BYTE*)(0x58A8EE) = 0;
  2757. *(BYTE*)(0x58A8E6) = 0;
  2758. *(BYTE*)(0x58A8DE) = 0;
  2759.  
  2760. *(BYTE*)(0x58A89A) = 0;
  2761. *(BYTE*)(0x58A896) = 0;
  2762. *(BYTE*)(0x58A894) = 0;
  2763.  
  2764. *(BYTE*)(0x58A798) = 0;
  2765. *(BYTE*)(0x58A790) = 0;
  2766. *(BYTE*)(0x58A78E) = 0;
  2767.  
  2768. *(BYTE*)(0x582F20) = 0;
  2769. *(BYTE*)(0x582F1A) = 0;
  2770. *(BYTE*)(0x582F18) = 0;
  2771.  
  2772. *(BYTE*)(0x588690 + 1) = 255;
  2773. *(BYTE*)(0x58868B + 1) = 255;
  2774. *(BYTE*)(0x588686 + 1) = 255;
  2775.  
  2776. *(byte*)(0x5860CC + 1) = 255;
  2777. *(byte*)(0x5860C1 + 1) = 255;
  2778. *(byte*)(0x5860BC + 1) = 255;
  2779. }
  2780. if (tintarainbow)
  2781. {
  2782. // partea dreapta jos
  2783. *(BYTE*)0x58E47C = (BYTE)round(mainColorActive.x * 255.f);
  2784. *(BYTE*)0x58E473 = (BYTE)round(mainColorActive.y * 255.f);
  2785. *(BYTE*)0x58E466 = (BYTE)round(mainColorActive.z * 255.f);
  2786. // partea dreapta jos
  2787. *(BYTE*)(0x58E432 + 1) = (BYTE)round(mainColorActive.x * 255.f);
  2788. *(BYTE*)(0x58E429 + 1) = (BYTE)round(mainColorActive.y * 255.f);
  2789. *(BYTE*)(0x58E424 + 1) = (BYTE)round(mainColorActive.z * 255.f);
  2790.  
  2791. *(BYTE*)(0x58E3D9 + 1) = (BYTE)round(mainColorActive.x * 255.f);
  2792. *(BYTE*)(0x58E3D0 + 1) = (BYTE)round(mainColorActive.y * 255.f);
  2793. *(BYTE*)(0x58E3C7 + 1) = (BYTE)round(mainColorActive.z * 255.f);
  2794.  
  2795. *(BYTE*)(0x58E300 + 1) = (BYTE)round(mainColorActive.x * 255.f);
  2796. *(BYTE*)(0x58E2F5 + 1) = (BYTE)round(mainColorActive.y * 255.f);
  2797. *(BYTE*)(0x58E2F0 + 1) = (BYTE)round(mainColorActive.z * 255.f);
  2798. }
  2799. if (tintarainbow == false)
  2800. {
  2801. // partea dreapta jos
  2802. *(BYTE*)0x58E47C = 255;
  2803. *(BYTE*)0x58E473 = 255;
  2804. *(BYTE*)0x58E466 = 255;
  2805. // partea dreapta jos
  2806. *(BYTE*)(0x58E432 + 1) = 255;
  2807. *(BYTE*)(0x58E429 + 1) = 255;
  2808. *(BYTE*)(0x58E424 + 1) = 255;
  2809.  
  2810. *(BYTE*)(0x58E3D9 + 1) = 255;
  2811. *(BYTE*)(0x58E3D0 + 1) = 255;
  2812. *(BYTE*)(0x58E3C7 + 1) = 255;
  2813.  
  2814. *(BYTE*)(0x58E300 + 1) = 255;
  2815. *(BYTE*)(0x58E2F5 + 1) = 255;
  2816. *(BYTE*)(0x58E2F0 + 1) = 255;
  2817. }
  2818. if (RainbowHeadLights)
  2819. {
  2820. *(byte*)(0x6E155F + 1) = (BYTE)round(mainColorActive.x * 255.f);
  2821. *(byte*)(0x6E155D + 1) = (BYTE)round(mainColorActive.y * 255.f);
  2822. *(byte*)(0x6E1555 + 1) = (BYTE)round(mainColorActive.z * 255.f);
  2823.  
  2824. *(byte*)(0x6E1688 + 1) = (BYTE)round(mainColorActive.x * 255.f);
  2825. *(byte*)(0x6E1686 + 1) = (BYTE)round(mainColorActive.y * 255.f);
  2826. *(byte*)(0x6E1684 + 1) = (BYTE)round(mainColorActive.z * 255.f);
  2827. }
  2828. if (RainbowHeadLights == false)
  2829. {
  2830. *(byte*)(0x6E155F + 1) = 45;
  2831. *(byte*)(0x6E155D + 1) = 45;
  2832. *(byte*)(0x6E1555 + 1) = 45;
  2833.  
  2834. *(byte*)(0x6E1688 + 1) = 45;
  2835. *(byte*)(0x6E1686 + 1) = 45;
  2836. *(byte*)(0x6E1684 + 1) = 45;
  2837. }
  2838. if (rainbowmenu)
  2839. {
  2840. ImGuiStyle& style = ImGui::GetStyle();
  2841. style.Colors[ImGuiCol_Text] = ImVec4(1.f, 1.f, 1.f, .78f);
  2842. style.Colors[ImGuiCol_TextDisabled] = mainColorActive;;
  2843. style.Colors[ImGuiCol_WindowBg] = mainColorActive;
  2844. style.Colors[ImGuiCol_ChildWindowBg] = mainColorActive;
  2845. style.Colors[ImGuiCol_PopupBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
  2846. style.Colors[ImGuiCol_Border] = ImVec4(0.00f, 0.00f, 0.00f, 0.35f);
  2847. style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
  2848. style.Colors[ImGuiCol_FrameBg] = ImVec4(0.13f, 0.14f, 0.17f, 1.00f);
  2849. style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.13f, 0.14f, 0.17f, 0.78f);
  2850. style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.13f, 0.14f, 0.17f, 1.00f);
  2851. style.Colors[ImGuiCol_TitleBg] = mainColorActive;
  2852. style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.20f, 0.22f, 0.27f, 0.75f);
  2853. style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.13f, 0.14f, 0.17f, 1.00f);
  2854. style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.20f, 0.22f, 0.27f, 0.47f);
  2855. style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
  2856. style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.09f, 0.15f, 0.16f, 1.00f);
  2857. style.Colors[ImGuiCol_ScrollbarGrabHovered] = mainColorActive;
  2858. style.Colors[ImGuiCol_ScrollbarGrabActive] = mainColorActive;
  2859. style.Colors[ImGuiCol_ComboBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
  2860. style.Colors[ImGuiCol_CheckMark] = mainColorActive;
  2861. style.Colors[ImGuiCol_SliderGrab] = mainColorActive;
  2862. style.Colors[ImGuiCol_SliderGrabActive] = mainColorActive;
  2863. style.Colors[ImGuiCol_Button] = mainColorActive;
  2864. style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.13f, 0.14f, 0.17f, 0.86f);
  2865. style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.13f, 0.14f, 0.17f, 1.00f);
  2866. style.Colors[ImGuiCol_Header] = mainColorActive;
  2867. style.Colors[ImGuiCol_HeaderHovered] = mainColorActive;
  2868. style.Colors[ImGuiCol_HeaderActive] = mainColorActive;
  2869. style.Colors[ImGuiCol_Column] = ImVec4(0.15f, 0.00f, 0.00f, 0.35f);
  2870. style.Colors[ImGuiCol_ColumnHovered] = mainColorActive;
  2871. style.Colors[ImGuiCol_ColumnActive] = mainColorActive;
  2872. style.Colors[ImGuiCol_ResizeGrip] = mainColorActive;
  2873. style.Colors[ImGuiCol_ResizeGripHovered] = mainColorActive;
  2874. style.Colors[ImGuiCol_ResizeGripActive] = mainColorActive;
  2875. style.Colors[ImGuiCol_CloseButton] = ImVec4(0.00f, 0.00f, 0.00f, 0.0f);
  2876. style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.00f, 0.00f, 0.00f, 0.0f);
  2877. style.Colors[ImGuiCol_CloseButtonActive] = ImVec4(0.00f, 0.00f, 0.00f, 0.0f);
  2878. style.Colors[ImGuiCol_PlotLines] = ImVec4(0.86f, 0.93f, 0.89f, 0.63f);
  2879. style.Colors[ImGuiCol_PlotLinesHovered] = mainColorActive;
  2880. style.Colors[ImGuiCol_PlotHistogram] = ImVec4(0.86f, 0.93f, 0.89f, 0.63f);
  2881. style.Colors[ImGuiCol_PlotHistogramHovered] = mainColorActive;
  2882. style.Colors[ImGuiCol_TextSelectedBg] = mainColorActive;
  2883. style.Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(0.20f, 0.22f, 0.27f, 0.73f);
  2884. }
  2885. if (!pDevice)
  2886. return pD3DHook->Orginal_Present(pDevice, pSrcRect, pDestRect, hDestWindow, pDirtyRegion);
  2887.  
  2888. if (pD3DHook->bD3DRenderInit == false)
  2889. {
  2890. pD3DHook->pRender->Initialize(pDevice);
  2891. pD3DHook->pD3DFont->Initialize(pDevice);
  2892.  
  2893. pD3DHook->bD3DRenderInit = true;
  2894. }
  2895.  
  2896. if (!pSAMP->isInited)
  2897. pD3DHook->pD3DFont->Print(1, 1, D3DCOLOR_ARGB(255, rand() % 255, rand() % 255, rand() % 255), "", true);
  2898.  
  2899. return pD3DHook->Orginal_Present(pDevice, pSrcRect, pDestRect, hDestWindow, pDirtyRegion);
  2900. }
  2901.  
  2902. LRESULT CALLBACK hWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
  2903. {
  2904. if (ImGui_ImplDX9_WndProcHandler(hwnd, uMsg, wParam, lParam) && GetKeyState(key) == 1 && menuOpen && wndproc)
  2905. {
  2906. return 1l;
  2907. }
  2908.  
  2909. return CallWindowProc(oriWndProc, hwnd, uMsg, wParam, lParam);
  2910. }
  2911.  
  2912. HRESULT __stdcall hkReset(IDirect3DDevice9* pDevice, D3DPRESENT_PARAMETERS* pp)
  2913. {
  2914. if (g_bwasInitialized)
  2915. {
  2916. ImGui_ImplDX9_InvalidateDeviceObjects();
  2917. g_bwasInitialized = false;
  2918. }
  2919. return oReset(pDevice, pp);
  2920. }
  2921.  
  2922. HRESULT __stdcall hkEndScene(IDirect3DDevice9* pDevice)
  2923. {
  2924. if (c_GodMode)
  2925. {
  2926. everything();
  2927. *GodMode = 1;
  2928. c_GodMode = true;
  2929. }
  2930. else
  2931. {
  2932. everything();
  2933. *GodMode = 0;
  2934. c_GodMode = false;
  2935. }
  2936. /*if (c_slap)
  2937. {
  2938. everything();
  2939. *slap = 1;
  2940. c_slap = true;
  2941. }
  2942. else
  2943. {
  2944. everything();
  2945. *slap = 0;
  2946. c_slap = false;
  2947. }*/
  2948. if (c_bjump)
  2949. {
  2950. everything();
  2951. *bjump = 1;
  2952. c_bjump = true;
  2953. }
  2954. else
  2955. {
  2956. everything();
  2957. *bjump = 0;
  2958. c_bjump = false;
  2959. }
  2960. if (taim)
  2961. {
  2962. *(DWORD*)(0xB70153) = timeset;
  2963. }
  2964. if (!taim)
  2965. {
  2966. *(DWORD*)(0xB70153) = 12;
  2967. }
  2968. if (weather)
  2969. {
  2970. *(DWORD*)(0xC81320) = weatherset;
  2971. }
  2972. if (!weather)
  2973. {
  2974. *(DWORD*)(0xC81320) = 12;
  2975. }
  2976. // ASA
  2977. if (!g_bwasInitialized)
  2978. {
  2979. ImGuiIO& io = ImGui::GetIO();
  2980. ImGuiStyle& style = ImGui::GetStyle();
  2981. io.IniFilename = NULL;
  2982. io.DeltaTime = 1.0f / 60.0f;
  2983. ImFont* pFont = io.Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\impact.ttf", 18);
  2984. D3DDEVICE_CREATION_PARAMETERS d3dcp;
  2985. pDevice->GetCreationParameters(&d3dcp);
  2986. hWnd = d3dcp.hFocusWindow;
  2987. io.Fonts->AddFontDefault();
  2988. style.AntiAliasedLines = false;
  2989. style.AntiAliasedShapes = false;
  2990. if (hwndd == 0)
  2991. {
  2992. oriWndProc = (WNDPROC)SetWindowLongPtr(d3dcp.hFocusWindow,
  2993. GWL_WNDPROC, (LONG)(LONG_PTR)hWndProc);
  2994. hwndd++;
  2995. }
  2996. ImGui_ImplDX9_Init(d3dcp.hFocusWindow, pDevice);
  2997. g_bwasInitialized = true;
  2998. }
  2999. if (item == 0)
  3000. {
  3001. Boss();
  3002. }
  3003. if (startmenu == 0)
  3004. {
  3005. key = VK_INSERT;
  3006. }
  3007. if (startmenu == 1)
  3008. {
  3009. key = VK_HOME;
  3010. }
  3011. if (startmenu == 2)
  3012. {
  3013. key = VK_DELETE;
  3014. }
  3015. if (startmenu == 3)
  3016. {
  3017. key = VK_END;
  3018. }
  3019. if (megajumpvar)
  3020. {
  3021. DWORD megajumpAddr = 0x96916C;
  3022. DWORD megajump = 1;
  3023. ReadProcessMemory(handle, (LPCVOID)megajumpAddr, &megajump, sizeof(megajump), 0);
  3024.  
  3025. megajump = 1;
  3026. WriteProcessMemory(handle, (LPVOID)megajumpAddr, &megajump, sizeof(megajump), 0);
  3027. Sleep(10);
  3028.  
  3029. }
  3030. //stop megajump
  3031. if (!megajumpvar)
  3032. {
  3033. DWORD megajumpAddr = 0x96916C;
  3034. DWORD megajump = 0;
  3035. ReadProcessMemory(handle, (LPCVOID)megajumpAddr, &megajump, sizeof(megajump), 0);
  3036.  
  3037. if (megajump == 1)
  3038. {
  3039. megajump = 0;
  3040. WriteProcessMemory(handle, (LPVOID)megajumpAddr, &megajump, sizeof(megajump), 0);
  3041. Sleep(10);
  3042. }
  3043. }
  3044. ImGui_ImplDX9_NewFrame();
  3045. if (menuOpen)
  3046. {
  3047. toggleSAMPCursor(1);
  3048. toggleChat(1);
  3049. RenderGUI();
  3050. }
  3051. else
  3052. {
  3053. if (startstop == 0)
  3054. {
  3055. toggleSAMPCursor(0);
  3056. toggleChat(0);
  3057. startstop++;
  3058. }
  3059. }
  3060. ImGui::Render();
  3061. return oEndScene(pDevice);
  3062. }
  3063. DWORD APIENTRY MainThread(LPVOID lparam)
  3064. {
  3065. /*while (g_dwSAMP_Addr == NULL)
  3066. {
  3067. g_dwSAMP_Addr = (DWORD)GetModuleHandle("samp.dll");
  3068. sleep(250);
  3069. }
  3070.  
  3071. while (!g_Chat)
  3072. {
  3073. g_Chat = *(DWORD**)(g_dwSAMP_Addr + SAMP_CHAT_INFO_OFFSET);
  3074. sleep(25);
  3075. }*/
  3076. //atentat on
  3077. if (pSAMP)
  3078. {
  3079. while (g_dwSAMP_Addr == NULL)
  3080. {
  3081. g_dwSAMP_Addr = (DWORD)GetModuleHandle("samp.dll");
  3082. sleep(250);
  3083. }
  3084.  
  3085. while (!g_Chat)
  3086. {
  3087. g_Chat = *(DWORD**)(g_dwSAMP_Addr + SAMP_CHAT_INFO_OFFSET);
  3088. sleep(25);
  3089. }
  3090.  
  3091. while (!pSAMP->tryInit())
  3092. Sleep(100);
  3093. }
  3094. void** vTableDevice = *(void***)(*(DWORD*)DEVICE_PTR);
  3095. VTableHookManager* vmtHooks = new VTableHookManager(vTableDevice, D3D_VFUNCTIONS);
  3096.  
  3097. oEndScene = (_EndScene)vmtHooks->Hook(ENDSCENE_INDEX, (void*)hkEndScene);
  3098. oReset = (_Reset)vmtHooks->Hook(RESET_INDEX, (void*)hkReset);
  3099. everything();
  3100. Fakekick();
  3101. while (true)
  3102. {
  3103. if (GetAsyncKeyState(key) & 1)
  3104. {
  3105. menuOpen = !menuOpen;
  3106. startstop = 0;
  3107. }
  3108. if (close == 1)
  3109. {
  3110. return 0;
  3111. }
  3112. everything();
  3113. functions();
  3114. InfOxygen();
  3115. fastrotation();
  3116. Fakekick();
  3117. }
  3118. }
  3119.  
  3120. BOOL APIENTRY DllMain(HMODULE hModule,
  3121. DWORD ul_reason_for_call,
  3122. LPVOID lpReserved
  3123. )
  3124.  
  3125. {
  3126. switch (ul_reason_for_call)
  3127. {
  3128. case DLL_PROCESS_ATTACH:
  3129. GetVolumeInformation(szHD, (LPTSTR)szVolNameBuff, 255, &dwSerial, &dwMFL, &dwSysFlags, (LPTSTR)szFileSys, 255);
  3130.  
  3131. if (dwSerial == Ryon | dwSerial == Over | dwSerial == Narda | dwSerial == Medik | dwSerial == Andy | dwSerial == mlg | dwSerial == kegan | dwSerial == kz | dwSerial == dumi | dwSerial == razvan | dwSerial == theweek | dwSerial == benq )
  3132. {
  3133. Sleep(100);
  3134. }
  3135. else
  3136. {
  3137. // when HWID rejected
  3138. MessageBox(NULL, "HWID-ul tau nu este inregistrat in baza noastra de date.", "HWID CHECKER", MB_OK);
  3139. exit(0);
  3140. return TRUE;
  3141. }
  3142. CreateThread(0, 0, MainThread, hModule, 0, 0);
  3143.  
  3144. pSAMP = new SAMPFramework(GetModuleHandle("samp.dll"));
  3145.  
  3146.  
  3147. _beginthread(mainThread, NULL, NULL);
  3148. pD3DHook = new CD3DHook();
  3149. break;
  3150. break;
  3151. case DLL_THREAD_ATTACH:
  3152. case DLL_THREAD_DETACH:
  3153. case DLL_PROCESS_DETACH:
  3154. break;
  3155. }
  3156. return TRUE;
  3157. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement