Cod: Selectaţi tot
--[[
##########################################
# Dev: VegaS #
# Quest: Blocking IP address to killings #
# Date: 25/05/2016 #
##########################################
]]
function Verification_Ip_Adress()
local search_me = pc.get_ip()
local search_enemy = npc.get_ip()
local table_count_kill_ip = pc.getqf("count_ip_block")
if search_me == search_enemy then
pc.setqf("count_ip_block", pc.getqf("count_ip_block") + 1)
end
end
function Verification_Block()
local go_to_text_insult_find_by_race
if pc.get_sex() == 0 then
go_to_text_insult_find_by_race = "gay"
else
go_to_text_insult_find_by_race = "bitch"
end
local block_me = pc.get_ip()
local block_enemy = npc.get_ip()
local list_block_ = pc.getqf("count_ip_block")
if block_me == block_enemy and list_block_ == 10 then
say("You're too "..go_to_text_insult_find_by_race.."!")
pc.setqf("count_ip_block", 0) -- edit fix
return
end
end
when kill with npc.is_pc() begin
if get_time() < pc.getqf("time_kill") then
syschat("Not yet passed the 5 minutes after the last killing!")
return
end
pvp_global.Verification_Block()
pvp_global.Verification_Ip_Adress()
pc.setqf("time_kill", get_time()+ 300)
end
end*ServerFiles utilizat: -
*Syserr: nu este cazul




