TheSubKIller aka Skinning 261 Posted February 6, 2012 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
p0w3r0ff 3,795 Posted February 6, 2012 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
TheSubKIller aka Skinning 261 Posted February 7, 2012 Mesmo, já não precisa estar com cenas no navicat bla bla Share this post Link to post Share on other sites
NerD 24 Posted May 20, 2012 Nao Fuuncional Core Dumped Share this post Link to post Share on other sites
TheSubKIller aka Skinning 261 Posted May 21, 2012 Mano se colocares tudo direito acho que vai dar... Share this post Link to post Share on other sites
NerD 24 Posted May 23, 2012 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
proestrela 62 Posted July 7, 2012 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
@seo™ 27 Posted July 7, 2012 Ten site para bannir ^^ Share this post Link to post Share on other sites
ApocaLipSus 1 Posted July 30, 2012 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
obetuno 431 Posted November 18, 2012 Core Dumped... Não funciona. :S Share this post Link to post Share on other sites
Rancoroso 604 Posted November 23, 2012 Humm....Bom, mas diferente da minha. XD Share this post Link to post Share on other sites