[Include] GetVehicleColor - 0.3.7 Update
#10

Quote:
Originally Posted by DarkLouis
Посмотреть сообщение
GetVehicleColor - 0.3.7 Update

Hello. This include was written on 2011 (Here) by Ryder.

Today I updated to 0.3.7 and changed some things.


Function(s):

GetVehicleColor(vehicleid , &color1, &color2)

vehicleid = the id of the vehicle.
color1 = the color number one - must be assigned to a variable.
color2 = the color number two - must be assigned to a variable.

Example:

PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    new 
color_1color_2string[100];
    
    new 
color GetVehicleColor(vehicleidcolor_1color_2);
    
    
format(stringsizeof(string), "You entering in vehicle %d with color %d and color %d."vehicleidcolor_1color_2);
    
    
SendClientMessage(playerid, -1string);
    
    return 
1;

Download: Pastebin

Remember to put #include "GetVehicleColor" in your input's list.
Thank you! It worked (i think).
Reply


Messages In This Thread
GetVehicleColor - 0.3.7 Update - by DarkLouis - 04.05.2015, 21:09
Re: GetVehicleColor - 0.3.7 Update - by Admigo - 04.05.2015, 21:24
Re: GetVehicleColor - 0.3.7 Update - by DarkLouis - 04.05.2015, 21:25
Re: GetVehicleColor - 0.3.7 Update - by DarkLouis - 04.05.2015, 21:32
Re: GetVehicleColor - 0.3.7 Update - by Admigo - 04.05.2015, 21:45
Re: GetVehicleColor - 0.3.7 Update - by Emmet_ - 04.05.2015, 21:52
Re: GetVehicleColor - 0.3.7 Update - by Puppy - 04.05.2015, 22:23
Re: GetVehicleColor - 0.3.7 Update - by Emmet_ - 04.05.2015, 22:24
Re: GetVehicleColor - 0.3.7 Update - by MP2 - 05.05.2015, 00:00
Re: GetVehicleColor - 0.3.7 Update - by Hayden_Almeida - 22.01.2016, 18:17

Forum Jump:


Users browsing this thread: 1 Guest(s)