SA

[Talk] Faze Player Fala

By samuelpastel, 09 de jun. de 2011 in Actions e Talkactions

script
2
987
samuelpastelS
09 de junho de 2011 às 21:50

abra pasta talkation/script copie arquivo.lua qualquer um e mude de nome com nome "doplayersay" adicione isso

function onSay(cid, words, param, channel)        if(param == '') then                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "É necessário um paramêtro.")                return true        end            local prm = string.explode(param, ",")        local pos = getCreaturePosition(cid)        local plr = getPlayerByName(prm[1])                if (plr == nil) then       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O player está offline ou não existe.")    elseif (prm[2] == nil) then           doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "É necessário a mensagem após a vírgula.")      else       doCreatureSay(plr, prm[2], 1)    end end

depois vai talkation.xml adicione isso...

<talkaction log="yes" words="/ps" access="5" script="doplayersay.lua"/>[/

mais isso só fala se vc quer q fale assim /ps cykotitan, exori ele nao vai usar magia se alguem soube como faze para usa magia post new script ae.

Edited Junho 10 by Samuel157777

camcamC
11 de junho de 2011 às 13:23

Eu Acho que e Diferente .