Fix Car
#2

OnGameModeInit
Код:
SetTimer("CheckBrokenCars",1000,true);
Код:
forward CheckBrokenCars();
public CheckBrokenCars()
{
  for(new i;i<MAX_PLAYERS;i++) // i am not absolutely sure about this cycle for controlling all players, i donґt have pawno here, so I canґt control it, so i want someone else to do it ;)
  {
     if(IsPlayerConnected && IsPlayerInAnyVehicle)
     {
        new car = GetPlayerVehicleID(i);
        if(GetVehicleHealth(car) < 1000) SetVehicleHealth(car,1000.0);
     }
  }
}
It should be right. If you donґt understand to something, just write. Note: It just repair engine of car, so it wonґt explode or something, but you canґt repair carґs body, just in PayґnґSpray/ModShop.


Yours sincerely
NtCat
Reply


Messages In This Thread
Fix Car - by mortallx - 30.03.2009, 05:52
Re: Fix Car - by NtCat - 30.03.2009, 05:58
Re: Fix Car - by mortallx - 30.03.2009, 06:12
Re: Fix Car - by mortallx - 30.03.2009, 06:13
Re: Fix Car - by worxds - 30.03.2009, 06:17
Re: Fix Car - by mortallx - 30.03.2009, 06:34
Re: Fix Car - by 1337pr0 - 30.03.2009, 06:44
Re: Fix Car - by mortallx - 30.03.2009, 06:57
Re: Fix Car - by ICECOLDKILLAK8 - 30.03.2009, 07:12
Re: Fix Car - by mortallx - 30.03.2009, 07:19

Forum Jump:


Users browsing this thread: 1 Guest(s)