#define DIALOG_IDO 200
public OnPlayerSpawn(playerid)
{
ShowPlayerDialog(playerid,DIALOG_IDO,DIALOG_STYLE_LIST,\"Válaszd ki a napszakot.\",\"Reggel\\nDélben\\nEste\",\"Kiválaszt\",\"Kilépés\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_IDO)
{
if(response)
{
switch(listitem)
{
case 0: SetPlayerTime(playerid,7,0);
case 1: SetPlayerTime(playerid,12,0);
case 2: SetPlayerTime(playerid,20,0);
}
}
}
return 1;
}