Anyway, you can fully ignore that message.
You can use this :
PHP Code:
#include < amxmodx >
#include < amxmisc >
#pragma semicolon 1
#define PLUGIN "Remove Admin"
#define VERSION "0.0.1"
#define cm(%0) ( sizeof(%0) - 1 )
public plugin_init()
{
register_plugin( PLUGIN, VERSION, "ConnorMcLeod" );
register_srvcmd("amx_removeadmin", "cmdRemoveAdmin");
}
public cmdRemoveAdmin()
{
new szArg[32];
read_argv(1, szArg, charsmax(szArg));
new szAdminFile[64];
get_configsdir(szAdminFile, cm(szAdminFile));
add(szAdminFile, cm(szAdminFile), "/users.ini");
new fp, line, bFound;
ReadFile:
fp = fopen(szAdminFile, "rt");
line = -1;
if( fp )
{
new buffer[256], c, key[32];
while( !feof(fp) )
{
line++;
fgets(fp, buffer, charsmax(buffer));
trim(buffer);
c = buffer[0];
if( c && c != '#' && c != ';' && !( c == '/' && buffer[1] == '/' ) )
{
parse(buffer, key, cm(key));
if( equal(key, szArg) )
{
bFound = 1;
fclose( fp );
fp = 0;
write_file(szAdminFile, "", line);
console_print(0, "Removed following line from users.ini : %s", buffer);
goto ReadFile;
}
}
}
fclose( fp );
fp = 0;
}
if( bFound )
{
server_cmd("amx_reloadadmins");
}
}
__________________