Help with dialogs
#4

https://sampforum.blast.hk/showthread.php?tid=283920
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_QUIZ)
    {
        if(!response) return Kick(playerid);
        if(response)
        {
            if(listitem == 0)
            {
                SendClientMessage(playerid, -1, "Wrong Answer");
                Kick(playerid);
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid, -1, "Thats Correct Answer");
            }
            SpawnPlayer(playerid);
        }
     }
     return 1;
}
Press CTRL + F and search for: #define DIALOG_QUIZ and delete ONE.
Reply


Messages In This Thread
Help with dialogs - by nilanjay - 01.10.2011, 07:17
Re: Help with dialogs - by Jafet_Macario - 01.10.2011, 07:18
Re: Help with dialogs - by nilanjay - 01.10.2011, 07:24
Re: Help with dialogs - by Jafet_Macario - 01.10.2011, 07:27
Re: Help with dialogs - by nilanjay - 01.10.2011, 07:29
Re: Help with dialogs - by Slake - 01.10.2011, 07:31
Re: Help with dialogs - by Jafet_Macario - 01.10.2011, 07:33
Re: Help with dialogs - by nilanjay - 01.10.2011, 07:37

Forum Jump:


Users browsing this thread: 2 Guest(s)