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

Lua block with pz this code please

darknelson

Member
Joined
Jun 19, 2011
Messages
190
Solutions
1
Reaction score
15
im trying to make a code thats only works with premium, that function works nice, but im trying if you got pz locked, doesnt matter if u have premium or no, break and show error message, please help me bros


Lua:
function onSay(player)
    if isPlayerPzLocked(cid) == TRUE then
            player:sendCancelMessage("You are With PZ LOCK.")
            return false
        end
    if player:getPremiumDays() > 0 then
    player:sendTextMessage(MESSAGE_INFO_DESCR, 'PVP: OFF')
    player:setStorageValue(77777412, 1)
    else
        player:sendCancelMessage("You Need a Premium Account, Contact With Gods.")
    end
return false
end
 
Solution
Lua:
function onSay(player)

    if player:isPzLocked() == TRUE then
        player:sendCancelMessage("You are With PZ LOCK.")
        return false
    end
		
    if player:getPremiumDays() > 0 then
		player:sendTextMessage(MESSAGE_INFO_DESCR, 'PVP: OFF')
		player:setStorageValue(77777412, 1)
		return true
    else
        player:sendCancelMessage("You Need a Premium Account, Contact With Gods.")
		return false
    end

end
Lua:
function onSay(player)

    if player:isPzLocked() == TRUE then
        player:sendCancelMessage("You are With PZ LOCK.")
        return false
    end
		
    if player:getPremiumDays() > 0 then
		player:sendTextMessage(MESSAGE_INFO_DESCR, 'PVP: OFF')
		player:setStorageValue(77777412, 1)
		return true
    else
        player:sendCancelMessage("You Need a Premium Account, Contact With Gods.")
		return false
    end

end
 
Last edited:
Solution
Back
Top