/teleports | List item
#2

Command:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/teles",cmdtext,true,10) == 0)
    {
         ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Choose somewhere", "1. Stunt\n2.Airport","Ok","Cancel");
         return 1;
     }
     return 0;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
     if(dialogid == 0 && response)
     {
            if(listitem == 0) return ...   // Function
            if(listitem == 1) return ... // Function
            return 1;
      }
      return 0;
}
Reply


Messages In This Thread
/teleports | List item - by Mr.Jvxmc - 27.12.2010, 14:35
Re: /teleports | List item - by blackwave - 27.12.2010, 14:39
Re: /teleports | List item - by Mr.Jvxmc - 27.12.2010, 14:56
Re: /teleports | List item - by Mr.Jvxmc - 27.12.2010, 16:12
Re: /teleports | List item - by blackwave - 27.12.2010, 16:14
Re: /teleports | List item - by Mr.Jvxmc - 27.12.2010, 16:38
Re: /teleports | List item - by Mr.Jvxmc - 27.12.2010, 16:39
Re: /teleports | List item - by Mr.Jvxmc - 27.12.2010, 19:14
Re: /teleports | List item - by [L3th4l] - 27.12.2010, 19:19
Re: /teleports | List item - by Mr.Jvxmc - 27.12.2010, 19:23

Forum Jump:


Users browsing this thread: 3 Guest(s)