How to make a vehicle Indestructible?
#1

Is it possible? I Cant realy find any think out about it, but im not used to the forum yet :L so pleas Dont Mown

If it is possible could some one make give me the script for a Indestructible Mesa (Jeep Thing ID 500)

Thanks XxJoexX
Reply
#2

You can set a repeating timer when a player enters a Mesa and kill the timer when he exits.
Reply
#3

Timer ? Errr?....... I wanted to make the mesa (The Jeep) so if you shoot it of get it on its roof it dose not explode or make it so the body panels dont fuck up (smash off)
Reply
#4

To the top:
pawn Код:
forward MesaUpdate();
new mesa;
OnGameModeInit:
pawn Код:
mesa = AddStaticVehicle(...);
SetTimer("MesaUpdate", 1000, true);
Anywhere:
pawn Код:
public MesaUpdate(){
RepairVehicle(mesa);
}
This will reset every damage every 1 second.
Reply
#5

oh i see thanks much il have a pop at that now
Reply
#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
#7

what's the lowest time i could use ?
Reply
#8

lol i think that

10000

is 10 seconds not sure what lowest can be though
Reply
#9

Remember : 1000 = 1 Second

Your choice.
Reply
#10

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
lol i think that

10000

is 10 seconds not sure what lowest can be though
lol.


You can go as low as 1MS... maybe lower. No reason to. but its posible.

Just make the script repair vehicle every 1-3 Seconds.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)