vehicles empty.
#2

with zcmd:
pawn Код:
CMD:cleanvehicles(playerid, params[])
{
       for(new i = 0; i < MAX_PLAYERS; i++)
       {
               for(new a = 0; a < MAX_VEHICLES; a++)
               {
                       if(!IsPlayerInVehicle(i, a) && i != INVALID_PLAYER_ID && a != INVALID_VEHICLE_ID)
                       {
                                 SetVehicleToRespawn(a);
                                 SendClientMessageToAll(-1, "Unused vehicles successfully respawned"); // debugging
                       }
               }
        }
        return 1;
}
edit it and add admin's variable check as your wish.
Reply


Messages In This Thread
vehicles empty. - by Snoopythekill - 16.12.2014, 18:45
Re: vehicles empty. - by Sawalha - 16.12.2014, 19:01
Re: vehicles empty. - by PowerPC603 - 16.12.2014, 21:07

Forum Jump:


Users browsing this thread: 2 Guest(s)