SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 31/10/2008, 06:35 PM   #1
Rac3r
Gangsta
 
Join Date: May 2007
Posts: 500
Reputation: 40
Default [INC] x_racing (Racing Include)

=][= SA-MP RACING INCLUDE =][=
Here is a nice selection of extra ways to improve your racing script, to be honest
this is aimed at Racing, but I'm sure Freeroams, Stunt and even roleplaying scripts
could benefit from my functions.

Don't forget to add this to the top of your script:
Code:
#include <x_racing>
FEATURES
native OnPlayerCarJack(playerid, vehicleid, ispassenger);
This should be placed under OnPlayerEnterVehicle, punishment is death. Can easily be changed.
native AutoUpgrade(modelID,vehicleID);
This can be placed in a command or a funtion, for example...
Code:
dcmd_upgrade(playerid, params[])
{
	#pragma unused params
	return AutoUpgrade(GetVehicleModel(GetPlayerVehicleID(playerid)),GetPlayerVehicleID(playerid));
}
native IsVehicleInvalidPaintable(vehicleid);
This helps if you don't want/need certian vehicles to change colour, for example taxis, cop cars etc.
native IsVehicleBigSize(vehicleid);
native IsVehicleSmallSize(vehicleid);
The above two functions find out how big the vehicle is.
native IsVehicleInvalidNosVehicle(vehicleid);
This makes sure vehicles which can't have Nos, don't get Nos.
native IsVehicleRimsVehicle(vehicleid);
This asks if the vehicle can have new wheels.
native IsVehiclePassengerVehicle(vehicleid);
This asks if they vehicle can have passengers.
native IsVehicleInvalidSOSVehicle(vehicleid);
SOS is our rescue system, but basically it asks if the vehicle has the F2 special feature like landing wheels for planes.
native IsVehiclePaintJOBVehicle(vehicleid);
There are about 15 vehicles that can have the cool paintjobs.
native PlayerIp(playerid);
native PlayerName(playerid);
Nice to have the above, saves all the formatting.
native SetVehicleRepair(playerid,vehicleid);
Repairs vehicle fully, like body parts and plane wings.
native SetVehicleNitro(vehicleid,enabled,type);
Good for giving vehicles different Nos, it also removes nitro.
*enabled - 1 = true, 0 = false.Types are 1008,1009 and 1010.

native SetVehiclePaintJob(vehicleid,vehiclecheck,type);
Good for giving vehicles different paintjobs.
*vehiclecheck - 1 = true, 0 = false.Types are 0,1,2,3.

native SetVehicleLocation(vehicleid, Float, Float:y, Float:z, Float:a, interior, world);
native SetPlayerLocation(playerid, Float, Float:y, Float:z, Float:a, interior, world);
Perhaps not needed, but this saves a lot of time if you are switches between multiple worlds, like AdrenalineX :P

Pastebin :
http://pastebin.com/f48175d68
SendSpace :
http://www.sendspace.com/file/6i4kqs
Rac3r is offline   Reply With Quote
Old 05/04/2009, 08:06 AM   #2
Littl3j0hNy
Huge Clucker
 
Littl3j0hNy's Avatar
 
Join Date: Jan 2007
Posts: 401
Reputation: 26
Default Re: [INC] x_racing (Racing Include)

Hi,
Nice Include, but thats Vehicle Functions and it has
nothing to do with Racing ^^

- LJ
__________________

FREEROAM / MISSIONS / RPG / RACE / DM / GANGS
Join us at www.party-server.com
Littl3j0hNy is offline   Reply With Quote
Reply

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
[Map] [MAP] SF Racing Track 02manchestera Maps 7 02/12/2014 04:56 PM
[FS+ Include]YossI's Health include GiP_YossI Filterscripts 10 17/04/2011 05:15 PM
Racing Stats Help ArTisT Help Archive 2 07/01/2010 05:11 PM


All times are GMT. The time now is 08:51 PM.


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