Code: Show/Hide select length - (now() - startedat) from blah
where now() - startedat < length and ip = 'blah' |
Code: Show/Hide def c_silence(cmd, params, p, targ): if int(params) >= 1: chat.SetPlayerChatMask(targ, 1, int(params)) |
Code: Show/Hide from asss import *
chat = get_interface(I_CHAT) def c_silence(cmd, params, p, targ): # get integer parameter timeout = 0 try: timeout = int(params) except: pass # check for priv command if isinstance(targ, PlayerType) and timeout >= 1: newmask = 1 << MSG_CHAT chat.SetPlayerChatMask(targ, newmask, timeout) cmd1 = add_command("t1", c_silence) |
Code: Show/Hide Smong> ?getcm
getcm: +pub +pubmacro +freq +nmefreq +priv +chat +modchat Smong> ?t1 60 Smong> ?getcm getcm: +pub +pubmacro +freq +nmefreq +priv -chat +modchat |