There's a couple ways you could do it. If you have dynamic cars that you'd like locked, you could add it to the vehicles saving system. Then you'd just load the vehicle data into your array and check then. Another way if they're static vehicles, is to just do the old variable thing.
pawn Код:
new Gang_Vehicle;
OnGameModeInit()
{
Gang_Vehicle = AddStaticVehicle();
}
Then you could check OnPlayerEnterVehicle with the variable. There's a few ways you can do it though.