Raised This Month: $ Target: $400
 0% 

In-game translations


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mr_panica
Senior Member
Join Date: Jan 2017
Location: Russia, Saint-Petersburg
Old 05-12-2021 , 07:59   In-game translations
Reply With Quote #1

Hello everyone.
How can I get a translation for a phrase from the game for a specific language of the player?
I mean phrases that the player already has locally in the game folder.

HTML Code:
public void OnPluginStart()
{
	RegConsoleCmd("sm_trtest", Command_Test);
}

public Action Command_Test(int client, int args)
{
	char tt[27];
	Format(tt, sizeof(tt), "#TF_invasion_pistol");
	PrintToChatAll(". %s", tt);
	PrintToChatAll("%s",tt);
	return Plugin_Handled;
}
Normal PrintToChat * outputs the translation, but only if there are no other characters besides the translation phrase.

__________________
Sorry for my English.
Mr_panica is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode