07.11.2013, 21:26
CreateVehicle(modelid, Float, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
so..
of you want a command to change them..
so..
pawn Код:
CreateVehicle(560, -1522.3668, 891.5472, 6.8458, -3.7360, COLOR1, COLOR2, 100);
pawn Код:
#define COLOR_ERROR 0x808080FF
#define SCM SendClientMessage
CMD:spray(playerid,params[])
{
new color1,color2;
if(sscanf(params,"dd",color1,color2)) return SCM(playerid,COLOR_ERROR,"Usage: /spray [color 1] [color 2]");
new vehicleid = GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid, color1,color2);
return 1;
}