28.07.2011, 10:51
Hello Community. Iam here to show/realease my first include ever.
with it you can choose languages and send some messages to other peoples
Important: You must do LoadDialog(playerid,dialogid,response,listitem); under OnPlayerDialogResponse
Functions:
to add more languages like rom and more
It is my first include but i hope you like it
For Questions ask me!
Dowload: Click here
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);
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
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.
For Questions ask me!
Dowload: Click here