Azor
Cze
To taki przykład.
Co zrobić, że gdy napisze 'test' to nie pokazywało tego na żadnym kanale? :>
Code:
function onSay(cid, words, param, channel)
local summons = getCreatureSummons(cid)
if(table.maxn(summons) <= 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have any summons..")
doCreatureSay(cid, 'omg',19)
return false
else
doSendMagicEffect(getCreaturePosition(cid), 1)
return 0
end
end
Code:
<talkaction words="test" event="script" value="test.lua"/>