[Ajuda] Respawn de Veiculos
#7

tenta dessa forma, nгo sei se irб dar certo apenas tentei mudar

pawn Код:
CMD:rc(playerid, params[])
{
    SendAdminText(playerid, "/rc", params);
    if(APlayerData[playerid][PlayerLevel] >= 1)
    {
        new bool:vehicle[MAX_VEHICLES];
        for(new j = 1; GetVehicleModel(j); ++j)
        {
            vehicle[j] = false;
            for(new i, p = GetMaxPlayers(); i < p; ++i)
            {
                if(!IsPlayerInAnyVehicle(i) || !IsPlayerConnected(i) )
                continue;

                if(IsPlayerInVehicle(i, j))
                {
                    if(vehicle[j] = true && IsTrailerAttachedToVehicle(j) == true)
                    break;
                }
            }
            if(!vehicle[j])
            if(!IsTrailerAttachedToVehicle(j))
            SetVehicleToRespawn(j);
            else return 0;
        }
    }
    else
    return 0;
    return 1;
}
Reply


Messages In This Thread
Respawn de Veiculos - by Luucass - 26.05.2014, 21:00
Re: Respawn de Veiculos - by Luucass - 26.05.2014, 21:19
Re: Respawn de Veiculos - by Alwe - 26.05.2014, 21:57
Re: Respawn de Veiculos - by Luucass - 26.05.2014, 22:04
Re: Respawn de Veiculos - by Alwe - 26.05.2014, 22:08
Re: Respawn de Veiculos - by Input - 26.05.2014, 22:09
Re: Respawn de Veiculos - by MatheusDalZot - 26.05.2014, 22:10
Re: Respawn de Veiculos - by JoaoMonteiro - 26.05.2014, 22:18
Re: Respawn de Veiculos - by Luucass - 26.05.2014, 23:35

Forum Jump:


Users browsing this thread: 1 Guest(s)