Need the OnDialogResponse.
#1

Hello, its me again. I need the OnDialogResponse for the following.

pawn Код:
ShowPlayerDialog(playerid,2600,DIALOG_STYLE_MSGBOX,"Welcome!","{FFFFFF}Welcome to {0000FF}Bad Company Gaming{FFFFFF}, we hope you'll enjoy your stay. Click Okay to continue to class selection, or click Leave to leave.","Okay","Leave");
Thanks, all help is appreciated.
Reply
#2

wiki.sa-mp.com/wiki/OnDialogResponse
Reply
#3

Код:
               if(dialogid == 2600)
 	                {
	                if(response)
		        {
                        new string[250];
		        format(string, sizeof(string), "~r~Enjoy");
		        GameTextForPlayer(playerid, string, 5000, 4);
		        }
		        else
		        {
		        new string[300];
		        format(string, sizeof(string), "~g~You Chose to leave ~r~Bye!");
		        GameTextForPlayer(playerid, string, 999999999, 4);
		        Kick(playerid);
		        }
		        return 1;
		    }
I thinks this should work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)