SA-MP Forums Archive
[Include] GetVehicleColor v1.2 [Update 04/01/2011] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] GetVehicleColor v1.2 [Update 04/01/2011] (/showthread.php?tid=176496)



GetVehicleColor v1.2 [Update 04/01/2011] - RyDeR` - 13.09.2010

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


Re: GetVehicleColor - MrDeath537 - 13.09.2010

EXCELLENT! I'm sure I'll use it, thanks!


Re: GetVehicleColor - Double-O-Seven - 13.09.2010

What about ChangeVehicleColor & OnVehicleRespray?


Re: GetVehicleColor - RyDeR` - 13.09.2010

Quote:
Originally Posted by Double-O-Seven
Посмотреть сообщение
What about ChangeVehicleColor & OnVehicleRespray?
I completely forgot those ones because I (almost) never use them. Thanks, will update immidiately.


Re: GetVehicleColor - RyDeR` - 13.09.2010

Alright, when I'm done with my homework, I will rewrite the whole include to something new.

Thanks ^^


Re: GetVehicleColor - [Ask]Terminator - 13.09.2010

nice and usefull


Re: GetVehicleColor - HyperZ - 13.09.2010

Nice work RyDeR


Re: GetVehicleColor v1.1 - UPDATED!!! - RyDeR` - 13.09.2010

Updated to 1.1!

A very stable version now. Also you don't have to replace anything! (Thanks to ******)
More info first page.

Let the comments come!


Re: GetVehicleColor - RyDeR` - 26.10.2010

Bump. I'm sorry but I released the new link a while ago and almost noone saw it.


Re: GetVehicleColor - RyDeR` - 26.10.2010

Yes, indeed, like that. My bad