LUA 186
V1+ Death Kill Messages 1.0 By xdedeone on 26th February 2019 08:15:26 PM
  1.  
  2.  
  3. -- Kill Messages by «§H»Kennan{Leader}
  4. -- Xfire : kenster789
  5. -- Version : (11/24/13) Personal Release
  6.  
  7.  
  8. last_damage = {}
  9. function GetRequiredVersion()
  10.  
  11.         return 10057
  12. end
  13.  
  14. function OnScriptLoad(process)
  15.  
  16.  
  17.  
  18. end
  19.  
  20. function OnScriptUnload()
  21.  
  22.  
  23. end
  24.  
  25. function OnNewGame(map)
  26.  
  27.  
  28. end
  29.  
  30. function OnGameEnd(mode)
  31.  
  32.  
  33. end
  34.  
  35. function OnServerChat(player, chattype, message)
  36.  
  37.  
  38.     return 1
  39. end
  40.  
  41. function OnServerCommand(player, command)
  42.  
  43.  
  44.         return 1
  45. end
  46.  
  47. function OnTeamDecision(team)
  48.  
  49.         return team
  50. end
  51.  
  52. function OnPlayerJoin(player, team)
  53.  
  54. end
  55.  
  56. function OnPlayerLeave(player, team)
  57.  
  58.  
  59. end
  60.  
  61. function OnPlayerKill(killer, victim, mode)
  62.  
  63.         if mode == 4 then
  64.                 local bool = false
  65.                 local vhash = gethash(victim)
  66.                                
  67.                                        
  68.  
  69.                 if last_damage[vhash] then
  70.             if string.find(last_damage[vhash], "melee") then                      
  71.                 say(getname(killer) .. " killed " .. getname(victim) .. " with a Melee!")                                  
  72.             elseif last_damage[vhash] == "globals\\vehicle_collision" then
  73.                 say(getname(killer) .. " splattered " .. getname(victim) .. " across their window!")                                
  74.             elseif last_damage[vhash] == "vehicles\\banshee\\mp_fuel rod explosion" then
  75.                                 say(getname(killer) .. " ha matado a " .. getname(victim) .. " Con el moco bomba de un Banshee!")
  76.                         elseif last_damage[vhash] == "vehicles\\banshee\\banshee bolt" then
  77.                                 say(getname(killer) .. " ha atropellado a " .. getname(victim) .. " con un Banshee!")
  78.             elseif last_damage[vhash] == "vehicles\\c gun turret\\mp bolt" then
  79.                 say(getname(killer) .. " le ha metido balas por el culo a " .. getname(victim) .. " con una Torreta!")
  80.             elseif last_damage[vhash] == "vehicles\\ghost\\ghost bolt" then
  81.                 say(getname(killer) .. " ha matado a " .. getname(victim) .. " con una Ghost!")
  82.             elseif last_damage[vhash] == "vehicles\\scorpion\\bullet" then
  83.                 say(getname(killer) .. " le ha metido balas por el culo a " .. getname(victim) .. " con la Torreta de un Tanke!")
  84.                         elseif last_damage[vhash] == "vehicles\\scorpion\\shell explosion" then
  85.                 say(getname(killer) .. " le ha metido una bala de cañon a " .. getname(victim) .. "por el culo!")
  86.             elseif last_damage[vhash] == "vehicles\\warthog\\bullet" then
  87.                 say(getname(killer) .. " le ha metido balas por el culo a " .. getname(victim) .. " con una Torreta!")
  88.             elseif last_damage[vhash] == "weapons\\assault rifle\\bullet" then
  89.                 say(getname(killer) .. " ha masacrado a " .. getname(victim) .. " Con un Rifle de Asalto!")                      
  90.             elseif last_damage[vhash] == "weapons\\flamethrower\\burning" or last_damage[vhash] == "weapons\\flamethrower\\explosion" or last_damage[vhash] == "weapons\\flamethrower\\impact damage" then
  91.                 say(getname(killer) .. " ha quemado a " .. getname(victim) .. " como si fuera un Año Viejo e_e!")
  92.             elseif last_damage[vhash] == "weapons\\frag grenade\\explosion" then
  93.                 say(getname(killer) .. " ha violado " .. getname(victim) .. " con una puta Nader!")                                
  94.                         elseif last_damage[vhash] == "weapons\\needler\\detonation damage" or last_damage[vhash] == "weapons\\needler\\explosion" or last_damage[vhash] == "weapons\\needler\\impact damage" then
  95.                 say(getname(killer) .. " le ha clavado aguijones a " .. getname(victim) .. " En el culo!")                                    
  96.             elseif last_damage[vhash] == "weapons\\pistol\\bullet" then
  97.                 say(getname(killer) .. " ha masacrado a " .. getname(victim) .. " con una Pistola!")    
  98.             elseif last_damage[vhash] == "weapons\\plasma grenade\\attached" then
  99.                                 say(getname(killer) .. " ha plasmado a" .. getname(victim) .. " con una Granada de plasma!")
  100.                         elseif last_damage[vhash] == "weapons\\plasma grenade\\explosion" then
  101.                 say(getname(killer) .. " ha matado a " .. getname(victim) .. " Con una Granada de plasma!")
  102.             elseif last_damage[vhash] == "weapons\\plasma pistol\\bolt" then
  103.                 say(getname(killer) .. " killed " .. getname(victim) .. " with a Plasma Pistol!")
  104.                         elseif last_damage[vhash] == "weapons\\plasma rifle\\charged bolt" then
  105.                                 say(getname(killer) .. " killed " .. getname(victim) .. " with an EMP Blast!")
  106.             elseif last_damage[vhash] == "weapons\\plasma rifle\\bolt" then
  107.                 say(getname(killer) .. " killed " .. getname(victim) .. " with a Plasma Rifle!")
  108.             elseif last_damage[vhash] == "weapons\\plasma_cannon\\effects\\plasma_cannon_explosion" or last_damage[vhash] == "weapons\\plasma_cannon\\impact damage" then
  109.                 say(getname(killer) .. " ha violado a " .. getname(victim) .. " Con un moco Bomba!")
  110.             elseif last_damage[vhash] == "weapons\\rocket launcher\\explosion" then
  111.                             local m_player = getplayer(killer)
  112.                 local m_object = getobject(readdword(m_player, 0x34))
  113.                 if m_object then
  114.                     local obj_crouch = readbyte(m_object, 0x2A0)
  115.                                         if obj_crouch then
  116.                         if obj_crouch == 1 then
  117.                            say(getname(killer) .. " le ha metido una Rocket por el culo a" .. getname(victim) .. " con un Hog!")
  118.                         else
  119.                            say(getname(killer) .. " le ha metido una rocket por el culo a " .. getname(victim) .. " con una ROX!")
  120.                         end
  121.                                         else
  122.                                                 say(getname(killer) .. " le ha metido una rocket por el culo a " .. getname(victim) .. " con una Rocket Launcher!")
  123.                                         end
  124.                                                
  125.                                 end
  126.             elseif last_damage[vhash] == "weapons\\shotgun\\pellet" then
  127.                 say(getname(killer) .. " ha masacrado a " .. getname(victim) .. " con una Escopeta!")  
  128.                         elseif last_damage[vhash] == "weapons\\sniper rifle\\sniper bullet" then
  129.                                 say(getname(killer) .. " ha masacrado a " .. getname(victim) .. " con Un Rifle de Francotirador!")
  130.                         elseif last_damage[vhash] == "globals\\falling" or last_damage[vhash] == "globals\\distance" then
  131.                                 say(getname(killer) .. " ha tumbado a " .. getname(victim) .. " y el pobre gay ha muerto!")
  132.             elseif last_damage[vhash] == "backtap" then
  133.                                 say(getname(killer) .. " ha matado a " .. getname(victim) .. " De un golpe en la espalda :o!")
  134.             end
  135.                 end
  136.         end
  137. end
  138.  
  139. function OnKillMultiplier(player, multiplier)
  140.  
  141.  
  142. end
  143.  
  144. function OnPlayerSpawn(player, m_objId)
  145.  
  146.  
  147. end
  148.  
  149. function OnPlayerSpawnEnd(player, m_objId)
  150.  
  151.  
  152. end
  153.  
  154. function OnTeamChange(relevant, player, cur_team, dest_team)
  155.  
  156.         return 1
  157. end
  158.  
  159. function OnObjectCreation(m_objId, player, tagName)
  160.  
  161.  
  162. end
  163.  
  164. function OnObjectInteraction(player, m_objId, tagType, tagName)
  165.  
  166.         return 1
  167. end
  168.  
  169. function OnWeaponAssignment(player, m_objId, slot, tagName)
  170.  
  171.         return 0
  172. end
  173.  
  174. function OnWeaponReload(player, m_weapId)
  175.  
  176.         return 1
  177. end
  178.  
  179. function OnDamageLookup(receiver, causer, tagData, tagName)
  180.  
  181.     local rplayer = objecttoplayer(receiver)
  182.     if rplayer then
  183.         local rhash = gethash(rplayer)
  184.         last_damage[rhash] = tagName
  185.     end
  186. end
  187.  
  188. function OnVehicleEntry(relevant, player, m_vehicleId, tagName, seat)
  189.  
  190.         return 1
  191. end
  192.  
  193. function OnVehicleEject(player, forced)
  194.  
  195.         return 1
  196. end
  197.  
  198. function OnClientUpdate(player, m_objId)
  199.  
  200.  
  201. end

HaloNet.Net is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.