13.09.2010, 15:00
(
Последний раз редактировалось RyDeR`; 15.08.2011 в 14:36.
Причина: Script update
)
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
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
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);
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