SA-MP Forums Archive
how to make in our script 2 language to select - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to make in our script 2 language to select (/showthread.php?tid=132730)



how to make in our script 2 language to select - gozo12 - 09.03.2010

hi i want to know how to put 2 languge in scirpt like when player is conected the menu come up and player select witch languge he want




Re: how to make in our script 2 language to select - aircombat - 09.03.2010

example :

under onplayerconnect :
Код:
ShowPlayerDialog(playerid, 111, DIALOG_STYLE_LIST, "Please Choose Your Language", "English\nFrench", "Select", "Cancel");
then under ondialogresponse
Код:
if(dialogid == 111 && response)
	{
	  switch(listitem)
	  {
	    case 0://english
	    {
         SendClientMessage(playerid,0x33AA33AA,"Good Morning");
	    }


	    case 1://french
	    {
         SendClientMessage(playerid,0x33AA33AA,"Bonjour");
	    }
  	   }
	}
________
Couples Webcams


Re: how to make in our script 2 language to select - Torran - 09.03.2010

Or if you dont want dialogs then use a menu

https://sampwiki.blast.hk/wiki/Creating_a_simple_Menu


Re: how to make in our script 2 language to select - DarkPower - 09.03.2010

Quote:
Originally Posted by [AC
Etch ]
example :

under onplayerconnect :
Код:
ShowPlayerDialog(playerid, 111, DIALOG_STYLE_LIST, "Please Choose Your Language", "English\nFrench", "Select", "Cancel");
then under ondialogresponse
Код:
if(dialogid == 111 && response)
	{
	  switch(listitem)
	  {
	    case 0://english
	    {
         SendClientMessage(playerid,0x33AA33AA,"Good Morning");
	    }


	    case 1://french
	    {
         SendClientMessage(playerid,0x33AA33AA,"Bonjour");
	    }
  	  }
	}
But he will get only welcome message in selected language, how to make if he select one lenguage to all mode be on that language?


Re: how to make in our script 2 language to select - aircombat - 09.03.2010

that is an example of the code not the whole original code
________
The Cigar Boss