I've got a file and I want it to write someones steamid when they enter the server. How can I check if the steamid is already in the file?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "CS Bank"
#define VERSION "1.0"
#define AUTHOR "OneMoreLevel"
new const CSBank [] = "CSBank.txt"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_connect (id) {
new steamid[32]
if (is_user_connected (id)){
get_user_authid(id, steamid, charsmax(steamid))
write_file( CSBank, steamid,-1)
}
}
__________________