function onSay(cid, words, param)
maximum = {
player = getPlayerGUID(cid),
lvlmax = 717218, -- Level que o player vai ficar apos usar o comando.
resets = 10, --Quantos resets são necessários, no mínimo, para usar o comando.
}
if getPlayerStorageValue(cid, 2310) >= maximum.resets then
if getPlayerLevel(cid) == 717217 then
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = "..maximum.lvlmax..", `experience` = 10000 WHERE `id` = "..maximum.player)
else
doPlayerSendCancel(cid, 'You do not have the level max 717217.')
doSendMagicEffect(getPlayerPosition(cid),37)
end
else
return doPlayerSendCancel(cid, "Sorry, not possible.")
end
return true
end




info
Grupo: Artesão
Registrado: 16/09/11
Posts: 100
Reputação: +1
Olá galera tudo bem?! Queria pedir uma ajuda pra arrumar este script. O script é o de maxlvl , se voce for level 717217 , ele te upa para o level 717218.
Eu queria que precisasse ter 10 resets para usa-lo.
Eu tentei colocar : if getPlayerStorage(cid,2310) == 10 then / / mas não sou bom scripter kkkkk
Alguem pode ajudar?
function onSay(cid, words, param) maximum = { player = getPlayerGUID(cid), lvlmax = 717218, -- Level que o player vai ficar apos usar o comando. } if getPlayerLevel(cid) == 717217 then doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..maximum.lvlmax..", `experience` = 10000 WHERE `id` = "..maximum.player) else doPlayerSendCancel(cid, 'You do not have the level max 717217.') doSendMagicEffect(getPlayerPosition(cid),37) end end