Author Topic: [Include] Language  (Read 4100 times)

0 Members and 1 Guest are viewing this topic.

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
[Include] Language
« on: March 29, 2014, 04:17:19 am »
Hello, here I am sharing my scripts
My first include

download the here include
Clicky

Functions

GetPlayerLanguage(playerid);
SetPlayerLanguage(playerid,language);
SendLanguageMessage(playerid,color,english[],portuguese[]);
SendLanguageMessageToAll(color,english[],portuguese[]);

Examples

Code: [Select]
public OnPlayerCommandText( playerid, cmdtext[] )
{
if ( strcmp( cmd, "pt", true ) == 0 )
{
SendClientMessage(playerid, -1, "His language was changed to Portuguese");
SetPlayerLanguage(playerid,Portuguese);
return 1;
}
else if ( strcmp( cmd, "en", true ) == 0 )
{
SendClientMessage(playerid, -1, "His language was changed to English");
SetPlayerLanguage(playerid,English);
return 1;
}
else if ( strcmp( cmd, "language", true ) == 0 )
{
SendLanguageMessage(playerid,-1,"His language is English","Sua linguagem e Portuguese");
return 1;
}
else if ( strcmp( cmd, "languageall", true ) == 0 )
{
SendLanguageMessageToAll(-1,"Welcome","Bem Vindos");
return 1;
}
    return 0;
}

Credits: Me

Any error or doubt post here

Sorry for my english

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: [Include] Language
« Reply #1 on: March 29, 2014, 01:09:22 pm »
Sounds Great :). I nevermind about this ideas ;)
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: [Include] Language
« Reply #2 on: March 29, 2014, 04:54:55 pm »
I though you posted a built-in translator


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: [Include] Language
« Reply #3 on: March 29, 2014, 06:57:13 pm »
I though you posted a built-in translator

maybe in the future  ;D