Advertisement
XxRoWxX

Untitled

Jul 11th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3. if( strcmp( cmdtext, "/testdialog", true ) == 0 )
  4. {
  5. ShowPlayerDialog( playerid, DIALOG_TEST, DIALOG_STYLE_MSGBOX, "Titlu Dialog", "Pentru inceput ce vrei sa primesti??", "LEvel", "Bani" );
  6. /*
  7. DIALOG_STYLE_MSGBOX - > Dialog unde scri un mesaj
  8. DIALOG_STYLE_INPUT - > Dialog unde introduci un text
  9. DIALOG_STYLE_LIST - > Dialogul unde selectezi un item din lista
  10. DIALOG_STYLE_PASSWORD - > Dialogul in care scri un text cenzurat.
  11. */
  12. return 1;
  13. }
  14. if( strcmp( cmdtext, "/testdialog2", true ) == 0 )
  15. {
  16. ShowPlayerDialog( playerid, DIALOG_TEST2, DIALOG_STYLE_LIST, "Titlu Dialog", "item 1\nitem 2\nitem 3", "Alege", "Nu $$" );
  17. // \n - New Line( Linie Noua ) \t - Spatiu mai in fata
  18. return 1;
  19. }
  20.  
  21. if( strcmp( cmdtext, "/testdialog3", true ) == 0 )
  22. {
  23. ShowPlayerDialog( playerid, DIALOG_TEST3, DIALOG_STYLE_INPUT, "Titlu Dialog", "Scrie ce vrei :x", "Ok", "Nu" );
  24. // \n - New Line( Linie Noua ) \t - Spatiu mai in fata
  25. return 1;
  26. }
  27.  
  28. if( strcmp( cmdtext, "/testdialog4", true ) == 0 )
  29. {
  30. ShowPlayerDialog( playerid, DIALOG_TEST4, DIALOG_STYLE_PASSWORD, "Titlu Dialog", "Scrie mai jos\n Tot ce scri va fi cenzurat", "Scrie", "Nu" );
  31. // \n - New Line( Linie Noua ) \t - Spatiu mai in fata
  32. return 1;
  33. }
  34. return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement