Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

Salut as vrea si eu comanda /info dar cu dialog de data asta, nu prea ma impresionat comanda trecuta

  • 2 years later...
Posted

#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;

}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.