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

How to get the pz locked?

Zaphery

New Member
Joined
Dec 14, 2009
Messages
28
Reaction score
0
Hello! I'm using tfs 0.2 and I'm trying to make an object that it only can be used if you don't have the pz locked, what command can i use for check it? thanks
 
isPlayerPzLocked(cid)
Returns: TRUE or FALSE

LUA:
if isPlayerPzLocked(cid) == TRUE then
-- happens if player IS pzlocked
else
-- otherwise
end
 
isPlayerPzLocked(cid)
Returns: TRUE or FALSE

LUA:
if isPlayerPzLocked(cid) == TRUE then
-- happens if player IS pzlocked
else
-- otherwise
end

Hum using tfs 0.2.10,I tested it
LUA:
function onUse(cid, item, frompos, item2, topos)
  if isPlayerPzLocked(cid) == TRUE then
doPlayerSendTextMessage(cid,22,"True")
else
doPlayerSendTextMessage(cid,22,"False")
end 
end

and I get that error
LUA:
attempt to call global 'isPlayerPzLocked' (a nil value)
 
I don't know how to compile this function on exe, can someone make ir for me or give me a tutorial? thanks my version is theforgottenserver0210-win32console
 
Back
Top