Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. if( hittype != BULLET_HIT_TYPE_NONE )
  2.  
  3. {
  4.  
  5. if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) )
  6.  
  7. {
  8.  
  9. return 0;
  10.  
  11. }
  12.  
  13. }
  14.  
  15. if( hittype == BULLET_HIT_TYPE_PLAYER )
  16.  
  17. {
  18.  
  19. if(hitid == playerid)
  20.  
  21. {
  22. Kick(playerid);//Kicka ga sa servera ako ima crasher. Dodajte adminima text da pise ako zelite
  23.  
  24. return 0;
  25.  
  26. }
  27.  
  28. }
  29.  
  30. if( hittype == BULLET_HIT_TYPE_PLAYER )
  31.  
  32. {
  33.  
  34. if( fX == 0.000000 && fY == 0.000000 && fZ == 0.500000 && weaponid == 0)
  35.  
  36. {
  37.  
  38. return 0;
  39.  
  40. }
  41. }
  42. if( hittype == BULLET_HIT_TYPE_PLAYER ) // Bullet Crashing uses just this hittype
  43. {
  44. if( !( -20.0 <= fX <= 20.0 ) || !( -20.0 <= fY <= 20.0 ) || !( -20.0 <= fZ <= 20.0 ) ) // a valid offset, it's impossible that a offset bigger than 20 is legit (also less than -20.0 is impossible, not used by this hack, but still, let's check for it, just for the future, who knows what hacks will appear)
  45. {
  46. return false; // let's desynchronize that bullet, so players won't crash
  47. }
  48. }
  49.  
  50.  
  51.  
  52. if( hittype == 0 )
  53.  
  54. {
  55.  
  56. if( fX == 0.000000 && fY == 0.000000 && fZ == 0.000000 )
  57.  
  58. {
  59.  
  60. return 0;
  61.  
  62. }
  63.  
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement