12.06.2012, 02:11
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
// This looks trough all the dialog IDs
switch(dialogid)
{
// If the dialogid is 1.
case 1:
{
// If the player presses the 2nd button.
if(!response)
{
// This kicks the player.
Kick(playerid);
// This stops the code reading.
return 1;
}
// If the player presses the 1st button.
else if(response)
{
// This stops the code reading.
return 1;
}
}
}
return 1;
}
Best regards,
Jesse
EDIT:
Cleared out the code.