SHARE
TWEET

Untitled

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