if ( isKeyJustPressed ( 164 ) ) { bool dialogActive = SF -> getSAMP ( ) -> getDialog ( ) -> iIsActive ; sampAddChatMessage ( "%d" , dialogActive ) ; if ( dialogActive ) { int id = SF -> getSAMP ( ) -> getDialog ( ) -> DialogID ; SF -> getSAMP ( ) -> sendDialogResponse ( 3 , 1 , 0 , "" ) ; sampAddChatMessage ( "%d" , id ) ; } } ;