04.05.2015, 21:09
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:
Download: Pastebin
Remember to put #include "GetVehicleColor" in your input's list.
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(playerid, vehicleid, ispassenger)
{
new color_1, color_2, string[100];
new color = GetVehicleColor(vehicleid, color_1, color_2);
format(string, sizeof(string), "You entering in vehicle %d with color %d and color %d.", vehicleid, color_1, color_2);
SendClientMessage(playerid, -1, string);
return 1;
}
Remember to put #include "GetVehicleColor" in your input's list.