Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local c = {
- item = 5982, -- reward itemid
- store = 6000, -- storage for Current frags like in login script
- tstore = 7000, -- Total Storage value for kills
- dstore = 8000, -- Total Storage value for deaths
- table = {
- {"Smashed!", 189, 1},
- {"Dead!", 190, 1},
- {"Owned!", 18, 1},
- {"Pwnt!", 215, 1}
- }
- }
- function onKill(cid, target)
- if(not isPlayer(target)) then return true end
- local getStor = getCreatureStorage(cid, c.store)
- local rand = math.random(1, #c.table)
- local name = getCreatureName(cid)
- doCreatureSetStorage(cid, c.store, (getStor + 1))
- doCreatureSetStorage(cid, c.tstore, (getCreatureStorage(cid, c.tstore) +1))
- doCreatureSetStorage(target, c.dstore, (getCreatureStorage(cid, c.dstore) + 1))
- doSendAnimatedText(getThingPosition(target), c.table[rand][1], c.table[rand][2])
- if getPlayerIp(cid) == getPlayerIp(target) then
- return true
- end
- if(getStor == 5) then
- doPlayerAddItem(cid, c.item, c.table[rand][3])
- elseif(getStor == 10) then
- doBroadcastMessage("".. name .. " got 10 kills in a row!")
- elseif(getStor == 25) then
- doBroadcastMessage("".. name .. " got 25 kills in a row!")
- elseif(getStor == 50) then
- doBroadcastMessage("".. name .. " got 50 kills in a row!")
- elseif(getStor == 100) then
- doBroadcastMessage("Bow down to your new god "..name.." has 100 frags!")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement