SA-MP Forums Archive
Filterscript to clear cars - 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)
+--- Thread: Filterscript to clear cars (/showthread.php?tid=280133)



Filterscript to clear cars - Psychic - 30.08.2011

Does any have or know to make a filterscript to clear cars that are abandoned with a command?


Re: Filterscript to clear cars - IceCube! - 30.08.2011

Umm you mean this?

pawn Code:
if(!strcmp(cmdtext, "/respawncars", true))
{
        for(new i = 0; i < MAX_VEHICLES; i++)
{
        new name[24], string[64];
        GetPlayerName(playerid, name, 24);
        format(string, sizeof(string), "%s has respawned the cars", name);
        SendClientMessageToAll(color, string);
        SetVehicleToRespawn(i);
        }
        return 1;
}
EDIT: Beaten to it again -.-


Re: Filterscript to clear cars - Psychic - 30.08.2011

Is that pawn code to clear cars or to respawn them?


Re: Filterscript to clear cars - IceCube! - 30.08.2011

Quote:
Originally Posted by Psychic
View Post
Is that pawn code to clear cars or to respawn them?
It respawns them?



This forum requires that you wait 120 seconds between posts. Please try again in 29 seconds. - This forum needs to understand waiting wastes my life


Re: Filterscript to clear cars - Psychic - 30.08.2011

Thanks