• 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 Error4

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
I don't use TFS for the script:
8deaf0a994ad1ff519e80a81f629eaae.jpg


Script:
PHP:
function onUse(cid, item, frompos, item2, topos)
local vip = {x = 909, y = 1023, z = 7}
local access = getPlayerAccess(cid)
local needaccess = 1
    if item.uid == 2201 and access >= needaccess then
        doTeleportThing(cid, vip, FALSE)
        doSendMagicEffect(vip, 10)
        doPlayerSendTextMessage(cid, 22, "Voce foi teleportado para a area VIP.")
    else
        doPlayerSendCancel(cid,"Voce precisa ser VIP para passar.")
    end
    return TRUE
end
 
not 100% sure but this could work

PHP:
function onUse(cid, item, frompos, item2, topos)
local vip = {x = 909, y = 1023, z = 7}
local access = getPlayerAccess(cid)
local needaccess = 1
    if item.uid == 2201 and access >= needaccess then
        doTeleportThing(cid, vip)
        doSendMagicEffect(vip, 10)
        doPlayerSendTextMessage(cid, 22, "Voce foi teleportado para a area VIP.")
    else
        doPlayerSendCancel(cid,"Voce precisa ser VIP para passar.")
    end
    return TRUE
end

P.S: Don't make everytime a new Thread just becouse you got an error, i don't think anyone help you next time if you create another new thread!
 
Why are all of you saying wrong/the same things?! omg...

What you guys said, is in post #1 and #2... Useless...
 
Last edited:
Back
Top