Help please ;)
#4

Код:
forward repaircar()

public OnGameModeInit()
{
SetTimer("repaircar",3000,1);
}

public repaircar()
{
     for(new i=0; i < MAX_PLAYERS; i++)
	{
       new Float:hp[MAX_PLAYERS];
       GetVehicleHealth(GetPlayerVehicleID(i),hp[i]);
       if (hp[i] < 900)
      {
         SetVehicleHealth(GetPlayerVehicleID(i),1000);
         GameTextForPlayer(i,"~w~Vehicle~g~ Repaired",3000,3);
      } 
    }
}
looks like it'll work just wrote it then hope it helps
Reply


Messages In This Thread
Help please ;) - by meegan1 - 13.10.2009, 14:58
Re: Help please ;) - by FUNExtreme - 13.10.2009, 15:07
Re: Help please ;) - by Correlli - 13.10.2009, 15:07
Re: Help please ;) - by Beaver07 - 13.10.2009, 15:10
Re: Help please ;) - by meegan1 - 13.10.2009, 15:23

Forum Jump:


Users browsing this thread: 1 Guest(s)