24.05.2009, 21:27
I'm finding it rather hard to interpret, try this:
It should also require less looping, and I think it's a bit easier to understand.. If you want to use 340 instead of MAX_VEHICLES just change them..
pawn Код:
public RespawnVeh()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
VehicleState[GetPlayerVehicleID(i)] = 1;
}
for(new i=1; i<MAX_VEHICLES; i++)
{
if(!VehicleState[i]) SetVehicleToRespawn(i);
else VehicleState[i] = 0;
}
return 1;
}