[Include] Rlanguage Release - 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] Rlanguage Release (
/showthread.php?tid=304291)
Rlanguage Release -
Tigerkiller - 17.12.2011
Hello Community. Iam here to show/realease my second 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 have to put 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 second include but i hope you like it
My old include doesent work and had some Bugs so i remade it
For Questions ask me!
Dowload:
Click here
Pastebin:
Here
Example:
pawn Код:
#include <a_samp>
#include <Language>
public OnFilterScriptInit()
{
print("--------------------------------------");
print(" Test Multi Language");
print("--------------------------------------");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
ShowPlayerLanguageDialog(playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
SendLanguageMessage(playerid,0xFF0000FF,"Your Language are English","Deine Sprache ist deutsch!");
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
LoadDialog(playerid, dialogid, response, listitem);
return 1;
}
Re: Rlanguage Release -
SpiderWalk - 17.12.2011
COOL INCLUDE!!!!!!!!!
Re : Rlanguage Release -
mehdi-jumper - 17.12.2011
pastebin plz?
Re: Rlanguage Release -
Tigerkiller - 17.12.2011
Forgotten
-
Pastebin
Re: Rlanguage Release -
Kaperstone - 17.12.2011
nice
Keep it up (if you can)
Re: Rlanguage Release -
Mrki_Drakula - 17.12.2011
Really nice! Thanks alot! Reputation added
Re: Rlanguage Release -
Mrki_Drakula - 17.12.2011
Double Post...
Suggestion: Make a example script using this include.
Re: Rlanguage Release -
Tigerkiller - 17.12.2011
- Example added
Respuesta: Rlanguage Release -
[Nikk] - 17.12.2011
Wow men! nice include, i like it, im gonna test this. But, sounds good.
Re: Rlanguage Release -
Tigerkiller - 17.12.2011
Thanks