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

[help] With teleport ;] plx

tarjei

Necronian Engineer
Joined
May 25, 2008
Messages
504
Reaction score
126
Location
Poland
I want to ask you that you know how to make diesappear a tible after go to tp


Thx for any help


PHP:
function onStepIn(cid, item, pos)

    if isPlayer(cid) == 1 then

        tible = getPlayerItemCount(cid,1970)
        if tible >= 1 then
            
            newpos = {x=33175,y=32936,z=15}
            doSendMagicEffect(pos,12)
            doTeleportThing(cid,newpos)
            doSendMagicEffect(newpos,12)
            
        elseif tible == 0 then
            out = {x=33253,y=32833,z=8}
            doSendMagicEffect(pos,12)
            doTeleportThing(cid,out)
            doSendMagicEffect(out,12)
                
        end
    end
end

@Colandus
Thx ;]
 
Last edited:
Code:
function onStepIn(cid, item, pos) 

    if isPlayer(cid) == 1 then 
        if doPlayerRemoveItem(cid, 1970, 1) == TRUE then 
            newpos = {x=33175,y=32936,z=15} 
            doSendMagicEffect(pos,12) 
            doTeleportThing(cid,newpos) 
            doSendMagicEffect(newpos,12)
        else
            out = {x=33253,y=32833,z=8} 
            doSendMagicEffect(pos,12) 
            doTeleportThing(cid,out) 
            doSendMagicEffect(out,12) 
                 
        end 
    end 
end
 
Back
Top