I want that if the player equips the weapon on hand slot, it gives the player 20+ health on their current health directly, not like, they need to logout and in to get their 20+ hp..
is it like this? onEquip doCreatureSetMaxHealth(cid, getCreatureMaxHealth(cid)+20) if i want to give the player 20+ health on their current max health?
or like this:
onEquip doCreatureSetMaxHealth(cid, +20)
and
onDeEquip doCreatureSetMaxHealth(cid, getCreatureMaxHealth(cid)-20)
or
onDeEquip doCreatureSetMaxHealth(cid, +20)??
thanks
is it like this? onEquip doCreatureSetMaxHealth(cid, getCreatureMaxHealth(cid)+20) if i want to give the player 20+ health on their current max health?
or like this:
onEquip doCreatureSetMaxHealth(cid, +20)
and
onDeEquip doCreatureSetMaxHealth(cid, getCreatureMaxHealth(cid)-20)
or
onDeEquip doCreatureSetMaxHealth(cid, +20)??
thanks