[HELP] Destroying Cars
#7

pawn Код:
stock ResetCars()
{
    new vehicleused[MAX_VEHICLES];
    for(new i=0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
        {
            vehicleused[GetPlayerVehicleID(i)] = 1;
        }
    }
    for(new i=0; i < MAX_PLAYERS; i++)
    {
        if(CarVIP[i] && !vehicleused[CarVIP[i]])
        {
            DestroyVehicle(CarVIP[i]);
            CarVIP[i] = 0;
        }
        if(caradm[i] && !vehicleused[caradm[i]])
        {
            DestroyVehicle(caradm[i]);
            caradm[i] = 0;
        }
    }
    for(new i=0; i < MAX_VEHICLES; i++)
    {
        if(!vehicleused[i])
        {
            SetVehicleToRespawn(i);
        }
    }
}
Reply


Messages In This Thread
[HELP] Destroying Cars - by [AF]Junior - 07.08.2011, 01:03
AW: [HELP] Destroying Cars - by Nero_3D - 07.08.2011, 01:18
Re: [HELP] Destroying Cars - by Grim_ - 07.08.2011, 01:19
Re: [HELP] Destroying Cars - by [AF]Junior - 07.08.2011, 01:26
Re: [HELP] Destroying Cars - by dowster - 07.08.2011, 03:10
Re: [HELP] Destroying Cars - by [AF]Junior - 07.08.2011, 03:27
Re: [HELP] Destroying Cars - by MadeMan - 07.08.2011, 08:36

Forum Jump:


Users browsing this thread: 1 Guest(s)