SHARE
TWEET

Untitled

Dravizz Apr 12th, 2020 (edited) 310 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new vehicleid = GetPlayerVehicleID(i), Float:health, Float:x, Float:y, Float:z, Float:diff;
  2.         GetVehicleHealth(vehicleid, health);
  3.         diff = floatround(health, floatround_floor) - floatround(ac_VehicleHealth[vehicleid]);
  4.         if(diff > 10)
  5.         {
  6.             SetVehicleHealth(vehicleid, ac_VehicleHealth[vehicleid]);
  7.             GetVehiclePos(vehicleid, x, y, z);
  8.             if(GetVehicleDistanceFromPoint(vehicleid, -1905.0265,285.4193,41.0469) <= 7.0 || GetVehicleDistanceFromPoint(vehicleid, 719.9421,-458.0513,16.3359) <= 7.0 ||
  9.             GetVehicleDistanceFromPoint(vehicleid, 1975.9562,2162.8206,11.0703) <= 7.0 || GetVehicleDistanceFromPoint(vehicleid, 2065.5549,-1831.6633,13.3269) <= 7.0 ||
  10.             GetVehicleDistanceFromPoint(vehicleid, -2425.5476,1022.0723,50.3977) <= 7.0 || GetVehicleDistanceFromPoint(vehicleid, -99.9100,1118.1333,19.5214) <= 7.0 ||
  11.             GetVehicleDistanceFromPoint(vehicleid, 487.4214,-1739.5881,11.1337) <= 7.0 || GetVehicleDistanceFromPoint(vehicleid, -1420.4706,2584.6169,55.6230) <= 7.0 ||
  12.             GetVehicleDistanceFromPoint(vehicleid, 1024.9486,-1024.0896,32.1016) <= 7.0)
  13.             {
  14.                 ac_RepairVehicle(vehicleid);
  15.                 continue;
  16.             }
  17.             else
  18.             {
  19.                 if(IsPlayerInVehicle(i, vehicleid))
  20.                 {
  21.                     if(playerDB[i][CheckFix] < gettime())
  22.                     {
  23.                         new msg[200];
  24.                         format(msg,sizeof(msg),"{FF0000}[ANTI CHEAT]: {FFFFFF}%s(%d) buvo išmestas už nelegalų mašinos suremontavimą", GetPlayerNameEx(i),i);
  25.                         SendClientMessageToAll(RED, msg);
  26.                         printf("[FIX]Žaidėjas %s buvo ismestas uz cytus", GetPlayerNameEx(i));
  27.                         SetVehicleHealth(vehicleid, ac_VehicleHealth[vehicleid]);
  28.                         KickEx(i);
  29.                     }
  30.                     else SetVehicleHealth(vehicleid, ac_VehicleHealth[vehicleid]);
  31.                 }
  32.             }
  33.         }
  34.         else if(ac_VehicleHealth[vehicleid] > health)
  35.         {
  36.             ac_VehicleHealth[vehicleid] = health;
  37.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top