Quote:
Originally Posted by Mauzen
pawn Код:
stock IsVehicleOccupied(vehicleid) { for (new i = 0; i < GetMaxPlayers(); i ++) { if (GetPlayerVehicleID(playerid) == vehicleid) return true; } return false; }
Just written, so untested. This checks if a specific vehicle is occupied. You can use it in a loop through all vehicles to delete all unsused ones. Not the fastest method, but should be fine if you dont want to delete the vehicles every second ![Wink](images/smilies/wink.png)
|
i think cpu usuage gets affected if he uses every second