Esta noticia foi arquivada.
Este tópico está fechado e foi movido para Noticia - Arquivo.
+ Caso tenha atualizações você poderá criar outro tópico.
Este tópico está fechado e foi movido para Noticia - Arquivo.
+ Caso tenha atualizações você poderá criar outro tópico.


info
Grupo: Conde
Registrado: 16/06/08
Posts: 998
Reputação: +185
Gênero: Masculino
Exemplo de talkaction:
local config = { cost = 10000 } function onSay(cid, words, param) if(doPlayerRemoveMoney(cid, config.cost) ~= TRUE) then doPlayerSendCancel(cid, "Not enought money, remove frag cost " .. config.cost .. "gp.") return TRUE end doPlayerAddFrags(cid, -1) --remove 1 frag return TRUE endCréditos: slawkens
Em data/lib/function.lua adicione:
doPlayerAddFrags(cid, amount)
function doPlayerAddFrags(cid, amount) return doPlayerSetRedSkullTicks(cid, getPlayerRedSkullTicks(cid) + getConfigInfo('timeToDecreaseFrags') * amount) enddoPlayerAddLevel(cid, amount[, round = FALSE])
Editado Setembro 5 por fireelement