#include public plugin_init() { register_plugin("[ZP] Lang Menu", "0.1", "LyNcH"); set_cvar_num("amx_client_languages", 1); } public plugin_natives() { register_native("show_lang_menu", "show_lang_menu", 1); } public show_lang_menu(id) { LangMenu(id); } public LangMenu(const id) { new menu = menu_create("\yDil Menusu", "_LangMenu"); menu_additem(menu, "\wTürkçe"); menu_additem(menu, "\wEnglish"); menu_setprop(menu, MPROP_NUMBER_COLOR, "\r"); menu_display(id, menu); } public _LangMenu(const id, const menu, const item) { switch(item) { case 0: set_user_info(id, "lang", "tr"); case 1: set_user_info(id, "lang", "en"); default: { menu_destroy(menu); return PLUGIN_HANDLED; } } menu_destroy(menu); return PLUGIN_HANDLED; }