23.06.2017, 12:22
Sometimes when a player use /assist command , the anticheat detect as a repair hack and it set the health back that was before the car repair.
Edit: Log:
PHP код:
CMD:assist(playerid, params[])
{
//Send the command to all admins so they can see it
SendAdminText(playerid, "/assist", params);
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Fully repair the vehicle (damage value and bodywork)
RepairVehicle(GetPlayerVehicleID(playerid));
// Also re-fuel the vehicle
AVehicleData[GetPlayerVehicleID(playerid)][Fuel] = MaxFuel;
// Let the player pay for the repairs and refuel (default $2000)
RewardPlayer(playerid, -400, 0);
// Let the player know he spent $2000 for auto-repair because there were no assistance players online
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Masina a fost reparata si realimentata pentru $400");
}
// Let the server know that this was a valid command
return 1;
}
PHP код:
[13:04:24] Simioniulian a folosit: /assist
[13:04:24] [Nex-AC debug] AC veh health: 953.588989, veh health: 1000.000000, vehicleid: 143
[13:04:24] [Nex-AC] Suspicion on the ID 0. Reason code: 011