Help Car spawning
#3

cough... this advice kinda fails...
you can use a variable..
"new spawned[MAX_VEHICLES]";
at the command:
pawn Код:
new v = CreateVehicle(............); //if you have another variable defined for the vehicleid you can use this ofc.
spawned[v] = 1;
for(new vid=0; vid<MAX_VEHICLES; vid++)
{
    if(spawned[vid] == 1 && vid != v)
    {
        spawned[vid] = 0;
        DestroyVehicle(vid);
    }
}
Reply


Messages In This Thread
Help Car spawning - by Elmerz_com - 19.01.2011, 19:45
Re: Help Car spawning - by Kase - 19.01.2011, 20:00
Re: Help Car spawning - by Sascha - 19.01.2011, 20:03
Re: Help Car spawning - by Elmerz_com - 19.01.2011, 20:35
Re: Help Car spawning - by Elmerz_com - 19.01.2011, 20:40
Re: Help Car spawning - by NRJ53 - 19.01.2011, 22:19

Forum Jump:


Users browsing this thread: 1 Guest(s)