[Ajuda] Respawn veiculos
#2

PHP код:
new bool:VeiculoOcupado[MAX_VEHICLES];
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    
VeiculoOcupado[vehicleid] = true;
    return 
1;
}
public 
OnPlayerExitVehicle(playeridvehicleid)
{
    
VeiculoOcupado[vehicleid] = false;
    return 
1;
}
CMD:respawn(playerid)
{
    for(new 
0MAX_VEHICLESc++)
    {
        if(
VeiculoOcupado[c] == false)
        {
            
SetVehicleToRespawn(c);
        }
    }
    return 
1;

Acho que da pra comeзar
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)