Automatic Commands?
#6

Quote:
Originally Posted by AviPeker
Посмотреть сообщение
You will need the MathPlugin + Inc
Click Here

pawn Код:
#include a_samp
#include zcmd
#include math

public OnGameModeInit()
{
    SetTimer("DelCars", 100000, true); //100,000- every 1'30 min
    return 1;
}

forward DelCars();
public DelCars()
{
    cmd_deletecars(-1, "");
    return 1;
}


COMMAND:delcars(playerid, params[])
{
    for(new i = 1; i < MAX_VEHICLES; i ++)
        if(MPGetVehicleDriverCount(i) == 0) DestroyVehicle(i);
    return 1;
}
This should work.
Thank you!
Reply


Messages In This Thread
Automatic Commands? - by DarknessKnight - 06.12.2014, 21:54
Re: Automatic Commands? - by Abagail - 06.12.2014, 22:01
Re: Automatic Commands? - by PowerPC603 - 06.12.2014, 22:27
Re: Automatic Commands? - by DarknessKnight - 07.12.2014, 19:07
Re: Automatic Commands? - by AviPeker - 08.12.2014, 10:55
Re: Automatic Commands? - by DarknessKnight - 10.12.2014, 14:47

Forum Jump:


Users browsing this thread: 1 Guest(s)