Money as Health Edit

Started by Alucard^
03/09/2009 21:18
Page 1 of 1
Alucard^03/09/2009 21:18

About this plugin: http://xtreme-jumps.eu/e107_plugins/forum/forum_viewtopic.php?171795

I want Money as Health All the time... not only when the map have a helear. Ofc if the map doesn't have a helear, don't give to the player 100000HP... but show the Money as Health...

I tried to edit but failed.

Thx and Sry if my english suck.

PrEn1uMz05/09/2009 20:52

try


public plugin_init()
{
register_plugin("Money as Health", VERSION, "ConnorMcLeod")

register_event("ResetHUD", "Event_ResetHUD", "b")
register_event("Health", "Event_Health", "b")

register_forward(FM_UpdateClientData, "UpdateClientData")
RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)

gmsgHealth = get_user_msgid("Health")
}



and replace

set_user_health ... (line 73)

by


new iEnt = find_ent_by_class(-1, "func_door")
while( iEnt > 0 )
{
if( entity_get_float(iEnt, EV_FL_dmg) < -999.0 )
{
set_user_health(id, 100000)
}
iEnt = find_ent_by_class(iEnt, "func_door")
}

Page 1 of 1

Please log in to post replies.