how chage color vehicle
#1

PHP код:
CreateVehicle(560, -1522.3668891.54726.8458, -3.7360, -1, -1100); 
Reply
#2

CreateVehicle(modelid, Float, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)

so..

pawn Код:
CreateVehicle(560, -1522.3668, 891.5472, 6.8458, -3.7360, COLOR1, COLOR2, 100);
of you want a command to change them..

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)