kaiquefb
New Member
- Joined
- Feb 18, 2010
- Messages
- 62
- Reaction score
- 0
Hello friends,
Use TFS 1.0 and would like to enable the mute command to my tutors.
The command is working for GM and GOD.
How do I TOGGLE the tutors?
mute.lua
Talkactions.xml
Use TFS 1.0 and would like to enable the mute command to my tutors.
The command is working for GM and GOD.
How do I TOGGLE the tutors?
mute.lua
Code:
function onSay(cid, words, param)
local player = Player(cid)
local target = Player(param)
if target == nil then
player:sendCancelMessage("A player with that name is not online.")
return false
end
target:doaddCondition(CONDITION_MUTED)
target:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been muted by " .. player:getName() .. ".")
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You muted " .. target:getName() .. ".")
end
Talkactions.xml
Code:
<talkaction words="/mute" script="mute.lua" />