Help in Selection
#2

pawn Код:
public OnPlayerConnect(playerid)
{
  ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Team Choosing", "Please choose your team :\nRed Team\nBlue Team", "Select", "Cancel");
  return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == 1 && response)
   {
      switch(listitem)
      {
         case 0:{ }
         case 1:
         {
              // do somethings here for the Red Team
         }
         case 2:
         {
              // do somethings here for the Blue Team
         }
     }
  }
  return 1;
}
Maybe like that?
Reply


Messages In This Thread
Help in Selection - by DreamKillah - 07.08.2010, 11:56
Re: Help in Selection - by ViruZZzZ_ChiLLL - 07.08.2010, 12:07
Re: Help in Selection - by DreamKillah - 07.08.2010, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)