Amigo nao entendi muito bem teu pedido porem se seu sistema de vip nao esta muito bom.
eu aconselho a usar este que eu usei e ficou muito bom em meu servidor.
http://www.xtibia.com/forum/topic/136543-vip-system-by-account-v10/
Amigo nao entendi muito bem teu pedido porem se seu sistema de vip nao esta muito bom.
eu aconselho a usar este que eu usei e ficou muito bom em meu servidor.
http://www.xtibia.com/forum/topic/136543-vip-system-by-account-v10/
Essé você usa assim, /addvipdays {dias vip}, {nome do player}
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
return true
end
local t = string.explode(param, ",")
t[1] = tonumber(t[1])
if(not t[1]) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.")
return true
end
local pid = cid
if(t[2]) then
pid = getPlayerByNameWildcard(t[2])
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.")
return true
end
end
local tmp = t[1]
setPlayerStorageValue(pid, tmp)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You added 30 days vip for the player "..t[2]..".")
return true
end
Editado Julho 3 por SmiX
PODE ME EXPLICAR AONDE COLOCA É ETC ?
Vá em talkactions/scripts e crie um arquivo com o nome addvip.lua e cole o código.
depois vá em talkactionss/tallkactions.XML abra e cole isso dentro.
<talkaction words="/addvip" access="4" event="script" value="addvip.lua">
Editado Julho 4 por SmiX
info
Grupo: Artesão
Registrado: 03/12/10
Posts: 103
Reputação: +16
mINHA PORTA VIP É ASSIM :
-- Credits StreamSide and Empty function onUse(cid, item, fromPosition, itemEx, toPosition) local cidPosition = getCreaturePosition(cid) if (item.actionid == 5788 and getPlayerStorageValue(cid,11551) >= 1) then if cidPosition.x < toPosition.x then doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE) doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1) else doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE) doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1) end return TRUE else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, si keri vip pideselo al god!") return TRUE end return FALSE endqUERO UM COMANDO QUE DER VIP EX : /darvip (o nome do jogador ) (dias de vip)