PHP Code:
format(content,charsmax(content),"^"%s^" ^"^" ^"t^" ^"ce^" ;%s",authid, name)
write_file("addons/amxmodx/configs/users.ini",content,-1)
server_cmd( "amx_reloadadmins" );
is there an easier way to add an admin like this? i'm using this in a shop plugin and if someone buys VIP, it will automatically be added to users.ini like this.. and about an ^n to not be written after the last admin in users.ini?
__________________