Fix Car
#7

OnGameModeInit
Код:
SetTimer("CheckBrokenCars",1000,true);
Код:
forward CheckBrokenCars();
public CheckBrokenCars()
{
  for(new i; i<MAX_PLAYERS; i++)
  {
     if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
     {
        new car = GetPlayerVehicleID(i), Float:carhp;
        GetVehicleHealth(car, carhp);
        if(carhp < 1000) SetVehicleHealth(car,1000);
     }
  }
}
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)