emadler Posted January 3, 2018 Share Posted January 3, 2018 (edited) Hello everyone, how to do for zombie killed the player in killmessage, example zombie killed the player by gun or fist something thanks 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 January 3, 2018 by emadler Link to comment
KaMi Posted January 3, 2018 Share Posted January 3, 2018 https://community.multitheftauto.com/index.php?p=resources&s=details&id=14390 Link to comment
emadler Posted January 3, 2018 Author Share Posted January 3, 2018 10 minutes ago, <~KaMiKaZe~> said: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14390 Thanks, but it's not downloading Link to comment
TorNix~|nR Posted January 4, 2018 Share Posted January 4, 2018 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 Link to comment
emadler Posted January 6, 2018 Author Share Posted January 6, 2018 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now