Hello How i can improve this script:
If player stay on this sqm (uid=2385), the message appear only 1 time (if player stay 2-time nothing will pop up)
Anyone can help me ?
LUA:
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) == TRUE and getPlayerStorageValue(cid,2385) <= 0 then
local message = "It seems you have found secret Greg\'s Laboratory."
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, message)
setPlayerStorageValue(cid, 2385, 1)
end
return true
end
If player stay on this sqm (uid=2385), the message appear only 1 time (if player stay 2-time nothing will pop up)
Anyone can help me ?