request this makesay command from mrsheen ot
TalkAction - Make say
This will make a person say whatever you want function onSay(cid, words, param, channel) local t = string.explode(param, ",") local tmp = t[1] if(t[2]) then tmp = t[2] end if(param == '') then doPlayerSendTextMessage(cid, 20, "Command param required.") return true end if not...otland.net
Lua:
local mindcontrol = TalkAction("/mindcontrol")
function mindcontrol.onSay(player, words, param)
-- Below param parser might not respect talkaction separator
-- (such as player names with space in them)
local t = string.explode(param, ",")
local tmp = t[1]
if t[2] then
tmp = t[2]
end
if param == '' then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Command param required.')
return true
end
local mindControlled = Player(t[1])
if not mindControlled then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'This Player no exist.')
return true
else
mindControlled:say(tmp,TALKTYPE_SAY)
end
return true
end
mindcontrol:separator(" ")
mindcontrol:register()