SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 05/05/2012, 08:34 PM   #1
inferno211
Big Clucker
 
Join Date: Jan 2011
Location: Poznań
Posts: 50
Reputation: 5
Default ILang

Inferno Language System - ILang


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


http://img198.imageshack.us/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

Last edited by inferno211; 02/09/2013 at 08:37 PM.
inferno211 is offline   Reply With Quote
Old 05/05/2012, 11:35 PM   #2
Aloushi
Gangsta
 
Aloushi's Avatar
 
Join Date: Apr 2011
Location: Lebanon
Posts: 504
Reputation: 49
Default Re: ILang

good work
__________________
  • Im Bored
Aloushi is offline   Reply With Quote
Old 06/05/2012, 02:41 AM   #3
Ballu Miaa
High-roller
 
Ballu Miaa's Avatar
 
Join Date: Apr 2010
Location: New Delhi,India
Posts: 1,849
Reputation: 323
Default Re: ILang

Wow looks awesome. Nice work with this. Will surely use it. Secondly how did you manage to make those Flag textdraws? Can you help me with those too?
__________________


I will take half payment as an advance to script for you.
Click here to request my Scripting Service.

Ballu Miaa is offline   Reply With Quote
Old 06/05/2012, 03:26 AM   #4
Niko_boy
High-roller
 
Niko_boy's Avatar
 
Join Date: Aug 2010
Location: Somewhere i belong
Posts: 1,336
Reputation: 138
Default Re: ILang

Awesome job! Kindaa modern x:P
__________________
nope[IMG]http://*******/1r0SOkH_[/IMG]
•••[CLOSED]LCS•Freeroam•DM•Stunts•••AutoArena [0.3z][No SkinShot][sixtytiger.com]Want a decent Attack Defend Gamemode?
N/A176.31.229.148:7830Get This! Attack-Defend(v2.3.1)
Niko_boy is offline   Reply With Quote
Old 06/05/2012, 07:24 AM   #5
inferno211
Big Clucker
 
Join Date: Jan 2011
Location: Poznań
Posts: 50
Reputation: 5
Default Re: ILang

I used the letters properly stretched and boxes.
It gives you a file from TextDraw rditor by Zamorth so you can edit textdraw with flags

Wybor_jezyka.tde

Sorry for my bad English because it is only just learning.
inferno211 is offline   Reply With Quote
Old 06/05/2012, 07:32 AM   #6
SA+MP
Big Clucker
 
Join Date: Dec 2011
Posts: 78
Reputation: 9
Default Re: ILang

Will it work on 3c or d?
Good Work
Edit +Rep And pls add more language like Ruusian ,Spanish , German .
__________________
SA+MP is offline   Reply With Quote
Old 06/05/2012, 08:52 AM   #7
inferno211
Big Clucker
 
Join Date: Jan 2011
Location: Poznań
Posts: 50
Reputation: 5
Default Re: ILang

Quote:
Originally Posted by SA+MP View Post
Will it work on 3c or d?
It work only on sa:mp 0.3e because I use TextDrawSetSelectable.

Quote:
Originally Posted by SA+MP View Post
Edit +Rep And pls add more language like Ruusian ,Spanish , German .
In next update I add next two language, German and Ruusian.
inferno211 is offline   Reply With Quote
Reply

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



All times are GMT. The time now is 10:57 AM.


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