husam
Member
Hey all, i have a mod but its not working as i wanna.. i wanna if player has lvl lower than 45 he gets 45
so this script if hes lv 44 or 40 or any lvl lower than 45 it make him lv 55 not 45 :S
so this script if hes lv 44 or 40 or any lvl lower than 45 it make him lv 55 not 45 :S
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="War Level Minimum" version="1.0" author="Syntax" contact="[email protected]" enabled="yes">
<description>
If player loggs in and is below set level then he is reset to that level.
</description>
<config name="warlv_config"><![CDATA[
config = {
level = 45
}
]]></config>
<event type="login" name="War Level Minimum" event="script"><![CDATA[
function onLogin(cid)
domodlib("warlv_config")
if getPlayerLevel(cid) < config.level then
doPlayerAddExperience(cid, getExperienceForLevel(config.level))
end
return true
end
]]></event>
</mod>