Help in Selection
#1

OKay guys, I hope you could help me with this, I'm a new scripter. So I wanna ask is that,
I scripted 2 Teams, Like.. Red Team and Blue Team. I want to make these people who join my server to
choose, so How can I make them choose?
Reply
#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
#3

Ay thanks let me try it
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)