[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
#2

EXCELLENT! I'm sure I'll use it, thanks!
Reply
#3

What about ChangeVehicleColor & OnVehicleRespray?
Reply
#4

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.
Reply
#5

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

Thanks ^^
Reply
#6

nice and usefull
Reply
#7

Nice work RyDeR
Reply
#8

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!
Reply
#9

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

Yes, indeed, like that. My bad
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)