vou postar aki os melhores sistemas de VIP e Premium e os mais práticos
1º~~
O sistema foi feito por Noobinhu, é o sistema VIP, este sistema tem uma vantagem, ao remover uma VIP o player vai diretamente para o templo, e é tudo em 3 scripts... muito fácil de editar :]
Primeiro, vá em data ~> movements ~> movements.xml e adcione:
<movevent event="StepIn" actionid="13540" script="vip.lua" />
Salve e feche.
Crie outro arquivo agora em movements ~> scripts, com o nome de vip.lua e adcione:
function onStepIn(cid, item, pos)
-- teleports config
teleport1 ={x=97, y=156, z=8}
if isPlayer(cid) then
if item.actionid == 13540 then
vip = getPlayerStorageValue(cid,13540)
if vip == -1 then
doPlayerSendCancel(cid,"Esta área é exclusiva para players vips.")
doTeleportThing(cid,teleport1)
else
end
end
end
end
Só precisa editar ali onde está azul, edite para as posições do mapa onde o player será teletransportado ao tentar entrar na área vip, porém sem VIP.
Salve e feche.
2º~~
sistema muito prático e fácil de adicionar e remover VIPS por talkactions!
Em talkactions ~> talkactions.xml adcione:
<talkaction words="/addvip" script="addvip.lua" /><talkaction words="/removevip" script="removevip.lua" />
Salve, feche.
Agora em talkactions ~> scripts crie 2 arquivos, addvip.lua e removevip.lua e adcione o seguinte que está no quote respectivamente:
addvip.lua
function onSay(cid,words,param)
if getPlayerAccess(cid) > 3 and param ~= "" and getPlayerStorageValue(getPlayerByName(param), 13540) == -1 or getPlayerStorageValue(getPlayerByName(param), 13540) == 0 then
doPlayerSendTextMessage(getPlayerByName(param),20,'Uma VIP acabou de ser adcionada a você!')
setPlayerStorageValue(getPlayerByName(param), 13540, 1)
doPlayerSendTextMessage(cid,21,'Você acabou de adcionar uma VIP!')
elseif getPlayerAccess(cid) < 3 then
doPlayerSendTextMessage(cid,25,"Você não pode adcionar VIPs.")
elseif getPlayerStorageValue(getPlayerByName(param), 13540) ~= -1 then
doPlayerSendTextMessage(cid,25,"Este player já tem VIP.")
else
doPlayerSendTextMessage(cid,21,"Você precisa de escrever o nome do player que vai ganhar a VIP.")
end
end
removevip.lua
function onSay(cid,words,param)
temple = getPlayerMasterPos(getPlayerByName(param))
if getPlayerAccess(cid) > 3 and param ~= "" and getPlayerStorageValue(getPlayerByName(param), 13540) == 1 then
doPlayerSendTextMessage(getPlayerByName(param),25,'Você acabou de perder VIP!')
doPlayerSendTextMessage(cid,21,'Você acabou de remover uma VIP!')
setPlayerStorageValue(getPlayerByName(param), 13540, -1)
doTeleportThing(getPlayerByName(param),temple)
elseif getPlayerAccess(cid) < 3 then
doPlayerSendTextMessage(cid,25,"Você não pode remover VIPs.")
elseif getPlayerStorageValue(getPlayerByName(param), 13540) ~= 1 then
doPlayerSendTextMessage(cid,25,"Este player ainda não tem VIP.")
else
doPlayerSendTextMessage(cid,21,"Você precisa de escrever o nome do player que vai perder a VIP.")
end
end
Salve, feche e está pronto seu sistema de VIP.
No mapa, no piso em que o player não poderá pisar caso não for VIP, coloque action 13540, por exemplo:
http://img101.imagevenue.com/img.php?image...1_122_885lo.jpg
http://img101.imagevenue.com/img.php?image...1_122_885lo.jpg
O piso branco no caso, seria onde o player seria teletransportado caso NÃO fosse vip e o piso preto seriam os pisos com a action 13540.
Para adcionar VIP fale /addvip "nick e para remover fale /removevip "nick
mais lembre-se, o player tem que estar on-line!!!!
Creditos: Noobinhu~~//Yunie~
3º~~
agora o sistema PREMIUM
simstema de tile premium, foi feiot bY: DOJAN
adicione em movements/script:
function onStepIn(cid, item, pos)
player1pos = getPlayerPosition(cid)
novapos1 = {x=132, y=348, z=7}
msg = "Allowed only for Premium Accounts"
if item.uid == 1200 then
if isPremium(cid) then
else
doPlayerSendTextMessage(cid, 22, msg)
getThingfromPos(player1pos)
doSendMagicEffect(player1pos,2)
doTeleportThing(cid,novapos1)
doSendMagicEffect(novapos1,10)
end
return 1
end
end
edite assim:
azul:onde o player sera teletransportado se não for premium
verde:uid do piso que só permitirá premiums
vermelho:Mensagem caso o player não seja premium
e em movements/movements.xml isso:
<movevent event="StepIn" uniqueid="1200" script="premium tile.lua" />
creditos: DOJAN
estão aq1ui os melhores sistemas de VIP e PREMIUM que encontrei ^^
espero que ajudem a vocês tanto quanto me ajudou
cYa~~
Guizo³³³³³³³³³³³³³³³³³³³³³³³³³³##############