/destroyallcars command 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: /destroyallcars command help (
/showthread.php?tid=260053)
/destroyallcars command help -
boyan96 - 07.06.2011
How i can make /destroyallcars - this command to destroy all cars i the game
Re: /destroyallcars command help -
Lorenc_ - 07.06.2011
create a loop then destroyvehicle
Re: /destroyallcars command help -
boyan96 - 07.06.2011
i don't know how to make it
Re: /destroyallcars command help -
Ash. - 07.06.2011
Using DCMD
pawn Код:
dcmd_destroyallvehicles(playerid, params[])
{
for(new i; i > MAX_VEHICLES; i++)
{DestroyVehicle(i);}
return 1;
}
Re: /destroyallcars command help -
Lorenc_ - 07.06.2011
pawn Код:
CMD:dvehs(playerid, params[])
{
for(new i; i < MAX_VEHICLES; i++)
{
DestroyVehicle(i);
}
}
I think thats the function.