TheSlim2 Posted November 7, 2020 Report Share Posted November 7, 2020 Salut as vrea si eu comanda /info dar cu dialog de data asta, nu prea ma impresionat comanda trecuta Quote Link to comment Share on other sites More sharing options...
andy47 Posted November 7, 2020 Report Share Posted November 7, 2020 Salut! Foloseste https://wiki.open.mp/docs/translations/ro/scripting/functions/ShowPlayerDialog si te poti documenta si despre easyDialog, e destul de bun pentru incepatori. Quote Link to comment Share on other sites More sharing options...
Hackeru Suprem Posted November 1, 2023 Report Share Posted November 1, 2023 #define INFO_DIALOG 1 new Dialog:infoDialog[MAX_PLAYERS]; public OnPlayerConnect(playerid) { infoDialog[playerid] = CreateDialog(INFO_DIALOG, -1, "Server Information", "Welcome to the server! This is a sample /info command.", "Close", " ", DIALOG_STYLE_MSGBOX, "OnInfoDialogResponse"); return 1; } public OnInfoDialogResponse(playerid, response, listitem, inputtext[]) { if (response) { SendClientMessage(playerid, COLOR_WHITE, "You closed the information dialog."); } return 1; } CMD:info(playerid, params[]) { ShowPlayerDialog(playerid, INFO_DIALOG, DIALOG_STYLE_MSGBOX, "Server Information", "This is the server information dialog.\nFeel free to add more details here.", "Close", " ", "OnInfoDialogResponse"); return 1; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.