[Include] Language Include - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Language Include (
/showthread.php?tid=272425)
Language Include -
Tigerkiller - 28.07.2011
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
Re: Language Include -
TheArcher - 28.07.2011
Damn, useful. Good job.
AW: Language Include -
Tigerkiller - 28.07.2011
thanks
EDIT: only 1 posts ? rofl ^^
AW: Language Include -
Johann95 - 29.07.2011
Very Good Include
Thanks man
Greetings from Foxy
Re: Language Include -
Nenad - 29.07.2011
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
Re: Language Include -
Zh3r0 - 29.07.2011
Quote:
Originally Posted by Nenad
|
That doesn't look like that at all!
Re: Language Include -
Nenad - 29.07.2011
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" ...
Re: Language Include -
Zh3r0 - 29.07.2011
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!
Re: Language Include -
ScRaT - 29.07.2011
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
Re: Language Include -
Tigerkiller - 31.07.2011
lol thanks ^^ iґll update it
@neard i never seen this forum!
so shut up please
Re: Language Include -
BlackHorse - 27.08.2013
can anyone update the link?