e so tu fazer um comando assim.... para cada cor... ou crie um menu......... dialogid
pawn Код:
ChangeVehicleColor(GetPlayerVehicleID(playerid),0,0);
essa e a cor preta!!!! e assim tu vai fazendo... cada cor tu poe um comando.... + no seu lugar faria um menu fica + rox... =p vo te dar um exemplo de menu cores do meu server....
pawn Код:
CMD:cores(playerid, params[])
{
#pragma unused params
////////////////////////////////////
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xC9170EFF, "[ERROR]{FFFFFF} : Vocк Nгo Esta Em Um Veнculo!!");
ShowPlayerDialog(playerid, APOLLORJ, DIALOG_STYLE_LIST, "{FFFF00}Menu {FFFFFF}Cores", "[ Preta ]\n[ Branca ]\n[ Azul Escuro ]\n[ Azul Claro ]\n[ Verde ]\n[ Vermelho ]\n[ Amarelho ]", "OK", "Sair");
////////////////////
return true;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == APOLLORJ) // CORES
{
if(response)
{
if(listitem == 0)
{
ChangeVehicleColor(GetPlayerVehicleID(playerid),0,0);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
}
if(listitem == 1)
{
ChangeVehicleColor(GetPlayerVehicleID(playerid),1,1);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
}
if(listitem == 2)
{
ChangeVehicleColor(GetPlayerVehicleID(playerid),425,425);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
}
if(listitem == 3)
{
ChangeVehicleColor(GetPlayerVehicleID(playerid),2,2);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
}
if(listitem == 4)
{
ChangeVehicleColor(GetPlayerVehicleID(playerid),16,16);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
}
if(listitem == 5)
{
ChangeVehicleColor(GetPlayerVehicleID(playerid),3,3);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
}
if(listitem == 6)
{
ChangeVehicleColor(GetPlayerVehicleID(playerid),6,6);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
}
if(listitem == 7)
{
ChangeVehicleColor(GetPlayerVehicleID(playerid),146,146);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
return 1;
}
}
}
return 1;
}
By ApolloRJ