01.10.2011, 07:27
https://sampforum.blast.hk/showthread.php?tid=283920
Press CTRL + F and search for: #define DIALOG_QUIZ and delete ONE.
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;
}