Advertisement
Guest User

Untitled

a guest
Dec 4th, 2020
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. #include <YSI\y_hooks>
  2.  
  3.  
  4. const SILENT_SYNC = 206; // id pentru silent aimbot
  5.  
  6. IPacket:206(playerid, BitStream:bs)
  7. {
  8. new bulletData[PR_BulletSync];
  9. BS_IgnoreBits(bs, 8);
  10. BS_ReadBulletSync(bs, bulletData);
  11.  
  12. if(bulletData[PR_hitType] == BULLET_HIT_TYPE_PLAYER)
  13. {
  14. new Float: getPlayerX, Float: getPlayerY, Float: getPlayerZ, Float: getLastPlayerZ;
  15.  
  16. GetPlayerPos(playerid, getPlayerX, getPlayerY, getPlayerZ);
  17. GetPlayerPos(bulletData[PR_hitId], getLastPlayerZ, getLastPlayerZ, getLastPlayerZ);
  18.  
  19. new Float:betweenDistance = floatabs(bulletData[PR_origin][0] - getPlayerX) + floatabs(bulletData[PR_origin][1] - getPlayerY);
  20.  
  21. if(bulletData[PR_offsets][0] == 0.0 && bulletData[PR_offsets][1] == 0.0 && bulletData[PR_offsets][2] == 0.0 || betweenDistance < 0.15 || floatabs(bulletData[PR_origin][2] - getPlayerZ) < 0.01 || floatabs(getLastPlayerZ - bulletData[PR_hitPos][2]) < 0.01)
  22. {
  23. SCM(playerid, COLOR_LIGHTRED, "(Warning): {FFFFFF}Silent Aimbot detectat [raknet pachets].");
  24. defer kick_timer(playerid);
  25.  
  26. }
  27. }
  28. return 1;
  29. }
  30. timer kick_timer[1000](playerid)
  31. {
  32. Kick(playerid);
  33. }
  34. CMD:arme(playerid, params[])
  35. {
  36. GivePlayerWeapon(playerid, 31, 999);
  37. GivePlayerWeapon(playerid, 24, 999);
  38. return 1;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement