SA-MP Forums Archive
Requesting a Update Dialog CMD [REP] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Requesting a Update Dialog CMD [REP] (/showthread.php?tid=380958)



Requesting a Update Dialog CMD [REP] - Scott_Ryder - 27.09.2012

I Want it so if a user wants to see our updates he can do /updates and a black dialog will show up with our updates i want To be able to edit the title of the Dialog and what it shows thanks

Rep wil lbe givin


Re: Requesting a Update Dialog CMD [REP] - .v - 27.09.2012

pawn Код:
#define DIALOG_UPDATES            5312 //Add this on top of your script


CMD:updates(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_UPDATES, DIALOG_STYLE_MSGBOX, "Server Updates", "* Version 0.1 \n\n* New vehicle watermelon for sale \n*Added Anti Server Connect \n* New watermelon \n*New Kangaroo \n*New Horseshoe", "Close", "");
    return 1;
}

In case you're going to make it like a diary you should use this..
pawn Код:
CMD:updates(playerid, params[])
{
        new string[450];
        strcat(string,"Use \n - To use next line");
        strcat(string,"\nMany many many cats \nSo many cats I like it");
        strcat(string,"\nMany many many popcorn \nMany many yellow submarine");
        strcat(string,"\nMany many many diaries \nToo many strings");
        strcat(string," \nMany many many many diaries book 2");
        ShowPlayerDialog(playerid, DIALOG_UPDATES, DIALOG_STYLE_MSGBOX, "Server Updates", string, "Close", "");
        return 1;
    }



Re: Requesting a Update Dialog CMD [REP] - Scott_Ryder - 27.09.2012

Thanks mte ill give u the rep now