[Ajuda] Respawn veiculos
#6

No manin acabei de arrumar o meu agorinha passei um tempinho mais funcionou

Код:
stock Respawn_Go()
{
	GameTextForAll("~g~Veiculos do server resetados!", 5000, 3);
    for(new i; i < MAX_VEHICLES; i++)
    {
    if(!IsVehicleInUse(i))
        SetVehicleToRespawn(i);
    }
	return 1;
}
stock IsVehicleInUse(vehicleid)
{
    new Veiculo;
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(GetPlayerVehicleID(i) == vehicleid)
            Veiculo = vehicleid;

        if(GetVehicleTrailer(GetPlayerVehicleID(i)) == vehicleid)
            Veiculo = vehicleid;

		new norespawn = CarroDosPlayers[PlayerInfo[i][pID]];
        if(norespawn == vehicleid)
            Veiculo = vehicleid;
    }
    return Veiculo;
}
Reply


Messages In This Thread
Respawn veiculos - by LucasDias - 16.07.2015, 01:59
Re: Respawn veiculos - by Cleyson - 16.07.2015, 02:10
Re: Respawn veiculos - by LucasDias - 16.07.2015, 02:19
Re: Respawn veiculos - by iTakelot - 16.07.2015, 02:22
Re: Respawn veiculos - by Welconha - 16.07.2015, 02:31
AW: Respawn veiculos - by djgabrielway - 16.07.2015, 06:05
Re: Respawn veiculos - by n0minal - 16.07.2015, 06:16
AW: Respawn veiculos - by djgabrielway - 16.07.2015, 06:20
Re: Respawn veiculos - by n0minal - 16.07.2015, 06:26

Forum Jump:


Users browsing this thread: 2 Guest(s)