VanGans

Dialog Sytem

Jul 18th, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.53 KB | None | 0 0
  1. CMD:ganteng(playerid, params[])
  2. {
  3.     ShowPlayerDialog(playerid, 69, DIALOG_STYLE_MSGBOX, "Cmds", "/cmds - untuk melihat cmds\n/vehicle - untuk spawn kendaraan\n",          "Next", "Close");
  4.     return 1;
  5. }
  6.  
  7. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  8. {
  9.     if(dialogid == 69)
  10.     {
  11.         if(response)
  12.         {
  13.             ShowPlayerDialog(playerid, 68, DIALOG_STYLE_MSGBOX, "Cmds", "/house - untuk kembali kerumah\n/goto - untuk teleport", "Close", ""); // Kalo dia pencet 'Next' akan muncul dialog ini
  14.         }
  15.     }
  16.     return 1;
  17. }
Add Comment
Please, Sign In to add comment