18.06.2008, 00:34
I dont have any screen shots but use this command I made
EXTRA CAR COLORS COMMAND!!!
You can use this to change you vehicle color the secret hidden car colors!
USAGE: /CARCOLOR [1-300] [1-300]
NOTE: Can go up higher then 300 but still the same color :P
You can use this to change you vehicle color the secret hidden car colors!
USAGE: /CARCOLOR [1-300] [1-300]
NOTE: Can go up higher then 300 but still the same color :P
Код:
if(strcmp(cmd, "/carcolor", true) == 0)
{
new tmp[256];
new co1;
new co2;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "ERROR: /CARCOLOR [1-300] [1-300]");
return 1;
}
co1 = strval(tmp);
ChangeVehicleColor(GetPlayerVehicleID(playerid), co1, co1);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
ChangeVehicleColor(GetPlayerVehicleID(playerid), co1, co1);
return 1;
}
co2 = strval(tmp);
ChangeVehicleColor(GetPlayerVehicleID(playerid), co1, co2);
return 1;
}
NOTE: Needs STRTOK 


