Crie um arquivo chamado post.lua na pasta talkactions e cole isto dentro:
local config = {
priceForEachMessage = 2000, -- preço de cada mensagem
}
function onSay(cid, words, param, channel)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[ERROR] Command requires param.")
return TRUE
end
local t = string.explode(param, ",")
if(not t[2]) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[ERROR] !post NAME_item, Price In 'k'")
return TRUE
end
if(isNumber(t[2]) == FALSE) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[ERROR] Price can be only numbers.")
return TRUE
end
if(doPlayerRemoveMoney(cid, config.priceForEachMessage) == TRUE) then
doBroadcastMessage(" " .. getPlayerName(cid) .. "'s esta comprando " .. t[1] .. "! Preço: " .. t[2] .. "k.", MESSAGE_STATUS_WARNING)
else
doPlayerSendCancel(cid, "[ERROR] You need " .. config.priceForEachMessage .. " gold coins to send a message.")
end
return TRUE
end
Dps coloque issu em talkactions.xml
<talkaction words="!post" event="script" value="post.lua"/>
para usar o comando diga !post nome do item,preço em k ex: !post royal helmet,30
Flw!

Ajudei ? Então clika ali no
E da um Rep+ pra mim!