01.06.2009, 12:42
like so:
and you use the "#define" thingy to give a variable its value. Like for example
COLOR_PURPLE is the name which you can use anywhere and 0x800080AA is its hex color code. The script will know that COLOR_PURPLE is equal 0x800080AA
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/elegy", true)==0)
{
new mycar;
mycar = GetPlayerVehicleID(playerid);
AddVehicleComponent(mycar, 1010);
AddVehicleComponent(mycar, 1034);
AddVehicleComponent(mycar, 1036);
AddVehicleComponent(mycar, 1146);
AddVehicleComponent(mycar, 1149);
AddVehicleComponent(mycar, 1171);
ChangeVehiclePaintjob(mycar, 3);
ChangeVehicleColor(mycar, 6, 6);
return 1;
}
}
Код:
#define COLOR_PURPLE 0x800080AA