21.03.2014, 14:54
I've think to set all vehicles health 999 for Detect the ****** repair.
But i don't now how start the script.
But i don't now how start the script.
for(new i=1; i<MAX_VEHICLES; i++) { SetVehicleHealth(i, 999); }
for start...
Код:
for(new i=1; i<MAX_VEHICLES; i++) { SetVehicleHealth(i, 999); } and you must make some kind of timer that will run idk every 5-10 seconds to check all vehicles... GetVehicleHealth if... == 1000 { Hack... } got it? |
if(IsPlayerInAnyVehicle(playerid))
{
new Float:health;
new veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(health == 1000)
{
SendCheatAlert(playerid,CHEAT_VEHICLE,health);
}
}