# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Bonbon's /me script v_1.0 # # Requires: # # # # Eventscripts 2.0 # # # # add the line es_load bclasses to your autoexec.cfg # # # # Thank you to: # # # # # # If you have any questions e-mail me at: # # drunkenmousehide@hotmail.com # # or use the PMS on the eventscripts formums # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import es, random, playerlib def load(): es.msg('#multi', '#green[#lightgreenBME#green]: Loaded') es.server.queuecmd('est_RegSayHook /me 1') def unload (): es.msg('#multi', '#green[#lightgreenBME#green]: Unloaded') def round_start(event_var): es.msg('#multi', '#green[#lightgreenBME#green]: /me is active, type /me to do actions!') def est_sayhook(event_var): player_name = playerlib.getPlayer(event_var['userid']).attributes['name'] if event_var['hooktext'] == '/me': new_text = event_var['commandstring'].replace('/me', '') es.msg('#multi', '#green*#lightgreen%s #green%s'%(player_name, new_text))