Hi.
Like a title say i want a create such plugin like admin/vip list on motd.
It is first time when i try to load .ini file
I was try to make this.
Lets look my code now
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Users list on motd"
#define VERSION "1.0"
#define AUTHOR "Dare-Devil - This man need somehelp :)"
public plugin_precache()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
static configsdir[32]
get_configsdir(configsdir, 31)
static file[64]
formatex(file, 63, "%s/users.ini", configsdir)
new line = 0, length = 0
static users[64], flags[32]
while(read_file(file, line++, text, 127, length))
{
if((text[0] == ';') || !length)
continue
// And what is a next ( ? )
}
public plugin_init()
{
register_clcmd("say /adminlist", "show_admin_or_vip_list")
}
public show_admin_or_vip_list(id)
{
format_motd_admin(g_sBuffer)
show_motd(id, g_sBuffer, "Admin or Vip List")
return PLUGIN_CONTINUE
}
format_motd_admin(sBuffer[MAX_BUFFER_LENGTH + 1])
{
new izList[8], izBody[8]
new iLen = 0
new ladminname[16], ladminflag[16],
format(ladminnames, 15, "%L", LANG_SERVER, "LANG_ADMINNAME")
format(lladminflag, 15, "%L", LANG_SERVER, "LANG_ADMINFLAG")
// And somehelp here please :)
Like you see i dont know now how to continue, I would be very grateful if someone help me.