Making a dialog disappear
#1

Hello guys,

I was wondering if it is possible to disappear a dialog which is shown via ShowPlayerDialog. I am making a system which person must respond within 15 seconds and rejects the player from a vehicle if the player fails to hit something in dialog. Everything is working fine but I cant find a way to make that dialog disappear. It says you failed to respond to the dialog so you are removed from the vehicle, but I can still press Pay and Leave. It wont change anything as the player is already removed but it looks ugly :/
Reply
#2

Wiki is always your friend.
Quote:

Using -1 as dialog ID will automatically close all open dialog

pawn Код:
stock HidePlayerDialog( playerid )
    return ShowPlayerDialog( playerid, -1, 0, "", "", "", "" );
Should works. But, untested.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)