in my example i simply wrote the steamid into the code,
but you can make the plugin read steamids from file
and make it compare them like this:
Code:
new steamid[32]
get_user_authid(id,steamid,31)
new steamidlist[64]
get_configsdir(steamidlist,64)
format(steamidlist,63,"%s/steamidlist.cfg",steamidlist)
if(file_exists(steamidlist)){
new steamidline[128],a,line = 0
while(read_file(steamidlist,line++,steamidline,128,a)){
if(equal(steamid,steamidline)){
client_print(id,print_chat,"You have been recognized by the plugin with SteamID: %s",steamid)
}
else {
client_print(id,print_chat,"Your SteamID: %s is unknown by the plugin!",steamid)
}
}
}
else if(!file_exists(steamidlist)){
log_amx("SteamID List not found!")
}