Hello, here I am sharing my scripts
My first include
download the here include
ClickyFunctionsGetPlayerLanguage(playerid);
SetPlayerLanguage(playerid,language);
SendLanguageMessage(playerid,color,english[],portuguese[]);
SendLanguageMessageToAll(color,english[],portuguese[]);
Examplespublic 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: MeAny error or doubt post here
Sorry for my english