Vehicle spawning
#2

create a stock instead
and use in OnGamemodeinit -> SpawnCar();
and stock
pawn Код:
stock SpawnCar()
{
    for(new i=0; i < MAX_VEHICLES; i++)
    {
        new pFile2[100];
        format(pFile2, sizeof(pFile2), CARS_PATH,i);
        CreateVehicle(dini_Int(pFile2,"Model"),dini_Float(pFile2,"X"),dini_Float(pFile2,"Y"),dini_Float(pFile2,"Z"),dini_Float(pFile2,"A"),2,2,999);
        printf("ID[%i]-> CreateVehicle(%d,%f,%f%,%f,2,2,999);",i,dini_Int(pFile2,"Model"),dini_Float(pFile2,"X"),dini_Float(pFile2,"Y"),dini_Float(pFile2,"Z"),dini_Float(pFile2,"A"));// now debug with this code
    }
    return 1;
}
Reply


Messages In This Thread
Vehicle spawning - by Aleksalaz - 02.06.2012, 10:56
Re: Vehicle spawning - by Niko_boy - 02.06.2012, 11:04
Re: Vehicle spawning - by Aleksalaz - 02.06.2012, 11:14

Forum Jump:


Users browsing this thread: 2 Guest(s)