Red_Ronnie
Компетентный
ко всем forward'S
в public OnGameModeInit()
создадим новый public AutoRepair()
Вот может тебе arteZ пригодится
от + не откажусь)
PHP:
forward AutoRepair();
PHP:
SetTimer("AutoRepair", 1000, true);
далеегде "1000" это время через которое авто само чинится
создадим новый public AutoRepair()
PHP:
public AutoRepair()
{
for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if (IsPlayerInAnyVehicle(playerid))
{
new Float:CarHP;
GetVehicleHealth(GetPlayerVehicleID(playerid), CarHP);
if (CarHP < 999)
{
RepairVehicle(GetPlayerVehicleID(playerid));
}
}
}
return 1;
}
от + не откажусь)
