Tenta ae:
local vocs = {9, 10, 11, 12}local failout = {73,75,302,266,45,10} -- outfits proibidaslocal storagevip = 85258 --storage da vipfunction onSay(cid, words, param, channel)local t = string.explode(param, ",")t[1] = tonumber(t[1])if not isInArray(vocs, getPlayerVocation(cid)) thendoPlayerSendCancel(cid,"Sua vocação não pode usar este comando.")elseif getPlayerStorageVocation(cid, storagevip) < os.time() thendoPlayerSendCancel(cid,"Você precisa ser VIP para usar este comando.")elseif(param == '') thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")elseif not(t[1]) thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.")elseif isInArray(failout, t[1]) thendoPlayerSendCancel(cid,"Não pode usar estas outfit.")elseif(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 351) thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such outfit does not exist.")elselocal tmp = getCreatureOutfit(cid)tmp.lookType = t[1]doCreatureChangeOutfit(cid, tmp)endreturn trueend





info
Grupo: Visconde
Registrado: 02/09/10
Posts: 341
Reputação: +6
Gênero: Masculino
altera script pra só quem tiver storage 85258 pode usar q é o storage do meu vip....
--- script
local vocs = {9, 10, 11, 12}
local failout = {73,75,302,266,45,10} -- outfits proibidas
function onSay(cid, words, param, channel)
local t = string.explode(param, ",")
t[1] = tonumber(t[1])
if not isInArray(vocs, getPlayerVocation(cid)) then
doPlayerSendCancel(cid,"Sua vocação não pode usar este comando.")
elseif(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
elseif not(t[1]) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.")
elseif isInArray(failout, t[1]) then
doPlayerSendCancel(cid,"Não pode usar estas outfit.")
elseif(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 351) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such outfit does not exist.")
else
local tmp = getCreatureOutfit(cid)
tmp.lookType = t[1]
doCreatureChangeOutfit(cid, tmp)
end
return true
end