anw hope it works. you might have to edit a little.
PHP Code:
-- GM Item to ban
-- www.Deathju2official.com
-- Copyright Katamoto
quest ban_item begin
state start begin
when 70022.use begin
say_title ("Hello, ".. pc.get_name() ..".")
say("(SA)Katamoto: Ban or unban a player")
say("")
say("Please Think wisely")
local a = select ( "Ban Player" , "Unban player" , "Exit" )
if a == 1 then
say("Name of player who you wanna ban")
say("")
say("Info : Abusing GM power and you will be removed")
local cblock = input()
say("Reason:")
local creason = input()
game.set_event_flag("banned_".. cblock ..(),1")
notice_all("Player: ".. cblock .." is banned. reason: ".. creason.."")
notice_all("<ATTENTION>Play by the rules!!")
end
if a == 2 then
say("Insert name of player who will be unbanned")
local cublock = input()
game.set_event_flag("banned_".. culock ..(),0")
notice_all("Ban for player: ".. cublock .." was removed")
end
if a == 3 then
return
end
end
end
end
Remember to give thanks







