antiblock
Elveron
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
TheSubKIller aka Skinning

[QUEST] Banir In-Game

12 posts in this topic

Boas Cyber-Gamers

quest ingamebann begin

state start begin

when xxx.use with pc.is_gm() begin

say_title("Banir Player")

say("")

say("Digite o nome de um jogador:")

local name = input()

if name=="" or name=="0" or name=""..pc.name.."" then

chat("Inserido inválido")

return

end

local check_spieler = mysql_select("SELECT COUNT(*) from player.player WHERE name='"..name.."' LIMIT 1;")

if check_spieler[1][1] == "0" then

chat("O jogador não existe")

return

end

local check_accid = mysql_select("SELECT account_id from player.player where name='"..name.."' LIMIT 1;")

local acc_id = check_accid[1][1]+1-1

local bannacc = mysql_select("SELECT login from account.account where id='"..acc_id.."' LIMIT 1;")

mysql_notselect("UPDATE account.account SET status='BLOCK' WHERE id='"..acc_id.."' LIMIT 1;")

chat("A conta "..bannacc[1][1].." foi bloqueado com êxito!")

command("dc "..name)

-- Log Table; Para ativar o "--" Remova os 4 campos abaixo!

-- say("Dê mais um motivo para")

-- local grund = input()

-- mysql_notselect("INSERT into log.banningame (banner,spieler,grund) VALUES ('"..pc.name.."','"..name.."','"..grund.."');")

-- chat("Escritos com sucesso para o log")

end

end

end

Fonte: epvp

Share this post


Link to post
Share on other sites
antiblock
diamwall

Muito bom sempre que um Gm Percisar e so evocar Npc e dar ban no jogador...

Cumprimentos +1

Share this post


Link to post
Share on other sites

Nao Fuuncional Core Dumped

Share this post


Link to post
Share on other sites

Man eu Fiz Certinho e Talz Depois Ainda Tentei por Como Quest Tabem Nao Foi =X

Share this post


Link to post
Share on other sites

Para meter a quest voces tem de fazer assim

por expl: nome da quest: in_game_http://cyber-gamers.org/public/style_emoticons/default/ban.gif.quest

-----------------> quest ingamebann begin <----------------------

tem de meter aqui tambem o nome igual se não, não vai dar certo expl

quest in_game_http://cyber-gamers.org/public/style_emoticons/default/ban.gif begin

state start begin

----------> when xxx.use with pc.is_gm() begin <------------- aqui falta o ID do NPC ou Item que querem ultilizar Expl

when 71055.use with pc.is_gm() begin

say_title("Banir Player")

say("")

say("Digite o nome de um jogador:")

local name = input()

if name=="" or name=="0" or name=""..pc.name.."" then

chat("Inserido inválido")

return

end

local check_spieler = mysql_select("SELECT COUNT(*) from player.player WHERE name='"..name.."' LIMIT 1;")

if check_spieler[1][1] == "0" then

chat("O jogador não existe")

return

end

local check_accid = mysql_select("SELECT account_id from player.player where name='"..name.."' LIMIT 1;")

local acc_id = check_accid[1][1]http://cyber-gamers.org/public/style_emoticons/default/451960.gif-1

local bannacc = mysql_select("SELECT login from account.account where id='"..acc_id.."' LIMIT 1;")

mysql_notselect("UPDATE account.account SET status='BLOCK' WHERE id='"..acc_id.."' LIMIT 1;")

chat("A conta "..bannacc[1][1].." foi bloqueado com êxito!")

command("dc "..name)

-- Log Table; Para ativar o "--" Remova os 4 campos abaixo!

-- say("Dê mais um motivo para")

-- local grund = input()

-- mysql_notselect("INSERT into log.banningame (banner,spieler,grund) VALUES ('"..pc.name.."','"..name.."','"..grund.."');")

-- chat("Escritos com sucesso para o log")

end

end

end

Share this post


Link to post
Share on other sites

Ten site para bannir ^^

Share this post


Link to post
Share on other sites

mas a onde meto esse código alguém me sabe explicar? -.- fogo expliquem-se melhor...ao menos digam como devemos fazer para colocarmos --'

Share this post


Link to post
Share on other sites
Core Dumped... Não funciona. :S

Share this post


Link to post
Share on other sites

Humm....Bom, mas diferente da minha. XD

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this