1
[Ayuda] Problema con Systema VIP Miér Nov 07, 2018 3:39 pm
ElizaldeG

Miembro

Quiero que el vip dure solo 1 dia. Donde puedo modificar y quiero saber quien tiene vip.
-- Creditos God Necro
function onUse(cid, item, fromPosition, itemEx, toPosition)
local name = getCreatureName(cid)
-- if getPlayerStorageValue(cid,11551) < 1 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "VIP PACC!", TEXTCOLOR_LIGHTGREEN)
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
doBroadcastMessage("Bienvenido" .. name .. "! Ahora eres un player VIP. [:")
setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 60))
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"Nesesitas Ser Nivel 2 o Mas Para Usarla.")
doRemoveItem(item.uid, 1)
end
-- else
-- doPlayerSendCancel(cid,"Tu Ya Eres Un Donador....")
-- end
return TRUE
end
-- Creditos God Necro
function onUse(cid, item, fromPosition, itemEx, toPosition)
local name = getCreatureName(cid)
-- if getPlayerStorageValue(cid,11551) < 1 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "VIP PACC!", TEXTCOLOR_LIGHTGREEN)
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
doBroadcastMessage("Bienvenido" .. name .. "! Ahora eres un player VIP. [:")
setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 60))
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"Nesesitas Ser Nivel 2 o Mas Para Usarla.")
doRemoveItem(item.uid, 1)
end
-- else
-- doPlayerSendCancel(cid,"Tu Ya Eres Un Donador....")
-- end
return TRUE
end
2 participantes