Toribash
Original Post
auto op script
hi
i need help with my auto op bot.
Op1 = "Ldr[DF]R4ff"
Op2 = "[DF]pimpy"
Op3 = "[DF]Phil1308"
Op4 = "[DF]Pimpy"
Op5 = "[DF]FoolFighta"
Op6 = "[DF]BlueEvil"
Op7 = "[DF]Chazer666"
Op8 = "[DF]Kaktus"
Op9 = "[DF]Isamatu"

function CheckPlayer()
local bouts = get_bouts()
for i=0,table.getn(bouts) do
    if bouts[i]== Op1 then
      run_cmd("op " .. bouts[i])
    end 
  end      
end
  
local spectators = get_spectators()
for i=0,table.getn(spectators) do
    if spectators[i]== Op1 then
      run_cmd("op " .. spectators[i])
      
    elseif spectators[i]== Kick1 then
      run_cmd("kick " .. spectators[i])
    end     
  end
end

add_hook("enter_freeze", "NewFrame", CheckPlayer)
now my problem... after each frame i get a xyz opped xyz massage and it spam the chat... is it posible to check if people are opped?
qaywer Mongius BlubKill Jaker GerFight Pinheads Coolino <3 | [TEO] | [T3AL] | [HighTunesYT]