Welcome to Onforum.net - Web and gaming resource community

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Metin2 [Quest] The book of Admin

Vanilla

Elite
Elite
Credits
1,134
Code:
quest panel_admina2 begin
    state start begin


when login with pc.is_gm() begin
if pc.count_item(70021) < 1 then
pc.give_item2(70021)
notice("Jako GM serwera.")
notice ("You receive the Administrator's Book that you can manage the server.")
notice(":)")
end
end



when 70021.use with pc.is_gm() begin
say_reward ("Enter password:")
local sname = input()
if sname == "UstawSobieHasło" then
say_title ("The correct password!")
else
say_title ("Wrong password!")
return
wait()
end

say_reward ("Administrative Crystal:")
local s = select ("Permanent Block", "Download Blockade", "Time Ban", "Exit")
if s == 4 then
return
elseif s == 1 then
say_banan("Nick Gracza:")
local nick = input()
say_banan ("Provide the reason for bans:")
local powod = input()
say_banan ("Are you sure you want to ban?")
local na_pewno = select("Tak", "Nie")

if na_pewno == 2 then
return

elseif na_pewno == 1 then
local id = query("SELECT account_id FROM player.player WHERE name = '"..nick.."';")
query("UPDATE account.account SET status = 'BLOCK' WHERE id = '"..id.."';")
query("UPDATE account.account SET channel_company = '"..powod.."' WHERE id = '"..id.."';")
notice_all ("Player with nickname" ... .. "has been blocked Permanently!")
notice_all("Powód Blokady: "..powod.." ! ")
notice_all ("Player has been banned by:" ..pc.get_name () .. "")
end

elseif s == 2 then
say_banan("Nick Gracza:")
local nick = input()
say_banan ("Are you sure you want to unlock the player?")
local na_pewno = select("Tak", "Nie")
if na_pewno == 2 then
return

elseif na_pewno == 1 then
local id = query("SELECT account_id FROM player.player WHERE name = '"..nick.."';")
query("UPDATE account.account SET status = 'OK', availDt = '0000-00-00 00:00:00' WHERE id = '"..id.."';")
notice_all ("Player with nickname" ... .. has been Unlocked! ")
notice_all ("Player has been Unlocked by:" ..pc.get_name () .. "")
end

elseif s == 3 then
say_banan("Podaj nick:")
local nick = input()
say_banan ("Until when a player is to be banned, assuming that:")
say_trawa ("1 = 24h, 2 = 48h, 3 = 72h and so on [ENTER]")
local day = input()
say ("[ENTER] Enter the reason for the blockade")
local powod = input()
say ("Are you sure you want to ban?")
local tak = select("Tak", "Nie")
if tak == 2 then
return

elseif tak == 1 then
local id = query("SELECT account_id FROM player.player WHERE name = '"..nick.."';")
query("update account.account set availDt = date_add(now(),INTERVAL "..day.." DAY) where id='"..id.."';")
query("UPDATE account.account SET channel_company = '"..powod.."' WHERE id = '"..id.."';")
notice_all ("Player with nickname" ..nick ... "has been blocked")
notice_all ("The Lock Will Last" ..day .. "Days Reason Lock:" ..incure "!")
notice_all ("Player has been banned by:" ..pc.get_name () .. "")

end
end
end
end
end
This is the admin book for the password that you set up, it is as good as someone would drive some GM on the account will not bust anyone.

Options

- Permanent ban

- Time banking

- Unban

There is a message in the chat who banishes, for what banishes, and who banishes.

The quest is nothing special but maybe someone will need it.
 
Thread starter Similar threads Forum Replies Date
Vanilla C++ / DIFF / Source 0

Similar threads


About us

OnForum.net is a resource community where aspiring webmasters and designers can share content and receive support for a wide variety of software platforms. We are working every day to make sure our community is one of the best.

None of the files are hosted on this site.

PARTNERS

Follow us

We recommend

Doza de Blog
Top

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

The advertises that you'll see aren't intrusive they just help us to keep the community alive

If you don't want to see those ads just buy an upgrade.

Thank you for understanding!