Code: Show/Hide # scoreboard by: resol 10-10 from asss import * objs = get_interface(I_OBJECTS) chat = get_interface(I_CHAT) #read scoring from fg_ctf (in chat?) and toggle objects def MSG_ARENA(arena): arena. = (arena.sb + 1) return = none #when flag game is reset, toggle objects to make sb read 0 def CB_FLAGRESET def mm_attach(arena): arena.sb_ref1 = reg_callback(MSG_ARENA, arena) arena.sb_ref2 = reg_callback (CB_FLAGREST, arena *a, int freq, int points) def mm_detach(arena): arena.sb_ref1 = None arena.sb_ref2 = None |