|
Author
|
Message
|
|
Junior Member
|

09-28-2012
, 14:36
BM, Healerblock script problem
|
#1
|
So, I'm currently using this script for the healer block:
ActionHeal(id, ent)
{
new Float:gametime = get_gametime();
if( !(gametime >= g_next_heal_time[id]) )
{
return PLUGIN_HANDLED;
}
static property[5];
GetProperty(ent, 1, property);
new Float:new_health = get_user_health(id) + str_to_float(property);
new CashHealth = (100 + (25 * cm_get_health_level(id)));
if( new_health < CashHealth )
{
entity_set_float(id, EV_FL_health, new_health);
}
else
{
entity_set_float(id, EV_FL_health, float(CashHealth));
}
static Float:interval;
GetProperty(ent, 2, property);
interval = str_to_float(property);
g_next_heal_time[id] = gametime + interval;
return PLUGIN_HANDLED;
}
I'm also running the plugin cashmod along with the blockmaker and the cm_get_health_level is registered in that plugin, but I don't know what native I should use in the BM script .sma to make them cooperate, anyone up for the task? Help really appreciated!
/tmp/text2xTcq2.sma(1844) : error 017: undefined symbol "cm_get_health_level"
1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/text2xTcq2.amx (compile failed).
|
|
|
|