low Vehicle Health.....EJECTED!
#7

SendClientMessage(i,COLOR_RED,"Your Vehicle Is Going To Explode,You Have Been Ejected");

you var will be a player in a loop like this in this case its "i"

hold on a sec ill do 1 more thing
pawn Код:
public carhealth()
{
for(new i = 0; i < MAX_PLAYERS; i++)
  {
  if(!IsPlayerInAnyVehicle(playerid)continue;
  new Float:vHealth;
  GetVehicleHeath(GetPlayerVehicleID(i),vHealth);
  if (vHealth<100.0) RemovePlayerFromVehicle();
  }

}
use this the other dont check if 1 is in a car
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)