From c6c95f244310495d913d07c208093e1ba43011ee Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 30 Jul 2004 14:29:20 +0000 Subject: [PATCH] initial import of fakemeta_amxx --- plugins/include/amxmodx.inc | 1 + plugins/include/lang.inc | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100755 plugins/include/lang.inc diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index 73f38388..472f347f 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -17,6 +17,7 @@ #include #include #include +#include /* Function is called just after server activation. * Good place for configuration loading, commands and cvars registration. */ diff --git a/plugins/include/lang.inc b/plugins/include/lang.inc new file mode 100755 index 00000000..e52bd4b3 --- /dev/null +++ b/plugins/include/lang.inc @@ -0,0 +1,26 @@ +/* Language functions +* +* by the AMX Mod X Development Team +* +* This file is provided as is (no warranties). +*/ + +#if defined _lang_included + #endinput +#endif +#define _lang_included + +//return the number of languages loaded +native get_langsnum(); + +//sets name to the two-letter name of a language returned by get_langsnum +//index starts at 0 +native get_lang(id, name[3]); + +//registers a dictionary file, making sure the words are in the dictionary +// the file should be in "addons/amxx/data/lang/", but only the name needs to be +// given. (e.g. register_dictionary("file.txt") will be addons/amxx/data/file.txt). +native register_dictionary(const filename[]); + +//returns 1 if the language is loaded, 0 otherwise. +native lang_exists(const name[]); \ No newline at end of file