How to make a vehicle Indestructible? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make a vehicle Indestructible? (
/showthread.php?tid=160710)
How to make a vehicle Indestructible? -
XxJoexX - 17.07.2010
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
Re: How to make a vehicle Indestructible? -
[XST]O_x - 17.07.2010
You can set a repeating timer when a player enters a Mesa and kill the timer when he exits.
Re: How to make a vehicle Indestructible? -
XxJoexX - 17.07.2010
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)
Re: How to make a vehicle Indestructible? -
[HUN]Jaki - 17.07.2010
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.
Re: How to make a vehicle Indestructible? -
XxJoexX - 17.07.2010
oh i see thanks much il have a pop at that now
Re: How to make a vehicle Indestructible? -
ViruZZzZ_ChiLLL - 17.07.2010
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;
}
Re: How to make a vehicle Indestructible? -
XxJoexX - 17.07.2010
what's the lowest time i could use ?
Re: How to make a vehicle Indestructible? -
willsuckformoney - 17.07.2010
lol i think that
10000
is 10 seconds not sure what lowest can be though
Re: How to make a vehicle Indestructible? -
ViruZZzZ_ChiLLL - 17.07.2010
Remember : 1000 = 1 Second
Your choice.
Re: How to make a vehicle Indestructible? -
DiddyBop - 17.07.2010
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.