isPlayerPzLocked(cid)
Returns: TRUE or FALSE
LUA:if isPlayerPzLocked(cid) == TRUE then -- happens if player IS pzlocked else -- otherwise end
function onUse(cid, item, frompos, item2, topos)
if isPlayerPzLocked(cid) == TRUE then
doPlayerSendTextMessage(cid,22,"True")
else
doPlayerSendTextMessage(cid,22,"False")
end
end
attempt to call global 'isPlayerPzLocked' (a nil value)