SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 07/08/2010, 11:56 AM   #1
DreamKillah
Little Clucker
 
Join Date: Jul 2010
Posts: 16
Reputation: 0
Default Help in Selection

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?
DreamKillah is offline  
Old 07/08/2010, 12:07 PM   #2
ViruZZzZ_ChiLLL
High-roller
 
ViruZZzZ_ChiLLL's Avatar
 
Join Date: Aug 2009
Location: I don't know
Posts: 1,645
Reputation: 8
Default Re: Help in Selection

pawn Code:
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?
__________________


ViruZZzZ_ChiLLL is offline  
Old 07/08/2010, 12:10 PM   #3
DreamKillah
Little Clucker
 
Join Date: Jul 2010
Posts: 16
Reputation: 0
Default Re: Help in Selection

Ay thanks let me try it
DreamKillah is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant see skin at selection 02manchestera Help Archive 5 09/04/2010 09:56 PM
f4 skin selection WardenCS Help Archive 1 29/12/2009 02:23 PM
[Help] Class Selection Benne Help Archive 1 10/11/2009 08:07 PM
Need Help with Class selection! mhking Help Archive 3 29/08/2009 06:52 AM
Weapons selection? killdahobo99 Help Archive 6 01/07/2009 03:36 AM


All times are GMT. The time now is 09:41 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.