# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Bonbon's Show All Health V 1.0 # # Requires: # # # # Eventscripts 2.0 # # # # add the line es_load showhealth to your autoexec.cfg # # # # Thank you to: # # CShadowRun who thought of this for his RPG that # # he made, all credits for the idea go to him. # # his was just made in sourcemod and is for # # his server's use only (CShadowRunRPG not # # the cash thing) # # # # If you have any questions e-mail me at: # # drunkenmousehide@hotmail.com # # or use the PMS on the eventscripts formums # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import es, playerlib def load(): es.msg('#multi', '#green[#lightgreenBSH#green]: Loaded') es.msg('#multi', '#grenYour Health will now be shown on the #lightgreenCash Bar') def unload(): es.msg('#multi', '#green[#lightgreenBSH#green]: Unloaded') def player_hurt(event_var): player_health = event_var['health'] player = playerlib.getPlayer(event_var['userid']) player.set('cash', player_health) def player_spawn(event_var): player_health = event_var['es_userhealth'] player = playerlib.getPlayer(event_var['userid']) player.set('cash', player_health)