Quote:
Originally Posted by X-olent
well if it works fine the way it is, why change it?
also, i never knew what the % sign meant when using it as an operator.
|
returns the remainder when the two are divided.
kp_uparrow is right though, it would make sense to use that.
Code:
public message_Health(msgid, dest, id)
{
if(!is_user_alive(id))
return PLUGIN_CONTINUE;
static Float:health, hp;
pev(id, pev_health, health);
hp = floatround(health);
if( hp > 0 && hp % 256 == 0 )
{
set_pev(id, pev_health, ++health);
set_msg_arg_int(1, get_msg_argtype(1), 1);
}
return PLUGIN_CONTINUE;
}