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