skenchu
New Member
the error
VIP
VIP2
thanks for helping!
VIP
Lua:
local days = 10
local levelToBeVIP = 1
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= levelToBeVIP then
if isPlayerVip(cid) == FALSE then
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for "..days.." days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
end
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doPlayerAddVipDays(cid, days)
doRemoveItem(item.uid, 1)
doSendAnimatedText(getCreaturePosition(cid), "+"..days.." days", 10)
else
doPlayerSendCancel(cid, "You need level "..levelToBeVIP.." to be a VIP player.")
end
return TRUE
end
VIP2
Lua:
local days = 2
local levelToBeVIP = 1
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= levelToBeVIP then
if isPlayerVip(cid) == FALSE then
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for "..days.." days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
end
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doPlayerAddVipDays(cid, days)
doRemoveItem(item.uid, 1)
doSendAnimatedText(getCreaturePosition(cid), "+"..days.." days", 2)
else
doPlayerSendCancel(cid, "You need level "..levelToBeVIP.." to be a VIP player.")
end
return TRUE
end
thanks for helping!
Last edited: