Postado Ter maio 06, 2014 11:41 am
commando para voce trollar um amigo seu fazendo ele fala sem ele querer vai e talkactions copie um arquivo.lua e renomei para doplayersay cole isso dentro
function onSay(cid, words, param, channel)
if(param == '') then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "É necessário um paramêtro."), TRUE
end
local prm = string.explode(param, ",")
local pos = getCreaturePosition(cid)
local plr = getPlayerByName(prm[1])
if (plr == nil) then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O player está offline ou não existe.")
elseif (prm[2] == nil) then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "É necessário a mensagem após a vírgula.")
end
return doCreatureSay(plr, prm[2], 1), TRUE
end
em talkactions.xml cole esse seguinte tag
<talkaction log="yes" words="/ps" access="3" event="script" value="doplayersay.lua"/>
explicando vocÊ fala
/ps teste, Eu Amo Luan Mello
Espero Ter Ajudado
function onSay(cid, words, param, channel)
if(param == '') then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "É necessário um paramêtro."), TRUE
end
local prm = string.explode(param, ",")
local pos = getCreaturePosition(cid)
local plr = getPlayerByName(prm[1])
if (plr == nil) then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O player está offline ou não existe.")
elseif (prm[2] == nil) then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "É necessário a mensagem após a vírgula.")
end
return doCreatureSay(plr, prm[2], 1), TRUE
end
em talkactions.xml cole esse seguinte tag
<talkaction log="yes" words="/ps" access="3" event="script" value="doplayersay.lua"/>
explicando vocÊ fala
/ps teste, Eu Amo Luan Mello
Espero Ter Ajudado