Fully Fixveh command? - 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)
+--- Thread: Fully Fixveh command? (
/showthread.php?tid=362096)
Fully Fixveh command? -
ArmandoRamiraz - 23.07.2012
I was looking and searching for a command that will fully fix your car and this is what i came up with:
Code:
CMD:fixveh(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,COLOR_GREY," You can not use this command outside of a vehicle!");
{
new car;
car = GetPlayerVehicleID(playerid);
SetVehicleHealth(car, 1000);
SendClientMessage(playerid, COLOR_YELLOW, " You have fixed your vehicle.");
}
return 1;
}
I tested it and it only does the health of the car. Can someone show me a tut or explain what to put into this to make the car get fully repaired?
Re: Fully Fixveh command? -
newbienoob - 23.07.2012
https://sampwiki.blast.hk/wiki/RepairVehicle
Re: Fully Fixveh command? -
ArmandoRamiraz - 23.07.2012
Quote:
Originally Posted by newbienoob
|
Ahh, I feel dumb haha thanks man.
Re: Fully Fixveh command? -
Lorenzo! - 23.07.2012
Hahahaa, you fixed it?
Re: Fully Fixveh command? -
ArmandoRamiraz - 23.07.2012
Yeah it works now thanks