Respawn all empty cars
#3

Try this. Add IsVehicleInUse somewhere and replace RespawnAllEmptyCars with my function.
pawn Код:
stock IsVehicleInUse(vid)
{
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(IsPlayerInVehicle(i, vid)) return 1;
    }
    return 0;
}

stock RespawnAllEmptyCars()
{
    for(new i=0; i < 700; i++)
    {
    if(!IsVehicleInUse(i)) SetVehicleToRespawn(i);
    }
}
Reply


Messages In This Thread
Respawn all empty cars - by ihatetn931 - 16.08.2010, 17:38
Re: Respawn all empty cars - by CT_Ronnie_Deo - 16.08.2010, 17:54
Re: Respawn all empty cars - by Dark_Kostas - 16.08.2010, 18:13
Re: Respawn all empty cars - by Kidel - 16.08.2010, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)