[Tutorial] Selection of teams (DIALOG)
#1

In this tutorial I'll explain and show how to make the selection of teams in dialog..Lets go.

First you need to make a selection of teams, and we'll do the "OnPlayerConnect" as follows.
Under the "OnPlayerConnect" adding:

Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Izaberi tim", "Tim jedan\nTim dva", "U redu", "");
ShowPlayerDialog - display dialog player
playerid - player id
1 - number of dialogue
DIALOG_STYLE_LIST - dialog that says "the list".


Now we need when choosing a team to win what should be, and it's skin, money, position, etc. will be spawn ...
For this, we will now go under the "OnDialogResponse" and under "OnDialogResponse" adding:

Код:
if(response)
    {
    switch(dialogid)
        {
      case 1:
           {
              switch(listitem)
           {
               case 0:
               {
                AddPlayerClass(97,1199.0999,-2520.6230,13.0624,65.8332,0,0,0,0,0,0); //
               }
               case 1:
               {
               AddPlayerClass(97,1199.0999,-2520.6230,13.0624,65.8332,0,0,0,0,0,0); //
               }
           }
           }
   }
    }
   return 1;
}
AddPlayerClass - giving class player
97 - id skins
1199.0999, -2520.6230,13.0624 - x, y and z coordinates where players will be spawn
65.8332 - angle
0,0,0,0,0,0 - bullets and weapons


TUT By Neno (and sorry for my bad english )
Reply


Messages In This Thread
Selection of teams (DIALOG) - by ...Neno... - 15.01.2012, 20:54
Re: Selection of teams (DIALOG) - by seanny - 16.01.2012, 16:08
Respuesta: Selection of teams (DIALOG) - by [Nikk] - 17.01.2012, 08:28
Re: Selection of teams (DIALOG) - by ...Neno... - 17.01.2012, 09:19
Re: Selection of teams (DIALOG) - by Mr.Fames - 24.01.2012, 16:17
Re: Selection of teams (DIALOG) - by Vince - 24.01.2012, 17:59
Re: Selection of teams (DIALOG) - by zeromaxell - 27.02.2012, 20:22

Forum Jump:


Users browsing this thread: 1 Guest(s)