Jump to content

Zombie killed Player in killmessage


emadler

Recommended Posts

Hello everyone, how to do for zombie killed the player in killmessage, 
example zombie killed the player by gun or fist something thanks

mta-screen_2018-01-03_00-33-22.png

here code by doubt

server.lua

Quote

addEvent("onZombieWasted", true)
addEventHandler("onZombieWasted", root,
function(killer)
local killerName = getPlayerName(killer)
local weapon = getPedWeapon(killer)
local r, g, b = getPlayerNametagColor(killer)
exports.killmessages:outputMessage({killerName, {"padding", width = 3}, {"icon", id = weapon or 0}, {"padding", width = 3},{"color", r = 162, g = 2, b = 2}, "Zombie"}, getRootElement(), r, g, b)
end
)


Edited by emadler
Link to comment
On 4/1/2018 at 14:03, TorNix~|nR said:

You mean when a zombie kill a player or a player kill a zombie?

because your photo shows that when a Zombie kill a player

 

I said that when a zombie kills a player

 

because I thought some of you do not understand then a clear image

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...