16.08.2010, 18:13
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);
}
}