• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TalkAction Make say

Andy Man

Advanced OT User
Joined
Jun 15, 2011
Messages
1,689
Reaction score
194
Location
México
This will make a person say whatever you want


Code:
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 playerExists(t[1]) then
doPlayerSendTextMessage(cid, 20, "This Player no exist.")
return true
else
doCreatureSay(getPlayerByName(t[1]), tmp, 1)
end
return true
end
 
Back
Top