28.04.2012, 15:23
pawn Code:
CMD:colorcar(playerid, params[])
{
new color[2];
if(sscanf(params,"dD",color[0],color[1]))
{
return SendClientMessage(playerid, -1, "USAGE: /colorcar [color1] [color2]");
}
new
string[128];
format(string, sizeof(string), "You have change the vehicle's color 1 to %d and color 2 to %d!",color[0],color[1]);
SendClientMessage(playerid, -1, string);
ChangeVehicleColor(GetPlayerVehicleID(playerid),color[0],color[1]);
return 1;
}