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

Solved !go house problem

WiLDTuRTLE

Member
Joined
Feb 26, 2011
Messages
478
Reaction score
5
Code:
function onSay(cid, words, param, channel)
        local pzLocked = isPlayerPzLocked(cid)

        if pzLocked == false and getHouseByPlayerGUID(getPlayerGUID(cid)) then
                doTeleportThing(cid, getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))))
        else
doSendMagicEffect(getPlayerPosition(cid),0)
        end
        return true 
end


Yep, it works but its made so if player is PZ it doesnt teleport, well it do /: Tried few things, i can't get it to not work if player pz... or my server is bugged?

tyty
 
change

Lua:
 if pzLocked == false
to
Lua:
 if pzLocked == 0

Idk if it works, give it a try
 
Lua:
function onSay(cid, words, param, channel)

        if getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE and getHouseByPlayerGUID(getPlayerGUID(cid)) then
                doTeleportThing(cid, getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))))
        else
		doSendMagicEffect(getPlayerPosition(cid),0)
        end
        return true 
end
 
Lua:
function onSay(cid, words, param, channel)

        if getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE and getHouseByPlayerGUID(getPlayerGUID(cid)) then
                doTeleportThing(cid, getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))))
        else
		doSendMagicEffect(getPlayerPosition(cid),0)
        end
        return true 
end


woah... i missspelled it :| , thanks thoooo ill repp u ;x
 

Similar threads

Back
Top