vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 47
Hello, i have problem with this script, its work with level but i try change it to reborns and not work ';/
Code:
function onAdvance(cid, skill, oldLevel, newLevel)
function getPlayerResets(name)
return db.getResult("SELECT resets FROM players WHERE name="..db.escapeString(name)..""):getDataInt("resets")
end
if getPlayerResets(getPlayerName(cid)) >= 10 and getPlayerVocation(cid) == 6 then
if getPlayerStorageValue(cid, 11806) == -1 then
doPlayerSetVocation(cid, 10)
doPlayerSetStorageValue(cid, 11806, 1)
end
end
return true
end