The.Pheonix Posted May 29, 2016 Share Posted May 29, 2016 Yo, can someone tell me why this not working ? addEventHandler("onPedWasted", getRootElement(), function (ammo, killer) local killerName = getPlayerName(killer) local weapon = getPedWeapon(killer) local wr, wg, wb = getPlayerNametagColor(killer) if getElementData ( ped, "BotTeam" ) == "Zombies" then exports.killmessages:outputMessage ( {killerName,{"padding",width=3},{"icon",id=weapon or 0},{"padding",width=3},{"color",r=162,g=2,b=2},"Zombie"},getRootElement(),wr,wg,wb ) exports.GEOcommands:giveMoney(killer,100) end end) Link to comment
Moderators IIYAMA Posted May 29, 2016 Moderators Share Posted May 29, 2016 >ped< is just a predefined variable you made up by yourself. (>ped< it is not a predefined variable) Use >source< instead. Pls, don't read this page sloppy: https://wiki.multitheftauto.com/wiki/OnPedWasted Link to comment
The.Pheonix Posted May 29, 2016 Author Share Posted May 29, 2016 >ped< is just a predefined variable you made up by yourself. (>ped< it is not a predefined variable)Use >source< instead. ty now works 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