[Include] Language Include
#1

Hello Community. Iam here to show/realease my first include ever.
with it you can choose languages and send some messages to other peoples

pawn Код:
native GetPlayerLanguage(playerid);
native SetPlayerLanguage(playerid,Language[]);
native SendLanguageMessage(playerid,color,English,German);
native ShowPlayerLanguageDialog(playerid);
native LoadDialog(playerid,dialogid,response,listitem);
Important: You must do LoadDialog(playerid,dialogid,response,listitem); under OnPlayerDialogResponse

Functions:

pawn Код:
GetPlayerLanguage(playerid); give you the current language from the player.
Example: new language = GetPlayerLanguage(playerid);

SetPlayerLanguage(playerid,language); Set The Languge of a player
Example: SetPlayerLanguage(playerid,German);

SendLanguageMessage(playerid,color,English,German);
Example: SendLanguageMessage(playerid,0xFF0000FF,"English Text","German Text");

ShowPlayerLanguageDialog(playerid); will show a dialog to choose language
to add more languages like rom and more
pawn Код:
1. Open Language.inc
2. add under Defines #define YourLanguage and a number like 1065
3. go to ShowPlayerLanguageDialog and add you language in a new line
4. go to LoadDialog(); and add a new case with your langugage
5. click on save and have fun.
It is my first include but i hope you like it

For Questions ask me!

Dowload: Click here
Reply


Messages In This Thread
Language Include - by Tigerkiller - 28.07.2011, 10:51
Re: Language Include - by TheArcher - 28.07.2011, 11:16
AW: Language Include - by Tigerkiller - 28.07.2011, 11:17
AW: Language Include - by Johann95 - 29.07.2011, 12:14
Re: Language Include - by Nenad - 29.07.2011, 12:28
Re: Language Include - by Zh3r0 - 29.07.2011, 12:33
Re: Language Include - by Nenad - 29.07.2011, 12:40
Re: Language Include - by Zh3r0 - 29.07.2011, 12:46
Re: Language Include - by ScRaT - 29.07.2011, 12:50
Re: Language Include - by Tigerkiller - 31.07.2011, 16:38
Re: Language Include - by BlackHorse - 27.08.2013, 17:03

Forum Jump:


Users browsing this thread: 2 Guest(s)