18.02.2016, 18:31
Hello, I try to creat an anty vehicle repair hack, but I have some problem what is wrong?, what is wrong in code?
I saw, when panelss are 0, the car is complet repaired, so I put if = 0 the car is repaired hacker, but don't work, after I destroyed the car and I saw the panelss are 55717137, so I put if panel <55717137 and don't work,
The message, are not displayed in any variante,
Some help please?
PHP код:
new panelss[MAX_VEHICLES], doo..... all created
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
GetVehicleDamageStatus(vehicleid, panelss[vehicleid], doorss[vehicleid], lightss[vehicleid], tiress[vehicleid]);
if(!IsVehicleOccupied(vehicleid))
{
UpdateVehicleDamageStatus(vehicleid, panelss[vehicleid], doorss[vehicleid], lightss[vehicleid], tiress[vehicleid]);
if(panelss[vehicleid]==0)
{
SendClientMessage(GetVehicleDriver(vehicleid),-1,"You Have RepairHack");
UpdateVehicleDamageStatus(vehicleid, panelss[vehicleid], doorss[vehicleid], lightss[vehicleid], tiress[vehicleid]);
}
}
return 1;
}
The message, are not displayed in any variante,
Some help please?