Vehicle System
#1

Let's get to the problem, shall we?
I use an Enumerator for my Vehicle System. Trying to figure out how to fix this.


The creation of Vehicles on Start.
pawn Код:
for(new i=1;i<MAX_SCRIPTVEHICLES+1;i++)
    {
        AddStaticVehicleEx(VehicleInfo[i][vModel],VehicleInfo[i][vLocX],VehicleInfo[i][vLocY],VehicleInfo[i][vLocZ], VehicleInfo[i][vAngle], VehicleInfo[i][vColorOne],VehicleInfo[i][vColorTwo],3900);
        SetVehicleNumberPlate(i,VehicleInfo[i][vPlate]);
        SetVehicleToRespawn(i);
        SetVehiclePos(i,VehicleInfo[i][vLocX],VehicleInfo[i][vLocY],VehicleInfo[i][vLocZ]);
        SetVehicleZAngle(i,VehicleInfo[i][vAngle]);
        new engine, lights, alarm, doors, bonnet, boot, objective;
        GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(i,0,0,alarm,doors,bonnet,boot,objective);
    }
Many Vehicles spawn, what had to be only 'LANDSTALKER'. And note, that Landstalker is 'ALSO' present there. I just want to remove the other Vehicles' Spawning. Any Help?
Reply


Messages In This Thread
Vehicle System - by JonathanW - 09.08.2014, 07:03
Re: Vehicle System - by Zezombia - 09.08.2014, 07:16
Re: Vehicle System - by JonathanW - 09.08.2014, 07:23
Re: Vehicle System - by JonathanW - 09.08.2014, 08:18
Re: Vehicle System - by Zezombia - 09.08.2014, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)