29/10/2021 22:01
(Esta mensagem foi modificada pela última vez a: 29/10/2021 23:49 por xbruno1000x.)
(29/10/2021 21:37)xbruno1000x Escreveu: Ajeita essa fonte aí do tópico e envie o trecho desse código na OnDialogResponse para ajudarmos.
Código:
if(dialogid == 5) // DIALOG DO /VA
{
if(response)
{
new Float:posx,Float:posy,Float:posz;
if(listitem == 0)
{
if(PlayerInfo[playerid][Admin] < 3) return SendClientMessage(playerid, -1, "{B22222}[Breaking Peace] > {FFFFFF}veiculo restrito aos admins nivel 3 pra cima!");
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(425, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 1)
{
if(PlayerInfo[playerid][Admin] < 4) return SendClientMessage(playerid, -1, "{B22222}[Breaking Peace] > {FFFFFF}veiculo restrito aos admins nivel 4 pra cima!");
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(520, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 2)
{
if(PlayerInfo[playerid][Admin] < 4) return SendClientMessage(playerid, -1, "{B22222}[Breaking Peace] > {FFFFFF}veiculo restrito aos admins nivel 4 pra cima!");
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(432, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 3)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(481, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 4)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(510, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 5)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(446, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 6)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(535, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 7)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(541, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 8)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(494, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 9)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(411, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 10)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(451, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 11)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(506, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 12)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(560, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 13)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(400, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 14)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(522, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 15)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(468, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 16)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(471, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
if(listitem == 17)
{
GetPlayerPos(playerid, posx,posy,posz);
PlayerInfo[playerid][veiculo] = CreateVehicle(431, posx+4, posy, posz, 0, 0, 0, 0, 0);
}
}
}
return 1;
}