Command to destroy all vehicles in the server
#1

I am trying to make a command to destroy all vehicles in the server, exept vehicles with players in. The code i've got at the moment just destroys vehicles with players in!! Can anyone point me in the right direction?

pawn Код:
#include a_samp
#include zcmd

COMMAND:respawn(playerid, params[])
{
    for(new players = 0; players < MAX_PLAYERS; players++) //loop through players
    for(new i = 0; i < MAX_VEHICLES; i++) //loop through vehicles
    if(IsPlayerInVehicle(players, i) == 1)
    {
        //don't destroy this vehicle?
    }
    return 1;
}
Reply


Messages In This Thread
(Solved)Command to destroy all vehicles in the server - by linuxthefish - 02.04.2011, 08:45
Re: Command to destroy all vehicles in the server - by iggy1 - 02.04.2011, 09:08
Re: Command to destroy all vehicles in the server - by s0nic - 02.04.2011, 09:15
Re: Command to destroy all vehicles in the server - by linuxthefish - 02.04.2011, 09:26

Forum Jump:


Users browsing this thread: 2 Guest(s)