local cfg ={s = 1111,
i = 2160
l = 100, 200, 300, 400, 500,
600, 700, 800, 900, 1000,
1100, 1200, 1300, 1400,
1500, 1600, 1700, 1800,
1900, 2000, 2100, 2200,
2300, 2400, 2500, 2600,
2700, 2800, 2900, 3000}
function onAdvance(cid, skill, oldLevel, newLevel)
if (skill == SKILL__LEVEL) and (newLevel == cfg.l)
and (getPlayerStorageValue(cid, cfg.s) ~= 1)
then doPlayerAddItem(cid, cfg.i, 50)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Gratulacje, dostales 50cc!")
setPlayerStorageValue(cid, cfg.s, 1)
end
return true
end
i = 2160
l = 100, 200, 300, 400, 500,
600, 700, 800, 900, 1000,
1100, 1200, 1300, 1400,
1500, 1600, 1700, 1800,
1900, 2000, 2100, 2200,
2300, 2400, 2500, 2600,
2700, 2800, 2900, 3000}
function onAdvance(cid, skill, oldLevel, newLevel)
if (skill == SKILL__LEVEL) and (newLevel == cfg.l)
and (getPlayerStorageValue(cid, cfg.s) ~= 1)
then doPlayerAddItem(cid, cfg.i, 50)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Gratulacje, dostales 50cc!")
setPlayerStorageValue(cid, cfg.s, 1)
end
return true
end
Zakładki