low Vehicle Health.....EJECTED!
#6

Quote:
Originally Posted by Fj0rtizFredde
This should fix it (I think)
pawn Код:
public carhealth()
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
   new car2 = GetPlayerVehicleID(i);
   new Float:Vhealth;
   GetVehicleHealth(car2, Vhealth);
   if(Vhealth < 200)
   {    
     RemovePlayerFromVehicle(i);
     SetTimer("carhealth",1000,1); //maybe you should put the timer ongamemodeinit?
   }
 }
}
Thanks a Bunch It works!

P.S Im trying to make it SendClientMessage(playerid,COLOR_RED,"Your Vehicle Is Going To Explode,You Have Been Ejected");

But I keep getting this error:

Код:
error 017: undefined symbol "playerid"
Reply


Messages In This Thread
low Vehicle Health.....EJECTED! - by JustinB - 05.06.2010, 23:06
Re: low Vehicle Health.....EJECTED! - by (SF)Noobanatior - 05.06.2010, 23:08
Re: low Vehicle Health.....EJECTED! - by JustinB - 05.06.2010, 23:34
Re: low Vehicle Health.....EJECTED! - by Fj0rtizFredde - 05.06.2010, 23:39
Re: low Vehicle Health.....EJECTED! - by (SF)Noobanatior - 05.06.2010, 23:42
Re: low Vehicle Health.....EJECTED! - by JustinB - 06.06.2010, 00:02
Re: low Vehicle Health.....EJECTED! - by (SF)Noobanatior - 06.06.2010, 00:04
Re: low Vehicle Health.....EJECTED! - by JustinB - 06.06.2010, 00:12
Re: low Vehicle Health.....EJECTED! - by (SF)Noobanatior - 06.06.2010, 00:18
Re: low Vehicle Health.....EJECTED! - by (SF)Noobanatior - 06.06.2010, 00:21

Forum Jump:


Users browsing this thread: 1 Guest(s)