
Dragonas
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
Dragonas recebeu reputação de poko360 em Não consigo banir playerscara meu server deu esse mesmo problema ... confere na distro se na hora que vc tenta dar ban ele fala q tá com problemas de adicionar o player à tabela bans ... se for isso deleta a table bans e executa essa querie aqui no seu BD :
CREATE TABLE bans ( id INTEGER PRIMARY KEY NOT NULL, type INTEGER NOT NULL, value INTEGER NOT NULL, param INTEGER NOT NULL DEFAULT '11', active BOOLEAN NOT NULL DEFAULT '1', expires INTEGER NOT NULL, added INTEGER NOT NULL, admin_id INTEGER NOT NULL DEFAULT '0', comment TEXT NOT NULL, reason INTEGER NOT NULL DEFAULT '0', action INTEGER NOT NULL DEFAULT '0', statement VARCHAR( 255 ) NOT NULL DEFAULT '''' );
-
Dragonas deu reputação a Vodkart em [GFS] Guild Frag SystemAntes de mais nada execute essas querys no seu banco de dados
ALTER TABLE `guilds` ADD `frags` INT(11) NOT NULL DEFAULT 0; ALTER TABLE `guilds` ADD `acesstime` INT(15) NOT NULL DEFAULT 0; Sistema
Configuração
-
Dragonas deu reputação a Kemmlly em [TALKACTION] !bc para playerslocal storage = 6557 -- Storage eu registra os 10 minutos entre as mensagens local storage2 = 6558 -- Storage que proibe o player de falar fora do prazo local tempo = 600 -- Tempo em segundo entre uma mensagem e outra function onSay(cid, words, param, channel) if getPlayerStorageValue(cid, storage2) < 1 and getPlayerGuildRank(cid) == "Leader" then if(param == '') then doPlayerSendTextMessage(cid, 19, "A mensagem nao pode ser vazia.") return true else doBroadcastMessage(""..getCreatureName(cid)..": "..param.."") setPlayerStorageValue(cid, storage, os.time() + tempo) setPlayerStorageValue(cid, storage2, 1) return true end elseif getPlayerStorageValue(cid, storage2) >= 1 then doPlayerSendTextMessage(cid, 19, "Voce tem que aguardar 10 minutos entre uma mensagem e outa!") return true else doPlayerSendTextMessage(cid, 19, "Somente lideres de guild podem usar esse comando!") return true end end
-
Dragonas deu reputação a Kemmlly em [TALKACTION] !bc para playersdata/talkactions/scripts/bcplayer.lua
local storage = 6557 -- Storage eu registra os 10 minutos entre as mensagens local storage2 = 6558 -- Storage que proibe o player de falar fora do prazo local tempo = 600 -- Tempo em segundo entre uma mensagem e outra function onSay(cid, words, param, channel) if getPlayerStorageValue(cid, storage2) < 1 and getPlayerGuildRank(cid) == "Leader" then if(param == '') then doPlayerSendTextMessage(cid, 19, "A mensagem nao pode ser vazia.") return true else doBroadcastMessage(param) setPlayerStorageValue(cid, storage, os.time() + tempo) setPlayerStorageValue(cid, storage2, 1) return true end elseif getPlayerStorageValue(cid, storage2) >= 1 then doPlayerSendTextMessage(cid, 19, "Voce tem que aguardar 10 minutos entre uma mensagem e outa!") return true else doPlayerSendTextMessage(cid, 19, "Somente lideres de guild podem usar esse comando!") return true end end
data/talkactions/talkactions.xml
<talkaction words="!bc" event="script" value="bcplayer.lua"/>
data/globalevents/scripts/bccheck.lua
local storage = 6557 -- Storage eu registra os 10 minutos entre as mensagens local storage2 = 6558 -- Storage que proibe o player de falar fora do prazo function onThink(interval, lastExecution, thinkInterval) if #getPlayersOnline() > 0 then for _, cid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(cid, storage2) == 1 and getPlayerStorageValue(cid, storage) - os.time() < 1 then setPlayerStorageValue(cid, storage2, 0) end end end return true end
data/globalevents/globalevents.xml
<globalevent name="bcplayer" interval="1000" event="script" value="bccheck.lua"/> 1000 == 1 segundo (tempo que executa o script para chegar o tempo entre uma mensagem e outra, se seu server for em segundos, use 1 para 1 segundo)
Aguardo um retorno.