All pastes #586196 Raw Edit

Test Script

public python v1 · immutable
#586196 ·published 2007-06-23 18:12 UTC
rendered paste body
def broadcast(recipients, msg):    es.usermsg('create', 'wanteddead', 'TextMsg')    es.usermsg('write', 'string', 'wanteddead', msg)    if isinstance(recipients, int):        if recipients == 0:            for i in es.createplayerlist():                es.usermsg('send', 'wanteddead', i)        else:            es.usermsg('send', 'wanteddead', recipients)    else:        for i in recipients:            es.usermsg('send', 'wanteddead', i)    es.usermsg('delete', 'wanteddead')