# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 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 ''' Color Styles: 0: (green)*(lightgreen) (green) 1: (yellow)*(Team color) (yellow) 2: (teamcolor)* 3: (lightgreen)*(green)(lightgreen) 4: (lightgreen)* 5: (green) * 6: (yellow)* 7: (green)*(teamcolor) (yellow) 8: (green)*(teamcolor) (green) 9: (green)*(teamcolor) (green) 10: (green)*(teamcolor) 11: (teamcolor)* ''' 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()) message2 = '\3* %s %s'%(es.getplayername(userid), es.getargs()) message3 = '\4* \3%s \1%s' % (es.getplayername(userid), es.getargs()) message4 = '\4* \3%s \4%s' % (es.getplayername(userid), es.getargs()) message5 = '\4* \3%s %s' % (es.getplayername(userid), es.getargs()) new_text = es.getargs() if me_style == 0: 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) elif me_style == 2: for all_players in es.getUseridList(): usermsg.saytext2(all_players, index, message2) elif me_style == 3: es.msg('#multi', '#lightgreen*#green%s #lightgreen%s'%(player_name, new_text)) elif me_style == 4: es.msg('#multi', '#lightgreen*%s %s'%(player_name, new_text)) elif me_style == 5: es.msg('#multi', '#green*%s %s'%(player_name, new_text)) elif me_style == 6: es.msg('*%s %s'%(player_name, new_text)) elif me_style == 7: for all_players in es.getUseridList(): usermsg.saytext2(all_players, index, message3) elif me_style == 8: for all_players in es.getUseridList(): usermsg.saytext2(all_players, index, message4) elif me_style == 9: for all_players in es.getUseridList(): usermsg.saytext2(all_players, index, message4) elif me_style == 10: for all_players in es.getUseridList(): usermsg.saytext2(all_players, index, message5) elif me_style == 11: for all_players in es.getUseridList(): usermsg.saytext2(all_players, index, message2) else: es.msg('#multi', '#green[#lightgreenBME#green]: ERROR: The installer of this script gave an invalid me_stlye! Resetting to default') me_style = 0