function onKill(cid, target, lastHit)
------------------------------------------------------------
local rankStorage = 30500
local getFrags = getPlayerStorageValue(cid,rankStorage)
local addFrag = ((getPlayerStorageValue(cid,10000))+1)
------------------------------------------------------------
local killStreaks = 10010
local getKSP = getPlayerStorageValue(cid,killStreaks)
local addKSP = ((getPlayerStorageValue(cid,10010))+1)
------------------------------------------------------------
local zombieStorage = 30550
local getZomb = getPlayerStorageValue(cid,zombieStorage)
local addZomb = ((getPlayerStorageValue(cid,30550))+5)
local zombieNames = {"Zombie","Zombie Boss","Undead Hound"}
local zombieDefenderStorage = 10240
local inZombies = getPlayerStorageValue(cid,zombieDefenderStorage)
------------------------------------------------------------
local inArena = getPlayerStorageValue(cid,10020)
local reward = 2152
local pos = getPlayerPosition(cid)
if inArena == 10 then
if(isPlayer(cid) and isPlayer(target)) then
if getPlayerIp(cid) == getPlayerIp(target) then
doPlayerAddExperience(cid,-100000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
elseif getFrags <= 1000 then
doPlayerAddItem(cid,reward,getKSP)
setPlayerStorageValue(cid,rankStorage,addFrag)
doCreatureSay(cid, getKSP, TALKTYPE_ORANGE_1)
end
else
end
elseif inZombies == 1 then
doCreatureSay(cid, "".. getZomb .."+5", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid,zombieStorage,addZomb)
if isMonster(target) then
if getCreatureName(target):lower() == "Zombie Boss I" then
executeRaid("ZombieWaveTwo")
elseif getCreatureName(target):lower() == "Zombie Boss II" then
executeRaid("ZombieWaveThree")
elseif getCreatureName(target):lower() == "Zombie Boss II" then
doRemoveCreature(cid)
end
end
end
return TRUE
end