Acubens
Old Penguin
I dont find the method to put this to work, i created function outside onLogin but is the same, it says "condition parameters only can be loaded with the script"
Suggestions please xD
Lua:
local conditionMaxHealth = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(conditionMaxHealth, CONDITION_PARAM_SUBID, 650)
setConditionParam(conditionMaxHealth, CONDITION_PARAM_TICKS, -1)
function onLogin(cid)
local variableHealth = (getPlayerLevel(cid) * 50)
setConditionParam(conditionMaxHealth, CONDITION_PARAM_STAT_MAXHITPOINTS, variableHealth)
doAddCondition(cid, conditionMaxHealth)
end
Suggestions please xD
Last edited: