How can i make those work so it doesnt use these when players are arround ?

thx

Code:
local serverlog_lines = getnewmessages("Server Log") 
local serverlog_q = serverlog_lines.count - 1 

for i = 0, serverlog_q do 
    if (serverlog_lines[serverlog_q - i].text:find("due to an attack by a stalker.")) and paround() == 0 and maround(3,false,"Stalker") == 0 then 
        usehotkey("F6") -- hotkey with gfb use on urself
    end 
end

AND

Code:
if maround(5) >= 4 then
    usehotkey("F8")
end