26.05.2010, 11:40
Description
It's simple include, which took me 5 minutes to create. It is not so impressive script, but kinda usefull.
Functions
CreateStaticVehicle - works the same, as https://sampwiki.blast.hk/wiki/AddStaticVehicle
CreateStaticVehicleEx - works the same, as https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
AddVehicle - works the same, as https://sampwiki.blast.hk/wiki/CreateVehicle
ChangeVehiclePaintjobEx - works the same, as https://sampwiki.blast.hk/wiki/ChangeVehiclePaintjob
GetVehicleColor1(vehicleid);
GetVehicleColor2(vehicleid);
GetVehiclePaintjob(vehicleid);
Example:
IMPORTANT
If you want to get vehicle's colors and paintjob, you MUST to add vehicles/create vehicles/change paintjob using functions above.
Credits
Martin_M
WackoX for ChangeVehiclePaintjobEx(vehicleid,paintjob); and GetVehiclePaintjob(vehicleid);
Download
http://solidfiles.com/d/9313/
http://pastebin.com/mApgGJBf
You can use, edit it or whatever You want, except appropriate.
Good luck.
P.S.
It's not tested, so You can find bugs, write thems in this topic.
It's simple include, which took me 5 minutes to create. It is not so impressive script, but kinda usefull.
Functions
Code:
CreateStaticVehicle(modelID,Float:X,Float:Y,Float:Z,Float:FacingAngle,colorID1,colorID2); CreateStaticVehicleEx(modelID,Float:X,Float:Y,Float:Z,Float:FacingAngle,colorID1,colorID2,respawnTime); AddVehicle(modelID,Float:X,Float:Y,Float:Z,Float:FacingAngle,colorID1,colorID2,respawnTime); ChangeVehiclePaintjobEx(vehicleid,paintjobid); GetVehicleColor1(vehicleid); GetVehicleColor2(vehicleid); GetVehiclePaintjob(vehicleid);
CreateStaticVehicleEx - works the same, as https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
AddVehicle - works the same, as https://sampwiki.blast.hk/wiki/CreateVehicle
ChangeVehiclePaintjobEx - works the same, as https://sampwiki.blast.hk/wiki/ChangeVehiclePaintjob
GetVehicleColor1(vehicleid);
GetVehicleColor2(vehicleid);
GetVehiclePaintjob(vehicleid);
Example:
Code:
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger) { new string[128]; format(string, sizeof(string), "My vehicle color1 ID - %d and color2 ID - %d and Paintjob ID - %d",GetVehicleColor1(vehicleid),GetVehicleColor2(vehicleid),GetVehiclePaintjob(vehicleid)); SendClientMessage(playerid, 0xFFFFFFFF, string); return 1; }
If you want to get vehicle's colors and paintjob, you MUST to add vehicles/create vehicles/change paintjob using functions above.
Credits
Martin_M
WackoX for ChangeVehiclePaintjobEx(vehicleid,paintjob); and GetVehiclePaintjob(vehicleid);
Download
http://solidfiles.com/d/9313/
http://pastebin.com/mApgGJBf
You can use, edit it or whatever You want, except appropriate.
Good luck.
P.S.
It's not tested, so You can find bugs, write thems in this topic.