#include <a_samp>#include <zcmd>#define idodialog 1234public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Idõ beállító Készítete:MCCCCC\");print(\"--------------------------------------\\n\");return 1;}COMMAND:ido(playerid){ShowPlayerDialog(playerid,idodialog,DIALOG_STYLE_LIST,\"Idõbeálító:\",\"0 óra\\n1 óra\\n2 óra\\n3 óra\\n4 óra\\n5 óra\\n6 óra\\n7 óra\\n8 óra\\n9 óra\\n10 óra\\n11 óra\\n12 óra\\n13 óra\\n14 óra\\n15 óra\\n16 óra\\n17 óra\\n18 óra\\n19 óra\\n20 óra\\n21 óra\\n22 óra\\n23 óra\",\"Beállít\", \"Mégse\");return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid==idodialog){if(response){if(listitem==0){SetPlayerTime(playerid,00,00);return 1;}if(listitem==1){SetPlayerTime(playerid,01,00);return 1;}if(listitem==2){SetPlayerTime(playerid,02,00);return 1;}if(listitem==3){SetPlayerTime(playerid,03,00);return 1;}if(listitem==4){SetPlayerTime(playerid,04,00);return 1;}if(listitem==6){SetPlayerTime(playerid,05,00);return 1;}if(listitem==7){SetPlayerTime(playerid,06,00);return 1;}if(listitem==8){SetPlayerTime(playerid,07,00);return 1;}if(listitem==9){SetPlayerTime(playerid,08,00);return 1;}if(listitem==10){SetPlayerTime(playerid,9,00);return 1;}if(listitem==11){SetPlayerTime(playerid,10,00);return 1;}if(listitem==12){SetPlayerTime(playerid,11,00);return 1;}if(listitem==13){SetPlayerTime(playerid,12,00);return 1;}if(listitem==14){SetPlayerTime(playerid,13,00);return 1;}if(listitem==15){SetPlayerTime(playerid,14,00);return 1;}if(listitem==16){SetPlayerTime(playerid,15,00);return 1;}if(listitem==17){SetPlayerTime(playerid,16,00);return 1;}if(listitem==18){SetPlayerTime(playerid,17,00);return 1;}if(listitem==19){SetPlayerTime(playerid,18,00);return 1;}if(listitem==20){SetPlayerTime(playerid,19,00);return 1;}if(listitem==21){SetPlayerTime(playerid,20,00);return 1;}if(listitem==22){SetPlayerTime(playerid,21,00);return 1;}if(listitem==23){SetPlayerTime(playerid,22,00);return 1;}if(listitem==24){SetPlayerTime(playerid,23,00);return 1;}}}return 1;}
#include <a_samp>#include <zcmd>CMD:ido(playerid){ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, \"Idõ beállító\",\"Írd be hány órát szeretnél.\",\"Küldés\",\"Kilépés\");return 1;}public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[]){if(dialogid == 0){ if(!response) return SendClientMessage(playerid, -1, \"Kiléptél\");if(strval(inputtext) < 0 || strlen(inputtext) > 23) return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, \"Idõ beállító\",\"Írd be hány órát szeretnél! (0-23)\",\"Küldés\",\"Kilépés\");SetPlayerTime(playerid, strval(inputtext), 0);}return 1;}
14. sor.