[Include] ILang
#1

Inferno Language System - ILang


The script so that the player will be able to choose your language in which it will display messages.


/imageshack/img198/8610/samp005hly.png

The functions of the script:


native SelectLanguage(playerid)
playerid - The player to whom we send a message.
native SetPlayerLang(playerid, langid)
playerid - Player who want to set the language.
langid - ID of the language (LANG_POL or LANG_ENG).
native GetPlayerLang(playerid)
playerid - ID of the player you grab the ID language.
native SendClientLangMessage(playerid, color, textP[], textA[])
playerid - The player to whom we send a message.
color - Color of the message.
textP - Message in Polish.
textA - Message in English.
native SendClientLangMessageToAll(color, textP[], textA[])
color - Color of the message.
textP - Message in Polish.
textA - Message in English.
native SendClientLangMessageToOther(playerid, color, textP[], textA[])
playerid - The player, which can not send messages.
color - Color of the message.
textP - Message in Polish.
textA - Message in English.
native ShowPlayerLangDialog(playerid, dialogid, style, captionP[], captionA[], infoP[], infoA[], button1P[], button1A[], button2P[], button2A[])
playerid - The player to whom we show a dialog.
dialogid - ID of the dialog.
styl - style of the dialog.
captionP - Heading in the Polish language.
captionA - Heading in the English language.
infoP - Content in Polish.
infoA - Content in English.
button1P - The first button in the Polish language.
button1A - The first button in the English language.
button2P - The second button in the Polish language.
button2A - The second button in the English language.
native LangGameTextForPlayer(playerid, textP[], textA[], time, type)
playerid - The player to whom we send a message.
textP - Message in Polish.
textA - Message in English.
time - Time to show the message.
type - Type of message.
Definition:


Max_Players - Slots on the server.
LANG_POL - Polish language.
LANG_ENG - English Language.
Instalation:


  1. Put Lang_OnPlayerConnect(playerid) in public OnPlayerConnect(playerid).
  2. Put Lang_OnPlayerClickTextDraw(playerid, clickedid) in public OnPlayerClickTextDraw(playerid, Text:clickedid).
  3. Put Lang_OnGameModeInit() in public OnGameModeInit
  4. Show player textdraw where he select rhe language by function SelectLanguage(playerid).
Download:

Inferno Site
Reply


Messages In This Thread
ILang - by inferno211 - 05.05.2012, 20:34
Re: ILang - by Aloushi - 05.05.2012, 23:35
Re: ILang - by Ballu Miaa - 06.05.2012, 02:41
Re: ILang - by Niko_boy - 06.05.2012, 03:26
Re: ILang - by inferno211 - 06.05.2012, 07:24
Re: ILang - by SA+MP - 06.05.2012, 07:32
Re: ILang - by inferno211 - 06.05.2012, 08:52

Forum Jump:


Users browsing this thread: 1 Guest(s)