Car HP
#2

pawn Код:
SetTimer("Carhp",1000,1);
pawn Код:
public Carhp()
{
  for(new i=0; i<MAX_PLAYERS; i++)
  {
    if(IsPlayerInAnyVehicle(i))
    {
      new Float:chealth;
      GetVehicleHealth(GetPlayerVehicleID(i),chealth);
           
      if(chealth <= 250)
      {
        SendClientMessage(i,COLOR_BLUE,"GET OUT!");
        RemovePlayerFromVehicle(i);
      }
    }
  }
}
Reply


Messages In This Thread
Car HP - by sanandreas - 28.03.2009, 23:58
Re: Car HP - by BMUK - 29.03.2009, 00:08
Re: Car HP - by sanandreas - 29.03.2009, 00:54

Forum Jump:


Users browsing this thread: 1 Guest(s)