Making a dialog disappear - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Making a dialog disappear (
/showthread.php?tid=524377)
Making a dialog disappear -
Rufio - 06.07.2014
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 :/
Re: Making a dialog disappear -
greentarch - 06.07.2014
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.