Quote:
Originally Posted by SpILL
Answer: Yes.
Advise: Search!
|
Explain me how to put in client_print.
PHP Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
// ...
}
public readfile(const filename[], line)
{
new file[64];
get_configsdir(file, sizeof (file));
format(file, sizeof (file), "%s/%s", file, filename);
if (!file_exists(file))
{
return;
}
new text[128];
new ln;
read_file(file, line, text, sizeof (text), ln);
if (ln && (text[0] != ';') && (text[0] != '/')) // if text length > 1 and line is no as comment;
{
new param1[32];
new param2[32];
new param3[32];
parse(text, param1, sizeof (param1), param2, sizeof (param2), param3, sizeof (param3));
// if line is: 1 "admin-xy" "action1" for example, you will get:
// "1" in param1; "admin-xy" in param2; "action1" in param2;
}
}
Examples .__.