[RELEASE]Ban_item.quest

04/13/2011 07:35 [SA]Aelius#1
This script havnt been tested as im too fking lazy.
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 :mofo:
04/13/2011 07:36 Zander##2
Chatblock??
04/13/2011 08:12 Sir eb#3
When its a release thats wrong section dude ;)
04/13/2011 15:36 [SA]Aelius#4
Quote:
Originally Posted by eb12345 View Post
When its a release thats wrong section dude ;)
idk bro, this german forum freaks me out xD
04/13/2011 15:45 'oShet#5
Give me a english forum o.o
08/21/2011 17:00 akjra#6
guida ?