# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Bonbon's /me script v_1.0 # # Requires: # # # # Eventscripts 2.0 # # # # add the line es_load bclasses to your autoexec.cfg # # # # Thank you to: # # Superdave, who wrote in the teamcolor text and # # made it not require es_tools # # # # If you have any questions e-mail me at: # # drunkenmousehide@hotmail.com # # or use the PMS on the eventscripts formums # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import es, playerlib, usermsg me_style = 0 # 1 = * + teamcolor + yellow 0 = green* lightgreen name green def load(): es.msg('#multi', '#green[#lightgreenBME#green]: Loaded') if not es.exists('saycommand', '/me'): es.regsaycmd('/me', 'bme/me', 'Type /me to trigger an action') def unload (): es.msg('#multi', '#green[#lightgreenBME#green]: Unloaded') if es.exists('saycommand', '/me'): es.unregsaycmd('me') def round_start(event_var): es.msg('#multi', '#green[#lightgreenBME#green]: /me is active, type /me to trigger actions!') def me(): global me_style userid = es.getcmduserid() player_name = playerlib.getPlayer(userid).attributes['name'] index = es.createplayerlist(userid)[userid]['index'] message = '\1*\3%s \1%s' % (es.getplayername(userid), es.getargs()) if me_style == 0: new_text = es.getargs() es.msg('#multi', '#green*#lightgreen%s #green%s'%(player_name, new_text)) elif me_style == 1: for all_players in es.getUseridList(): usermsg.saytext2(all_players, index, message) else: es.msg(userid, '#green[#lightgreenBME#green]: ERROR: The installer of this script gave an invalid me_stlye! Resetting to default')