[Solved] Repair A Vehicle? - 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: [Solved] Repair A Vehicle? (
/showthread.php?tid=67757)
[Solved] Repair A Vehicle? -
Alec24 - 03.03.2009
I need to know what the highest vehicle health is (100,1000?)
The script is:
Код:
if(strcmp(cmdtext, "/fix", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,1);
SetVehicleHealth(GetPlayerVehicleID(playerid),????);
}
else
{
SendClientMessage(playerid,COLOR_RED," You Must Be In A Car!");
return 1;
}
Re: Repair A Vehicle? -
Dujma - 03.03.2009
1000
On 249 the vehicle is on fire
Re: Repair A Vehicle? -
Mauzen - 03.03.2009
Quote:
Originally Posted by Dujma
1000
On 249 the vehicle is on fire
|
dam you were faster
But are you sure its on 249? I always thought it was already at 250
Re: Repair A Vehicle? -
Dujma - 03.03.2009
Quote:
Originally Posted by Mauzen
Quote:
Originally Posted by Dujma
1000
On 249 the vehicle is on fire
|
dam you were faster
But are you sure its on 249? I always thought it was already at 250
|
I belive so. Few days ago I was making a engine and repair system and I think it is on 249.
Re: Repair A Vehicle? -
Mauzen - 03.03.2009
Ok, I never really tested it out, but just had 250 in mind.
Re: Repair A Vehicle? -
Alec24 - 04.03.2009
Thanks I have this working now