Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if( strcmp( cmdtext, "/testdialog", true ) == 0 )
- {
- ShowPlayerDialog( playerid, DIALOG_TEST, DIALOG_STYLE_MSGBOX, "Titlu Dialog", "Pentru inceput ce vrei sa primesti??", "LEvel", "Bani" );
- /*
- DIALOG_STYLE_MSGBOX - > Dialog unde scri un mesaj
- DIALOG_STYLE_INPUT - > Dialog unde introduci un text
- DIALOG_STYLE_LIST - > Dialogul unde selectezi un item din lista
- DIALOG_STYLE_PASSWORD - > Dialogul in care scri un text cenzurat.
- */
- return 1;
- }
- if( strcmp( cmdtext, "/testdialog2", true ) == 0 )
- {
- ShowPlayerDialog( playerid, DIALOG_TEST2, DIALOG_STYLE_LIST, "Titlu Dialog", "item 1\nitem 2\nitem 3", "Alege", "Nu $$" );
- // \n - New Line( Linie Noua ) \t - Spatiu mai in fata
- return 1;
- }
- if( strcmp( cmdtext, "/testdialog3", true ) == 0 )
- {
- ShowPlayerDialog( playerid, DIALOG_TEST3, DIALOG_STYLE_INPUT, "Titlu Dialog", "Scrie ce vrei :x", "Ok", "Nu" );
- // \n - New Line( Linie Noua ) \t - Spatiu mai in fata
- return 1;
- }
- if( strcmp( cmdtext, "/testdialog4", true ) == 0 )
- {
- ShowPlayerDialog( playerid, DIALOG_TEST4, DIALOG_STYLE_PASSWORD, "Titlu Dialog", "Scrie mai jos\n Tot ce scri va fi cenzurat", "Scrie", "Nu" );
- // \n - New Line( Linie Noua ) \t - Spatiu mai in fata
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement