[Include] [INC] Multi-Lingual 1.0
#1



This include is very useful for international and multi-lingual servers.
In version 1.0 it's possible to script with up to 2 languages easily.
Avaible Functions:
  • » ClientLanguageText(playerid, color, const message0[], const message1[]);
    » ClientLanguageTextToAll(color, const message0[], const message1[]);
    » GameLanguageText(playerid, const message0[], const message1[], time, style);
    » GameLanguageTextToAll(const message0[], const message1[], time, style);
    » SetPlayerLanguage(playerid, language);

Examples:

ClientLanguageText:
Code:
public OnPlayerSpawn(playerid)
{
	ClientLanguageText(playerid, YELLOW, "This is an english text!", "Das ist ein deutscher Text!");
	return 1;
}
ClientLanguageTextToAll:
Code:
public OnPlayerSpawn(playerid)
{
	ClientLanguageTextToAll(YELLOW, "Text for all english people!", "Text fьr alle deutschen Leute!");
	return 1;
}
GameLanguageText:
Code:
public OnPlayerSpawn(playerid)
{
	GameLanguageText(playerid, "This is an english text!", "Das ist ein deutscher Text!", 5000, 3);
	return 1;
}
GameLanguageTextToAll:
Code:
public OnPlayerSpawn(playerid)
{
	GameLanguageTextToAll(playerid, "Text for all english people!", "Text fьr alle deutschen Leute!", 5000, 3);
	return 1;
}
SetPlayerLanguage:
Code:
public OnPlayerSpawn(playerid)
{
	SetPlayerLanguage(playerid, 0); // 0 for the first language, 1 for the second language
	return 1;
}
Selfmade Codes | Tested Successfully




Please, only use it with Credits to the San Andreas Script Crew
Reply


Messages In This Thread
[INC] Multi-Lingual 1.0 - by MrMaccaroni - 09.09.2008, 14:38
Re: [INC] Multi-Lingual 1.0 - by boemeles - 09.09.2008, 14:56
Re: [INC] Multi-Lingual 1.0 - by MrMaccaroni - 09.09.2008, 15:00
Re: [INC] Multi-Lingual 1.0 - by Recycler - 09.09.2008, 15:01
Re: [INC] Multi-Lingual 1.0 - by MrMaccaroni - 09.09.2008, 15:06
Re: [INC] Multi-Lingual 1.0 - by Recycler - 09.09.2008, 15:13
Re: [INC] Multi-Lingual 1.0 - by Antironix - 09.09.2008, 17:27
Re: [INC] Multi-Lingual 1.0 - by MrMaccaroni - 09.09.2008, 18:31
Re: [INC] Multi-Lingual 1.0 - by asdfgh98 - 31.12.2009, 16:38
Re: [INC] Multi-Lingual 1.0 - by aspire5630 - 31.12.2009, 22:56

Forum Jump:


Users browsing this thread: 1 Guest(s)