alot of vehicles how to clear
#3

Quote:
Originally Posted by Aliassassin123456
Посмотреть сообщение
........
Very bad code .... but np try this:
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    SetTimerEx("DesVeh", 10000, 0, "i", vehicleid);
    return 1;
}

forward DesVeh(vehid);
public DesVeh(vehid)
{
    for(new i;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInVehicle(i, vehid)) return 1;
        }
    }
    return DestroyVehicle(vehid);
}
is there are difference between my code? because my problem is that even the above code working but still many cars , thanks!
Reply


Messages In This Thread
alot of vehicles how to clear - by MahdiGames - 16.01.2014, 04:36
Re: alot of vehicles how to clear - by Aliassassin123456 - 16.01.2014, 04:45
Re: alot of vehicles how to clear - by MahdiGames - 16.01.2014, 04:53
Re: alot of vehicles how to clear - by Aliassassin123456 - 16.01.2014, 05:03
Re: alot of vehicles how to clear - by Threshold - 16.01.2014, 05:08
Re: alot of vehicles how to clear - by MahdiGames - 16.01.2014, 05:12

Forum Jump:


Users browsing this thread: 2 Guest(s)