SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 10/08/2010, 07:10 PM   #1
speediekiller2
Big Clucker
 
speediekiller2's Avatar
 
Join Date: Aug 2010
Location: netherlands
Posts: 140
Reputation: 1
Default car body ???

how to repair a car body with a repair script alone the engine is fixed how can i fix the body from the car


(my english is not good)
speediekiller2 is offline  
Old 10/08/2010, 07:35 PM   #2
[MWR]Blood
High-roller
 
Join Date: Apr 2009
Posts: 2,268
Reputation: 105
Default Re: car body ???

pawn Code:
new vehicleid=GetPlayerVehicleID(playerid);
RepairVehicle(vehicleid);
__________________
[MWR]Blood is offline  
Old 10/08/2010, 07:35 PM   #3
Sascha
High-roller
 
Sascha's Avatar
 
Join Date: Jul 2009
Location: Germany
Posts: 1,494
Reputation: 70
Default Re: car body ???

RepairVehicle(vehicleid);

This repairs the engine and the "car body"



EDIT: oh ikarus was faster
Sascha is offline  
Old 10/08/2010, 07:36 PM   #4
JaTochNietDan
High-roller
 
JaTochNietDan's Avatar
 
Join Date: Apr 2007
Location: Republic of Ireland
Posts: 2,502
Reputation: 363
Default Re: car body ???

Use

pawn Code:
RepairVehicle(vehicleid);

It will repair the car completely, including cosmetic repairs.

Edit: I wish it would tell me if someone has already answered
JaTochNietDan is offline  
Old 10/08/2010, 08:56 PM   #5
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,150
Reputation: 215
Default Re: car body ???

Ok if im right he mean HOW TO REPAIR CAR BODY BUT LEAVE CAR HEALTH SAME..

You get car health store it to variable repair car and set car health same as they was
DRIFT_HUNTER is offline  
Old 10/08/2010, 09:25 PM   #6
MrDeath537
High-roller
 
Join Date: Nov 2009
Location: Argentina
Posts: 1,959
Reputation: 29
Default Re: car body ???

Code:
RepairVehicle(vehicleid);
It repairs the vehicle body and the engine.


If you want repair the vehicle's body you can try it:

pawn Code:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    UpdateVehicleDamageStatus(vehicleid, 0, 0, 0, 0);
}
__________________
Sometimes I return.
MrDeath537 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Car Repair Body And NOS Abdulla_Alnuaimi Help Archive 2 26/05/2010 05:05 AM
Need help with car body XxerykxX Help Archive 19 20/02/2010 09:17 PM
Body Stays in until... Namaco Help Archive 5 22/12/2009 08:17 PM
Evian effects on your body LOL! [IB]Scorcher Everything and Nothing 15 20/09/2009 07:10 AM


All times are GMT. The time now is 03:38 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.