How to make a vehicle Indestructible?
#6

Not sure 'bout this :
pawn Код:
#include <a_samp>

new CarFixTimer;

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if(vehicleid == 500)
  {
    CarFixTimer = SetTimerEx("RepairCar", 1000, true, "i", playerid);
  }
  return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
  KillTimer(CarFixTimer);
  return 1;
}

forward RepairCar(playerid);
public RepairCar(playerid)
{
  new vehicleid = GetPlayerVehicleID(playerid);
  RepairVehicle(vehicleid);
  return 1;
}
Reply


Messages In This Thread
How to make a vehicle Indestructible? - by XxJoexX - 17.07.2010, 14:57
Re: How to make a vehicle Indestructible? - by [XST]O_x - 17.07.2010, 15:00
Re: How to make a vehicle Indestructible? - by XxJoexX - 17.07.2010, 15:11
Re: How to make a vehicle Indestructible? - by [HUN]Jaki - 17.07.2010, 15:18
Re: How to make a vehicle Indestructible? - by XxJoexX - 17.07.2010, 15:20
Re: How to make a vehicle Indestructible? - by ViruZZzZ_ChiLLL - 17.07.2010, 15:20
Re: How to make a vehicle Indestructible? - by XxJoexX - 17.07.2010, 15:38
Re: How to make a vehicle Indestructible? - by willsuckformoney - 17.07.2010, 15:40
Re: How to make a vehicle Indestructible? - by ViruZZzZ_ChiLLL - 17.07.2010, 15:40
Re: How to make a vehicle Indestructible? - by DiddyBop - 17.07.2010, 16:40

Forum Jump:


Users browsing this thread: 1 Guest(s)