• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] server commands
#1
i'm trying to make a /commands with dialog list and I'm suffering how to make a list.

instead of Item 1 there should be Server commands and then it would up another dialog containing another box which would be basic command something like that.
https://imgur.com/RwsbxUd
  Reply
#2
You should replace "Item 1\nItem 2\n [...]" for "Server Commands" when you're showing up this dialog to a player.



Also if you want to click in the item and show another dialog box as you said, you should use the?Callback?OnDialogReponse, check the dialogid and then check if the selected listitem is zero (the first one starts at zero).



Example:

Code:
// inside of OnDialogResponse:

if(dialogid == yourdialogid) {

? ?if(!response) return 1;

? ?switch(listitem) {

? ? ? case 0: ShowPlayerDialog(yourSecondDialog);

? ?}

}
  Reply


Forum Jump: