17.08.2012, 19:54
Here's mine. Works great.
pawn Код:
CMD:color(playerid,params[])
{
new col[2],string[128];
if(sscanf(params, "dd",col[0],col[1])) return SendClientMessage(playerid, COLOR_RED, "Usage: /color [Color 1] [Color 2]");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"You must be in a car!");
ChangeVehicleColor(GetPlayerVehicleID(playerid), col[0],col[1]);
format(string,sizeof(string),""COL_GREEN"You changed color on your car to: (%d) (%d)",col[0],col[1]);
SendClientMessage(playerid,-1,string);
return 1;
}