[HELP] vehicle exhibit
#1

I add on my server exhibit vehicle and I want when player try to enter the vehicle then he can't enter if you know what I mean? Thanks
Reply
#2

Do you create the vehicles in OnGameModeInit?

If you do, do something like this:
pawn Код:
#define MAX_EXHIBIT_CARS 50
new ExhibitCars[MAX_EXHIBIT_CARS];

public OnGameModeInit()
{
    ExhibitCars[0] = CreateVehicle(/*code*/);
    ExhibitCars[1] = CreateVehicle(/*code*/);
    ExhibitCars[2] = CreateVehicle(/*code*/);
    ExhibitCars[3] = CreateVehicle(/*code*/);
    ExhibitCars[4] = CreateVehicle(/*code*/);
    ExhibitCars[5] = CreateVehicle(/*code*/);
    for(new i=1;i<MAX_EXHIBIT_CARS;i++)
    {
        if(ExhibitCars[i] != 0) SetVehicleParamsEx(ExhibitCars[i], 0, 0, 0, 0, 0, 0, 0);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)