Aew galera eu queria ajuda de vcs , eu botei para transformar no talkactions ai tava pegando tudo bem mais quando eu adicionei umas vocações a mais começo da erro falando "você não tem level suficiente" < ! porfavo me ajuda ai olha meu script \/
function onSay(cid, words, param)
local voce = 206
local lvl = 400
local voc = 343
local outfit = {lookType=277,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50}
local outfitTime = 10999999
local napis = "Aaaaah"
local effekt = 32
----------------------kod-----------------------------
if getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl then
doPlayerSetVocation(cid,voc)
doSetCreatureOutfit(cid, outfit, outfitTime)
doPlayerSay(cid,napis,16)
local pos = getPlayerPosition(cid)
doSendMagicEffect(pos,effekt)
else
doPlayerSendCancel(cid,"Você Não tem level suficiente")
end
return 1
end
function onSay(cid, words, param)
local voce = 369
local lvl = 50
local voc = 370
local outfit = {lookType=280,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50}
local outfitTime = 10999999
local napis = "Transformação"
local effekt = 32
----------------------kod-----------------------------
if getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl then
doPlayerSetVocation(cid,voc)
doSetCreatureOutfit(cid, outfit, outfitTime)
doPlayerSay(cid,napis,16)
local pos = getPlayerPosition(cid)
doSendMagicEffect(pos,effekt)
else
doPlayerSendCancel(cid,"Você Não tem level suficiente")
end
return 1
end
function onSay(cid, words, param)
local voce = 370
local lvl = 100
local voc = 371
local outfit = {lookType=120,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50}
local outfitTime = 10999999
local napis = "Transformação"
local effekt = 234
----------------------kod-----------------------------
if getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl then
doPlayerSetVocation(cid,voc)
doSetCreatureOutfit(cid, outfit, outfitTime)
doPlayerSay(cid,napis,16)
local pos = getPlayerPosition(cid)
doSendMagicEffect(pos,effekt)
else
doPlayerSendCancel(cid,"Você Não tem level suficiente")
end
return 1
end
function onSay(cid, words, param)
local voce = 371
local lvl = 150
local voc = 372
local outfit = {lookType=110,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50}
local outfitTime = 10999999
local napis = "Transformação"
local effekt = 243
----------------------kod-----------------------------
if getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl then
doPlayerSetVocation(cid,voc)
doSetCreatureOutfit(cid, outfit, outfitTime)
doPlayerSay(cid,napis,16)
local pos = getPlayerPosition(cid)
doSendMagicEffect(pos,effekt)
else
doPlayerSendCancel(cid,"Você Não tem level suficiente")
end
return 1
end
Se me ajuda do REP!