I use amx_setlang xx for set up server language of course. When I allow amx_client_languages 1, everything is OK, client has own setinfo lang parameter and can change languages through amx_langmenu.
But, for example: If i disallow amx_client_languages 0, I suppose language on server will be still same. But if I set: amx_client_languages 0, set_lang cz, ... amx_language and server_language are fine --> cz. But, If client connect with his config like this (setinfo lang en), he still view messages in english, not czech (and when I set amx_client_languages 0 so client should not set up his own language !)..
I fix this (Dont know if is it clean way):
Code:
public client_putinserver(id)
{
if (get_cvar_num("amx_client_languages") && !is_user_bot(id))
set_task(10.0, "dispInfo", id)
//added by James
if (get_cvar_num("amx_client_languages")==0)
client_cmd(id, "setinfo ^"lang^" ^"cz^"")
}