mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 06:48:04 +03:00
"lang" insted of "_language"
This commit is contained in:
parent
296208dcb9
commit
453d8d8f47
@ -66,14 +66,14 @@ public plugin_init() {
|
|||||||
|
|
||||||
public client_infochanged(id) {
|
public client_infochanged(id) {
|
||||||
new lang[3]
|
new lang[3]
|
||||||
get_user_info(id,"_language",lang,2)
|
get_user_info(id,"lang",lang,2)
|
||||||
|
|
||||||
if ( lang_exists(lang) )
|
if ( lang_exists(lang) )
|
||||||
copy(g_userLang[id],2,lang)
|
copy(g_userLang[id],2,lang)
|
||||||
else if ( g_userLang[id][0] )
|
else if ( g_userLang[id][0] )
|
||||||
set_user_info(id,"_language",g_userLang[id])
|
set_user_info(id,"lang",g_userLang[id])
|
||||||
else
|
else
|
||||||
set_user_info(id,"_language","en")
|
set_user_info(id,"lang","en")
|
||||||
}
|
}
|
||||||
|
|
||||||
public cmdLang(id,level,cid) {
|
public cmdLang(id,level,cid) {
|
||||||
@ -160,7 +160,7 @@ public actionMenu(id,key) {
|
|||||||
new pLang[3]
|
new pLang[3]
|
||||||
get_lang(g_menuLang[id][0],pLang)
|
get_lang(g_menuLang[id][0],pLang)
|
||||||
copy(g_userLang[id],2,pLang)
|
copy(g_userLang[id],2,pLang)
|
||||||
set_user_info(id,"_language",pLang)
|
set_user_info(id,"lang",pLang)
|
||||||
client_print(id,print_chat,"%L",id,"SET_LANG_USER",pLang)
|
client_print(id,print_chat,"%L",id,"SET_LANG_USER",pLang)
|
||||||
showMenu(id)
|
showMenu(id)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user