Deleting cars?

Started by [Serious]Sam, Jul 06, 2016, 06:53 PM

Previous topic - Next topic

[Serious]Sam

Just deleting all vehicles from world)
function vehdel(){
local cnt = GetVehicleCount();
local i=1;
   for(i;i<=cnt;i++){
     local v = FindVehicle(i);
     v.Delete();
v = null;
    }
}
And how i can reboot my server and don't shutdown him?

vito

if(v) is not needed, yep?

[Serious]Sam

:(
Hell yeah, you're right.
But i think on this script about 10 mins, and you like a boss say my problm, no hell no(

[Serious]Sam


.

What is this doing in the snippets section?

Poking @Thijn
.

KAKAN

#5
Wrong. If you want to delete from only a world,use this:-
http://pastebin.com/PyQLffTT

Anyway, Thijn move it to Squirrel Scripting.
oh no