Hello everyone, I've been working a lot on multi-language plugins, one of them the already published "[L4D] All 8 Survivors" created for l4d1, I've only found one problem, assign the name to the survivors, I've been using this method:
PHP Code:
public Action:BikerUse(iClient)
{
SetEntProp(iClient, Prop_Send, "m_survivorCharacter", FRANCIS);
SetEntityModel(iClient, MODEL_FRANCIS);
if (IsFakeClient(iClient))
{
SetClientInfo(iClient, "name", "Francis");
SetClientName(iClient, "Francis");
}
}
But obviously in some countries the name is correct, in Russian for example or in Chinese, the name would not be written like this, it would be something like this:
ENGLISH - RUSO
Francis – Френсис
ENGLISH – CHINO
Francis - 弗朗西斯
So, my question is: How to make use of names in multi languages?
At the beginning I did it in the following way:
PHP Code:
public Action:BikerUse(iClient)
{
SetEntProp(iClient, Prop_Send, "m_survivorCharacter", FRANCIS);
SetEntityModel(iClient, MODEL_FRANCIS);
if (IsFakeClient(iClient))
{
SetClientInfo(iClient, "name %t", "francis");
SetClientName(iClient, "%t", "francis");
}
}
Obviously it did not work, I've tried everything and it has not worked, could you help me with that?