****** Vehicle Health check
#1

I've think to set all vehicles health 999 for Detect the ****** repair.
But i don't now how start the script.
Reply
#2

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?
Reply
#3

Quote:
Originally Posted by David (Sabljak)
Посмотреть сообщение
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?
PHP код:
if(IsPlayerInAnyVehicle(playerid))
            {
            new 
Float:health;
            new 
veh GetPlayerVehicleID(playerid);
            
GetVehicleHealth(vehhealth);
            if(
health == 1000)
                {
                
SendCheatAlert(playerid,CHEAT_VEHICLE,health);
                }
            } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)