Raised This Month: $ Target: $400
 0% 

BM, Healerblock script problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lukasdaman
Junior Member
Join Date: Dec 2009
Old 09-28-2012 , 14:36   BM, Healerblock script problem
Reply With Quote #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).
lukasdaman is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 09-28-2012 , 18:53   Re: BM, Healerblock script problem
Reply With Quote #2

None native cm_get_health_level( index )
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode