SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 22/10/2009, 07:26 PM   #1
Sampiscool123
Big Clucker
 
Join Date: Oct 2009
Posts: 80
Reputation: 0
Default How do i make a vehicle repair to full?

hi i was wondering if anyone could send me a script/code that makes the whole of the vehicle repair including the body of the vehicle. please help

thanks
Sampiscool123 is offline  
Old 22/10/2009, 07:31 PM   #2
Pawno_Master
Huge Clucker
 
Join Date: Jun 2009
Posts: 379
Reputation: 0
Default Re: How do i make a vehicle repair to full?

search on wiki samp or look at a filterscript i could tell you tomorrow if you can't find
Pawno_Master is offline  
Old 22/10/2009, 07:32 PM   #3
Sampiscool123
Big Clucker
 
Join Date: Oct 2009
Posts: 80
Reputation: 0
Default Re: How do i make a vehicle repair to full?

nevermind i found it! sorry for posting a topic without reading wiki
Sampiscool123 is offline  
Old 22/10/2009, 07:37 PM   #4
Imran.Abbas
Huge Clucker
 
Join Date: Aug 2009
Posts: 341
Reputation: 0
Default Re: How do i make a vehicle repair to full?

Sometime i also will come for help hehe, okay dont mind if you got errors because im new Scripter


if you want this cmd , it will teleport to Pay N spary , after that They will give you New Body and colour Enjoy my First Fs hehehehehe
Code:
	if(strcmp(cmdtext, "/fullrepair", true) == 0)
	{
	  		new vehicleid = GetPlayerVehicleID(playerid);
			new Float:X, Float:Y, Float:Z, Float:Angle;
			GetVehiclePos(vehicleid, X, Y, Z);
			GetVehicleZAngle(vehicleid, Angle);
			SetVehiclePos(vehicleid, 2067.7327,-1831.5408,13.2523);
			SetCameraBehindPlayer(playerid);
			SetVehicleZAngle(vehicleid, 185.7243);
			GameTextForPlayer(playerid, "~g~~h~~h~Repairing...", 3500, 5);
			SetTimerEx("ReplaceVehicle", 3000, 0, "iffff", vehicleid, X, Y, Z, Angle);
		}
		else return SendClientMessage(playerid,COLOR_RED, "You're not in a vehicle.");
		return 1;
	}
Imran.Abbas is offline  
Old 22/10/2009, 07:38 PM   #5
Peter_Corneile
Gangsta
 
Join Date: Mar 2009
Posts: 870
Reputation: 0
Default Re: How do i make a vehicle repair to full?

Quote:
Originally Posted by Sampiscool123
nevermind i found it! sorry for posting a topic without reading wiki
I hope their wont be a need for asking sorry next time
Peter_Corneile is offline  
Old 22/10/2009, 07:43 PM   #6
Imran.Abbas
Huge Clucker
 
Join Date: Aug 2009
Posts: 341
Reputation: 0
Default Re: How do i make a vehicle repair to full?

Quote:
Originally Posted by Sampiscool123
nevermind i found it! sorry for posting a topic without reading wiki
Eek okay ;/ i waste my time to Write this all ...................................

See Wiki before asking something dont be like me
Imran.Abbas is offline  
Old 22/10/2009, 08:49 PM   #7
Peter_Corneile
Gangsta
 
Join Date: Mar 2009
Posts: 870
Reputation: 0
Default Re: How do i make a vehicle repair to full?

Quote:
Originally Posted by D0n_With_Mafia_Skills
Sometime i also will come for help hehe, okay dont mind if you got errors because im new Scripter


if you want this cmd , it will teleport to Pay N spary , after that They will give you New Body and colour Enjoy my First Fs hehehehehe
Code:
	if(strcmp(cmdtext, "/fullrepair", true) == 0)
	{
	  		new vehicleid = GetPlayerVehicleID(playerid);
			new Float:X, Float:Y, Float:Z, Float:Angle;
			GetVehiclePos(vehicleid, X, Y, Z);
			GetVehicleZAngle(vehicleid, Angle);
			SetVehiclePos(vehicleid, 2067.7327,-1831.5408,13.2523);
			SetCameraBehindPlayer(playerid);
			SetVehicleZAngle(vehicleid, 185.7243);
			GameTextForPlayer(playerid, "~g~~h~~h~Repairing...", 3500, 5);
			SetTimerEx("ReplaceVehicle", 3000, 0, "iffff", vehicleid, X, Y, Z, Angle);
		}
		else return SendClientMessage(playerid,COLOR_RED, "You're not in a vehicle.");
		return 1;
	}
By the way does that code take you to a pay n spray ?
Peter_Corneile is offline  
Old 22/10/2009, 09:24 PM   #8
kman
Big Clucker
 
Join Date: Sep 2009
Posts: 145
Reputation: 0
Default Re: How do i make a vehicle repair to full?

you have to setvehiclehealth
kman is offline  
Old 22/10/2009, 09:26 PM   #9
Peter_Corneile
Gangsta
 
Join Date: Mar 2009
Posts: 870
Reputation: 0
Default Re: How do i make a vehicle repair to full?

I think what he did was that the guy teleports to a pay n spray and comes back where he was after getting resprayed
Peter_Corneile is offline  
Old 22/10/2009, 10:00 PM   #10
Streetplaya
Gangsta
 
Join Date: Nov 2007
Posts: 603
Reputation: 1
Default Re: How do i make a vehicle repair to full?

Use 0.3's RepairVehicle(vehicleid);
Streetplaya 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
[FilterScript] [FS] Automatic Vehicle Repair Brian_G Filterscripts 15 23/06/2010 04:13 PM
Vehicle repair and variables newarvuti Help Archive 1 25/04/2010 06:17 PM
Repair Vehicle not working cozza123456 Help Archive 10 22/03/2010 03:47 PM
[FilterScript] [FS] Full repair _[HuN]_Epsilon_ Filterscripts 26 25/12/2009 02:54 PM
Repair Vehicle Fully Alec24 Help Archive 6 07/04/2009 03:39 PM


All times are GMT. The time now is 05:52 PM.


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