• 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 player can't move in script?

Gelio

Lua PHP C++ programmer
Joined
Jun 13, 2008
Messages
61
Reaction score
4
Location
Poland, Lublin
Hello. How to make, to player can't move in mine script. I've found out something, about doPlayerSetNoMove(cid, cannotMove) and mayNotMove(cid, x) functions, but when I put it into a script I get that errors:
Lua Script Error: [Action Interface]
data/actions/scripts/popup test.lua:eek:nUse

data/actions/scripts/popup test.lua:4: attempt to call global 'doPlayerSetNoMove
' (a nil value)
stack traceback:
data/actions/scripts/popup test.lua:4: in function <data/actions/scripts
/popup test.lua:1>

Lua Script Error: [Action Interface]
data/actions/scripts/popup test.lua:eek:nUse

data/actions/scripts/popup test.lua:4: attempt to call global 'doPlayerSetNoMove
' (a nil value)
stack traceback:
data/actions/scripts/popup test.lua:4: in function <data/actions/scripts
/popup test.lua:1>
Mine script:
Code:
function onUse(cid, item, frompos, item2, topos)
doPlayerPopupFYI(cid, "Test message")
doPlayerSetNoMove(cid, 0)
end
I need help, because I want to make first login tutorial on my OT server, but when player will be allowed to move tutorial will move in for example to somebody's house. Help me as fast as possible.

Yours,
Gelio

P.S.: Sorry for my english.
 
Last edited:
I got 0.3. And then how to do to player can move?
doPlayerSetNoMove(cid, 0)?


Help please.
Yours,
Gelio
 
Back
Top Bottom