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