So if I make a dictionary file like this:
Code:
[en]
OML_TALK = Hello!
[fr]
OML TALK = Some french word!
Then made a VERY simple plugin like this:
PHP Code:
/* Sample plugin */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say /talk" , "plugin_talk");
register_dictionary("dictionary_talk.txt")
}
public plugin_talk (id) {
client_print( id, print_chat, "Server says: %L", LANG_PLAYER, "OML_TALK", id )
}
It would do
Quote:
|
if the server's language is English, but the client's is French, then it'll print to them in French
|
__________________