Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. if(GetPlayerState(playerid) != 9)
  2. {
  3. if(!vehid)
  4. {
  5. if(GetPlayerSurfingVehicleID(playerid) == 65535 && GetPlayerSurfingObjectID(playerid) == 65535)
  6. {
  7. GetPlayerFacingAngle(playerid, ang);
  8. GetPlayerVelocity(playerid, ac_vX, ac_vY, ac_vZ);
  9. ac_vX = ac_GetSpeed(ac_vX, ac_vY, ac_vZ);
  10.  
  11. if(ac_vX > 212.0 && acSpeed[playerid] < ac_vX && ang == 0.0)
  12. {
  13. writeLog("Wykryto FOOT Pizdarvanke u gracza: %s Exp: %d Speed: %f", GetPlayerNick(playerid), GetPlayerScore(playerid), ac_vX);
  14. KickPlayer(playerid, -1, "Pizdarvanka");
  15. }
  16.  
  17. acSpeed[playerid] = ac_vX;
  18. }
  19. }
  20. else
  21. {
  22. static Float:ac_vsp, Float:ac_spdiff;
  23.  
  24. GetVehicleVelocity(vehid, ac_vX, ac_vY, ac_vZ);
  25.  
  26. static Float:ac_vhealth;
  27. GetVehicleHealth(vehid, ac_vhealth);
  28.  
  29. if(GetTickCount() > pData[playerid][velTime] + (GetPlayerPing(playerid)+100))
  30. {
  31. ac_i = GetVehicleModel(vehid) - 417;
  32. ac_vsp = ac_GetSpeed(ac_vX,ac_vY,ac_vZ);
  33. ac_spdiff = ac_vsp - ac_GetSpeed(ACVehInfo[vehid][acVel][0],ACVehInfo[vehid][acVel][1],ACVehInfo[vehid][acVel][2]);
  34. if(ac_spdiff >= 20.0 && !((ac_i == 32 || 119 < ac_i < 122) && ac_spdiff < 65.0) &&
  35. ACVehInfo[vehid][acSpeedxDiff] <= ac_spdiff &&
  36. (63 < ac_i < 94 && ac_vType[ac_i] != 4 || floatabs(ac_vX) > 0.3 || floatabs(ac_vY) > 0.3 || floatabs(ac_vZ) > 0.3) &&
  37. ACVehInfo[vehid][acHealth] == ac_vhealth && ACVehInfo[vehid][acHealth] > 220.0)
  38. {
  39. WarnA[playerid] ++;
  40. if(WarnA[playerid] >= 3)
  41. {
  42. new Float:sp = GetVehSpeed(vehid);
  43. if(sp >= 2999 && sp <= 5000)
  44. {
  45. Warnings[playerid] ++;
  46. if(Warnings[playerid] >= 2)
  47. {
  48. if(!pizdo) {
  49. writeLog("Wykryto Veh Pizdarvanke u gracza: %s Exp: %d Speed: %f", GetPlayerNick(playerid), GetPlayerScore(playerid), sp);
  50. KickPlayer(playerid, -1, "Pizdarvanka");
  51. }
  52. }
  53. }
  54. }
  55. }
  56. }
  57.  
  58. ACVehInfo[vehid][acSpeedxDiff] = ac_spdiff;
  59. ACVehInfo[vehid][acVel][0] = ac_vX;
  60. ACVehInfo[vehid][acVel][1] = ac_vY;
  61. ACVehInfo[vehid][acVel][2] = ac_vZ;
  62. ACVehInfo[vehid][acHealth] = ac_vhealth;
  63. }
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement