No_Fear

help

Jan 28th, 2014
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.67 KB | None | 0 0
  1. CMD:help(playerid, params[])
  2. {
  3.         ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_LIST, "Help", "/job\n/cmd", "Open", "Close");
  4.         return 1;
  5. }
  6.  
  7. public OnDialogResponse(playerid, help, response, listitem, inputtext[])
  8. {
  9. if(response)
  10. {
  11.     switch(DIALOG_HELP)
  12.         {
  13.                 case 1:
  14.             {
  15.                 switch(listitem)
  16.                 {
  17.                     case 0:
  18.                     {
  19.                         ShowPlayerDialog(playerid, DIALOG_JOB, DIALOG_STYLE_LIST, "jobs", "job", "Open", "Close");
  20.                         return 1;
  21.                     }
  22.                 }
  23.             }
  24.         }
  25.     }
  26.     return 1;
Advertisement
Add Comment
Please, Sign In to add comment