-- Global Constantsg_arena = nilg_state = nilg_count = 0g_gameRunning = falsefunction Arena_OnCreate(arena) g_arena = arenaendfunction On_FlagGameStart()local total = g_arena:num() for i = 1, total do g_arena:message("looping ".. i) local plyr = g_arena:get(i) if (plyr:spectator() == true) then g_arena:message("player in spec") break end plyr:message("If in spec you should not see this message") -- if you are a medic if (plyr:skill_find(1) == true) then plyr:message("you are a medic") end endend