function Display_Friends(key)
if (key == string.byte("q")) then
run_cmd("sa 'friend'")
end
end
add_hook("key_down", "Friendslist", Display_Friends)
thanks in advance
function Display_Friends(key)
if (key == string.byte("q")) then
file = io.open("friends.txt", "r")
friend = file:read("*l")
while friend ~= nil do
run_cmd("sa "..friend)
friend = file:read("*l")
end
file:close()
-- sa sets the number of chatlines to 1 for some reason...
run_cmd("chl 20")
return 1
end
end
add_hook("key_down", "Friendslist", Display_Friends)