PDA

View Full Version : ****** Vehicle Health check


Carxi
21/03/2014, 02:54 PM
I've think to set all vehicles health 999 for Detect the ****** repair.
But i don't now how start the script.

David (Sabljak)
21/03/2014, 03:01 PM
for start...

for(new i=1; i<MAX_VEHICLES; i++)
{
SetVehicleHealth(i, 999);
}

Well... you must secure that PAY 'N' SPRAY dont detect as "HACK" ...so you can make X,Y,Z with 15 Meters around PNS to ignore that check...

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?

Carxi
21/03/2014, 08:33 PM
for start...

for(new i=1; i<MAX_VEHICLES; i++)
{
SetVehicleHealth(i, 999);
}

Well... you must secure that PAY 'N' SPRAY dont detect as "HACK" ...so you can make X,Y,Z with 15 Meters around PNS to ignore that check...

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);
}
}