Other Languages - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Other Languages (
/showthread.php?tid=83700)
Other Languages -
basker - 26.06.2009
Hello I was thinkin how Can your make so we say that My server Language is English But then your use a Command (/Danish) and all the server Language Changes to Danish ?
-ZutDenOpFraSlap
Re: Other Languages -
MenaceX^ - 26.06.2009
By using a variable?
Re: Other Languages -
Danny_Costelo - 26.06.2009
Quote:
Originally Posted by Ben^
By using a variable?
|
Yes, as 'Ben' said, use a variable, such as IsDanish, than with a commands like /help do a check such as if(IsDanish[playerid] == 1) show them the Danish version, if they don't have '/danish' enabled simply use else and show them the text in english.
Re: Other Languages -
basker - 27.06.2009
Ahh so Its Like This
In Top Of Script
Then Ect Under OnPlayerCommand i add This
Код:
if (strcmp("/Info", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_INFO,"Hello your have The Game Text In English Virson");
if(Danish == true)
{
SendClientMessage(playerid,COLOR_INFO,"Hej Du Har Valgt Den Danske Verson
}
}