30.04.2012, 19:01
Why so.. so.. different? Its very easy without configuring script that much:
pawn Код:
stock GetTotalVehicles()
{
new VehicleCount = 0;
for(new vehicle = 1; vehicle < MAX_VEHICLES; vehicle++)
{
new Float:Pos[3];
GetVehiclePos(vehicle, Pos[0], Pos[1], Pos[2]);
if(Pos[0] != 0.0 && Pos[1] != 0.0) VehicleCount++
}
return VehicleCount;
}