21.02.2012, 14:16
Under OnVehicleStreamIn public, you should do something like this;
pawn Код:
public OnVehicleStreamIn( vehicleid, forplayerid )
{
if( !Variable[ vehicleid ][ enum ] ) // This is when car is unlocked, change it to your variable and lock enum.
// Unlock the car for forplayerid.
else if( Variable[ vehicleid ][ enum ] ) // This is when car is locked, change it to your variable and lock enum.
// Lock the car for forplayerid.
return 1;
}