frespawn command only respawns 1 faction
#2

IsPlayerInAnyVehicle has playerid as parameters. Not vehicle id.
Use this function:
pawn Код:
stock IsVehicleOccupied(vehid)
{
    for( new all = 0; all < MAX_PLAYERS; all++)
    {
        if (IsPlayerInVehicle(all, vehid))
        {
            return 1;
        }
    }
    return 0;
}
Also, try this, maybe it'll work.
pawn Код:
for(new v = 0; v < 25; v++)
{
    if(!IsVehicleOccupied(FacInfo[1][fCars][i]))
    {
        SetVehicleToRespawn(FacInfo[1][fCars][i]);
    }
}
Reply


Messages In This Thread
frespawn command only respawns 1 faction - by AMouldyLemon - 02.09.2014, 08:40
Re: frespawn command only respawns 1 faction - by Stinged - 02.09.2014, 08:48
Re: frespawn command only respawns 1 faction - by AMouldyLemon - 02.09.2014, 09:01
Re: frespawn command only respawns 1 faction - by Stinged - 02.09.2014, 09:35
Re: frespawn command only respawns 1 faction - by AMouldyLemon - 02.09.2014, 09:38
Re: frespawn command only respawns 1 faction - by Stinged - 02.09.2014, 09:40
Re: frespawn command only respawns 1 faction - by AMouldyLemon - 02.09.2014, 09:43

Forum Jump:


Users browsing this thread: 3 Guest(s)