28.12.2012, 12:34
Hey, i made a new script for /spraycar but it only gives your car black colours, even if you do /spraycar 6 13
pawn Код:
dcmd_spraycar(playerid, params[])
{
if(GetPlayerState(playerid) != 2) return SendClientMessage(playerid, 0xFF0000FF, "You are not driving in a vehicle.");
new clr,clr2;
if(sscanf(params, "iI(-1)", clr, clr2))
{
return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /spraycar [color1] <color2>");
}
if(clr2 == -1) clr2 = clr;
new szSuccess[44];
format(szSuccess, sizeof(szSuccess), "Vehicle colors changed to: {FFFFFF}%i and %i.", clr, clr2);
SendClientMessage(playerid, 0x00FF00FF, szSuccess);
ChangeVehicleColor(GetPlayerVehicleID(playerid), clr, clr2);
return 1;
}