[Pedido] Arrumar o comando /trancarcarrovip para 5 carros
#4

um comando q pode ajudar
Quote:

CMD:modelomeucarro(playerid, params[])
{
new vehid = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey2] == 0&& PlayerInfo[playerid][pCarKey3] == 0&& PlayerInfo[playerid][pCarKey4] == 0&& PlayerInfo[playerid][pCarKey5] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem um Carro VIP.");
return true;
}
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_GREY,"Vocк precisa estar no veiculo VIP!");
return 1;
}
if(PlayerInfo[playerid][pCarKey] != vehid &&
PlayerInfo[playerid][pCarKey2] != vehid &&
PlayerInfo[playerid][pCarKey3] != vehid &&
PlayerInfo[playerid][pCarKey4] != vehid &&
PlayerInfo[playerid][pCarKey5] != vehid)
{
SendClientMessage(playerid, COLOR_GREY, "Esse nгo й seu Carro VIP.");
return true;
}
new carid;
new Veiculo;
if(vehid == PlayerInfo[playerid][pCarKey])
{
carid = PlayerInfo[playerid][pCarKey];
Veiculo = PlayerInfo[playerid][pVeiculo];
}
else if(vehid == PlayerInfo[playerid][pCarKey2])
{
carid = PlayerInfo[playerid][pCarKey2];
Veiculo = PlayerInfo[playerid][pVeiculo2];
}
else if(vehid == PlayerInfo[playerid][pCarKey3])
{
carid = PlayerInfo[playerid][pCarKey3];
Veiculo = PlayerInfo[playerid][pVeiculo3];
}
else if(vehid == PlayerInfo[playerid][pCarKey4])
{
carid = PlayerInfo[playerid][pCarKey4];
Veiculo = PlayerInfo[playerid][pVeiculo4];
}
else if(vehid == PlayerInfo[playerid][pCarKey5])
{
carid = PlayerInfo[playerid][pCarKey5];
Veiculo = PlayerInfo[playerid][pVeiculo5];
}
if(IsPlayerInVehicle(playerid,carid) && CarInfo[Veiculo][cOwned] == 1)
{
SetPVarInt(playerid, "modelovip", Veiculo);
SetPVarInt(playerid, "carrovip", carid);
ShowModelSelectionMenu(playerid, CarrosVipList, "Escolha seu carro", 50, 0x000000AA);
SendClientMessage(playerid, COLOR_YELLOW2, "Escolha o novo modelo do seu carro PREMIUM!");
}
return true;
}

Reply


Messages In This Thread
Arrumar o comando /trancarcarrovip para 5 carros - by rodrigo147 - 08.06.2017, 13:51
Re: Arrumar o comando /trancarcarrovip para 5 carros - by Rato22 - 08.06.2017, 14:00
Re: Arrumar o comando /trancarcarrovip para 5 carros - by rodrigo147 - 08.06.2017, 14:21
Re: Arrumar o comando /trancarcarrovip para 5 carros - by rodrigo147 - 08.06.2017, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)