[Include] GetVehicleColor v1.2 [Update 04/01/2011]
#1

Version 1.2 [Update 04/01/2011]
It's highly recommended to update since the old one has lots of major bugs.


Foreword
Hey everyone, I made a small include which allows you to get the colors of the vehicle.
It's really useful since SA:MP doesn't have it's own native for this.
Have fun using this.

Installation
- Save the include from the pastebin link below (Use GetVehicleColor.inc to save it so everyone has the same name (useful for releases with this include!)) and put it at the right place.
- Just add #include <GetVehicleColor> at the top of your script(s).
- Add __OnVehicleRespray(playerid, vehicleid, color1, color2) under OnVehicleRespray.
- We're done!

Example
pawn Код:
new
    color1,
    color2
;
GetVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
printf("PlayerID %d's vehicle colors are %d and %d", playerid, color1, color2);
Download
https://sampforum.blast.hk/showthread.php?tid=235398

Notes
Please update immidiatly if you still have the older version.
The things that I fixed/added/changed are:
- Vehicleid problems are fixed.
- Now you can share color data trough all scripts in your server.
- Include is completely rewritten.
- Some other little bugs are fixed.

I can say that this is the most stable version of GetVehicleColor till now. Please update if you still have the old one which doesn't work correct sometimes and messes up vehicleid's.

Have fun using and give me some feedback
Reply


Messages In This Thread
GetVehicleColor v1.2 [Update 04/01/2011] - by RyDeR` - 13.09.2010, 15:00
Re: GetVehicleColor - by MrDeath537 - 13.09.2010, 15:11
Re: GetVehicleColor - by Double-O-Seven - 13.09.2010, 15:30
Re: GetVehicleColor - by RyDeR` - 13.09.2010, 15:43
Re: GetVehicleColor - by RyDeR` - 13.09.2010, 16:06
Re: GetVehicleColor - by [Ask]Terminator - 13.09.2010, 16:35
Re: GetVehicleColor - by HyperZ - 13.09.2010, 17:36
Re: GetVehicleColor v1.1 - UPDATED!!! - by RyDeR` - 13.09.2010, 18:15
Re: GetVehicleColor - by RyDeR` - 26.10.2010, 14:49
Re: GetVehicleColor - by RyDeR` - 26.10.2010, 17:23

Forum Jump:


Users browsing this thread: 2 Guest(s)