20.01.2012, 08:20
OnPlayerEnterVehicle is called when the player starts entering the vehicle. PLAYER_STATE_DRIVER is the state when the player is actually the driver, not entering as the driver. Using OnPlayerStateChange and checking if the newstate is driver is better.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER) ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_LIST, "Vehicle Controls", "Lights\nTrunk\nHood\nAlarm", "Select", "Cancel");
return 1;
}