[Ajuda] Restar carro.
#4

Quote:
Originally Posted by BielCOP
Посмотреть сообщение
pawn Код:
// Cmd

if(strcmp(cmd, "/resetarcarros", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pAdmin] >= 4000)
        {
            RespawnVeiculos();
        }
    }
    return 1;
}

// Fim do Gm

RespawnVeiculos() // By Biel_COP
{
    new PlayersVeiculo[MAX_VEHICLES];

    for(new a=0; a<MAX_VEHICLES; a++)
    {
        for(new b=0; b<MAX_PLAYERS; b++)
        {
            if(IsPlayerInVehicle(b,a))
            {
                PlayersVeiculo[a]++;
            }
        }
    }
    for(new c=0; c<MAX_VEHICLES; c++)
    {
        if(PlayersVeiculo[c] == 0)
        {
            SetVehicleToRespawn(c);
        }
    }
    return 1;
}
vc e a sua coisa de complicar o que e simples...
Reply


Messages In This Thread
Restar carro. - by BaianoIn - 20.10.2013, 12:43
Re: Restar carro. - by PT - 20.10.2013, 13:36
Re: Restar carro. - by BielCOP - 20.10.2013, 14:18
Re: Restar carro. - by PT - 20.10.2013, 14:45
Re: Restar carro. - by BielCOP - 20.10.2013, 14:48
Re: Restar carro. - by WLSF - 20.10.2013, 14:52
Re: Restar carro. - by PT - 20.10.2013, 14:59
Re: Restar carro. - by BielCOP - 20.10.2013, 15:02

Forum Jump:


Users browsing this thread: 2 Guest(s)