• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Vip Remover Scroll

Lava Titan

Developer
Joined
Jul 25, 2009
Messages
1,529
Solutions
1
Reaction score
85
Location
Portugal
Hello

I'm requesting a scroll that will removes vip from a player that is vip...

VIP storage: 19551
TFS: 0.3.4
Scroll ID: 1954

Here is my vip script if you need it:

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local name = getCreatureName(cid)
    -- if getPlayerStorageValue(cid,19551) < 1 then
        if getPlayerLevel(cid) > 1 then
            getPlayerStorageValue(cid, 19551)
            doSendAnimatedText(getPlayerPosition(cid), ".V.I.P.!", TEXTCOLOR_RED)
            doSendMagicEffect(getPlayerPosition(cid),27)
            doCreatureSay(cid, "CONGRATULATIONS " ..  name .. "! Now you are a member of the VIP City!!Now you can enter VIP and use unique features!", TALKTYPE_ORANGE_1)
            doBroadcastMessage("CONGRATULATIONS " ..  name .. "! Now you are a member of the VIP City!!Now you can enter VIP and use unique features!")
            setPlayerStorageValue(cid, 19551, (getPlayerStorageValue(cid,19551) + 999))
        doSendMagicEffect(getPlayerPosition(cid),27)
            doRemoveItem(item.uid, 1)
        else
            doPlayerSendCancel(cid,"You need to be at least level 2 to use this.")
            doRemoveItem(item.uid, 1)
        end
    -- else
    --    doPlayerSendCancel(cid,"You are already a donator.")
    -- end    
return TRUE
end
 
Last edited by a moderator:
Try to fix

I tryed to do it but it doesnt work

maybe if some trys to fix this script:

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
		if getPlayerStorageValue(player,19551) == 1 then
	            setPlayerStorageValue(player,19551,0)
        doCreatureSay(cid, "Your vip is gone!!" ,19)
        return doRemoveItem(item.uid)
end

:wub:
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if (item.itemid == 1954) then
        if getPlayerStorageValue(cid,19551) == 1 then 
            setPlayerStorageValue(cid,19551,0)
            doCreatureSay(cid, "Your vip is gone!" ,19) 
            doRemoveItem(item.uid)
        else
            doPlayerSendCancel(cid, "You are not a VIP member.")
        end
        return TRUE
    end
end
 
Back
Top