10.07.2011, 11:37
pawn Код:
public OnStateChange( playerid, newstate, oldstate )
{
if ( newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == passwordedVeh )
{
ShowPlayerDialog( playerid, 777, DIALOG_STYLE_INPUT, "Error", "This vehicle is passworded, enter the password!", "Use Vehicle", "Exit" );
TogglePlayerControllable( playerid, false );
}
return 1;
}