Fixing only wheels - 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: Fixing only wheels (
/showthread.php?tid=265595)
Fixing only wheels -
.::Silver::. - 01.07.2011
Hey.
I want to add my script that someone can fix only car wheels and other stuff like it.
I seartched from samp wiki and ******, but i didnґt found it... Is this possible? And if it is then please add link from toturial or smth
Thanks!
Re: Fixing only wheels - rjjj - 01.07.2011
You can use the
UpdateVehicleDamageStatus function to do it
.
To fix only the car wheels, for example, you can use
:
pawn Код:
new VehicleStuff[4];
GetVehicleDamageStatus(vehicleid,VehicleStuff[0],VehicleStuff[1],VehicleStuff[2],VehicleStuff[3]);
UpdateVehicleDamageStatus(vehicleid,VehicleStuff[0],VehicleStuff[1],VehicleStuff[2], 0);
I hope that i have helped
.
Re: Fixing only wheels -
.::Silver::. - 01.07.2011
Wow, it helped! Thank you!