SA-MP Forums Archive
/clear cmd help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /clear cmd help (/showthread.php?tid=262512)



/clear cmd help - Beastlynoob - 18.06.2011

i want to make a /clear command that removes all spawned vehicles,ive searched and found nothing good

ps for rcon only

pls help


Re: /clear cmd help - WooTFTW - 18.06.2011

You're asking for something like this?
pawn Код:
COMMAND:destroyallvehicles(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        for(new c=1;c<MAX_VEHICLES;c++)
        {
            DestroyVehicle(c);
        }
    }
    return true;
}
and BTW: https://sampforum.blast.hk/showthread.php?tid=187229