[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
#2

Damn, useful. Good job.
Reply
#3

thanks

EDIT: only 1 posts ? rofl ^^
Reply
#4

Very Good Include

Thanks man

Greetings from Foxy
Reply
#5

This is not yours! You are not allowed to steal someone elses work and say it is yours. Here is original thread: http://www.balkan-samp.com/forum/ind...?topic=25419.0
Reply
#6

Quote:
Originally Posted by Nenad
Посмотреть сообщение
This is not yours! You are not allowed to steal someone elses work and say it is yours. Here is original thread: http://www.balkan-samp.com/forum/ind...?topic=25419.0
That doesn't look like that at all!
Reply
#7

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
That doesn't look like that at all!
Check the code, natives and functions. He just changed "balkanski" to "german" and "engleski" to "english" ...
Reply
#8

Balkan:
pawn Код:
SetPlayerLanguage(id, bool:jezik) {
     if(jezik == true)
     {
         PLAYER_JEZIK{id} = JEZIK_BALKAN;
         
     }
     else if(jezik == false)
     {
         PLAYER_JEZIK{id} = JEZIK_ENGLISH;
     }
     return true;
}

His
pawn Код:
stock SetPlayerLanguage(playerid,language)
{
    PlayerLanguage[playerid] = language;
    return 1;
}
Absolutely different!
Reply
#9

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
Balkan:
pawn Код:
SetPlayerLanguage(id, bool:jezik) {
     if(jezik == true)
     {
         PLAYER_JEZIK{id} = JEZIK_BALKAN;
         
     }
     else if(jezik == false)
     {
         PLAYER_JEZIK{id} = JEZIK_ENGLISH;
     }
     return true;
}

His
pawn Код:
stock SetPlayerLanguage(playerid,language)
{
    PlayerLanguage[playerid] = language;
    return 1;
}
Absolutely different!
true +1

nice fs very useful
Reply
#10

lol thanks ^^ iґll update it
@neard i never seen this forum!
so shut up please
Reply
#11

can anyone update the link?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)