- Joined
- Dec 30, 2007
- Messages
- 529
- Solutions
- 5
- Reaction score
- 191
Hello,
This only works on 8.7 revisions of TFS 0.4. I think only advanced users will be able to use it.
Add this to the end of data/lib/050-function.lua
Talkaction:
Have a nice day.
This only works on 8.7 revisions of TFS 0.4. I think only advanced users will be able to use it.
Add this to the end of data/lib/050-function.lua
Code:
function doDebugPlayer(cid)
doPlayerSendTextMessage(cid, 25, "Debug")
end
Talkaction:
Code:
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local target = getPlayerByNameWildcard(param)
if(not target) then
target = getCreatureByName(param)
if(not target) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature not found.")
return true
end
end
doDebugPlayer(target)
return true
end
Have a nice day.