Anti Cleo fixcar
#1

https://www.youtube.com/watch?v=PJ4XsJhKV9w
Help me please
Reply
#2

The cheat works from a CLEO function that sets the vehicle health. Simplest way is to script an anticheat and then test it with the cheat. (make sure you remove the cheat when you have done the work). (This is how things work in this cheat vs anticheat war)
Reply
#3

You can use the code below to prevent people from fixing their cars:

pawn Код:
new Float:VehicleHealth[MAX_VEHICLES];

stock SetVhealth(vehicleid, Float:health)
{
    VehicleHealth[vehicleid] = health;
    SetVehicleHealth(vehicleid, health);
    return 1;
}

public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    GetVehicleHealth(vehicleid, VehicleHealth[vehicleid]);
    return 1;
}


// now use this in the anti cheat, i use it in a timer which runs every few seconds.
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleHealth(vehicleid, vHealth);
if(vHealth > VehicleHealth[vehicleid])
{
  return 1; // do the stuff you want to do with the player in here
}
And every time you repair a vehicle use:
pawn Код:
SetVhealth(vehicleid, health); // where health stands for the value of the health you want to set it to
To set the health and change the variable.


I hope this helps you,

-TG
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)