Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Multiplayer kills handdler - NE style - coded by combreal --
- -- Feel free to use it and change the value below --
- -- killer's name blabla - keep a space char between the first double quote and your server message --
- doublekill_server_message = " is on a double kill!"
- triplekill_server_message = " is on a triple kill!"
- killtacular_server_message = " is on a killtacular!"
- killingspree_server_message = " is on a killing spree!"
- runningriot_server_message = " is running riot!"
- gratz_server_message = " has achieved 50 kills!" -- keep the nombre equal to gratzkill variable
- doublekill_wisper_toplayer = "you did a double kill!"
- triplekill_wisper_toplayer = "you did a triple kill!"
- killtacular_wisper_toplayer = "you did a killtacular!"
- killingspree_wisper_toplayer = "you did a killing spree!"
- runningriot_wisper_toplayer = "you are running riot!"
- gratz_wisper_toplayer = "You've achieved 50 kills, good job!" -- keep the nombre equal to gratzkill variable
- gratzkills = 50 -- nombre of kills to send the congratulation messages
- function GetRequiredVersion() return 200 end
- function OnScriptLoad(processid, game, persistent) end
- function OnPlayerKill(killer, victim, mode)
- m_killer = getplayer(killer)
- local player_kills = readword(m_killer, 0x9C)
- if player_kills == gratzkills then
- privatesay(killer, gratz_wisper_toplayer)
- say(getname(killer) .. gratz_server_message)
- end
- end
- function OnKillMultiplier(player, multiplier)
- name = getname(player)
- if multiplier == 0x07 then
- say(name .. doublekill_server_message)
- privatesay(player, doublekill_wisper_toplayer)
- elseif multiplier == 0x09 then
- say(name .. triplekill_server_message)
- privatesay(player, triplekill_wisper_toplayer)
- elseif multiplier == 0x0A then
- say(name .. killtacular_server_message)
- privatesay(player, killtacular_wisper_toplayer)
- elseif multiplier == 0x0B then
- say(name .. killingspree_server_message)
- privatesay(player, killingspree_wisper_toplayer)
- elseif multiplier == 0x0C then
- say(name .. runningriot_server_message)
- privatesay(player, runningriot_wisper_toplayer)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement