Hello everyone. I got a little problem with talkaction script.
Here is the script:
And i want to make this scripts to repeat "frozen" every one second when this command is on (eg. /frozen Player [and then player can not move and sending animated "frozen" every one second untill command is off], /frozen Player [used 2nd time- player is able to move and stopped repeating anything]
I hope You have understood what I meant
Here is the script:
Code:
function onSay(cid, words, param)
local player = getPlayerByNameWildcard(param)
if not isPlayer(player) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'blahblabhlah.')
return true
end
local b = not getCreatureNoMove(player)
doCreatureSetNoMove(player, b)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, b and 'blahblabhlah.' or 'blahblabhlah.')
doPlayerSendTextMessage(player, MESSAGE_STATUS_CONSOLE_BLUE, b and 'blahblabhlah.' or 'blahblabhlah.')
doSendAnimatedText(getThingPos(player), b and 'Frozen' or 'Can Move', b and 64 or 168)
doSendMagicEffect(getThingPos(player), b and CONST_ME_GIANTICE or CONST_ME_HOLYAREA)
return true
end
And i want to make this scripts to repeat "frozen" every one second when this command is on (eg. /frozen Player [and then player can not move and sending animated "frozen" every one second untill command is off], /frozen Player [used 2nd time- player is able to move and stopped repeating anything]
I hope You have understood what I meant
Last edited: