Lua:
local bp = TalkAction("!bp")
function bp.onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 100) then
doPlayerAddItem(cid,1988,1)
doSendMagicEffect(getPlayerPosition(cid),12)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You've bought an backpack!")
else
doPlayerSendCancel(cid,"You don't have enough money.")
doSendMagicEffect(getPlayerPosition(cid),2)
end
return true
end
bp:register()
how to add deleye, and stop spaming !bp? Like use , and exhause for 3sec.