ELmarcoS. Posted September 15, 2012 Share Posted September 15, 2012 function rewardOnWasted ( killer ) givePlayerMoney ( killer, 55 ) end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), rewardOnWasted ) function rewardOnWasted ( player ) givePlayerMoney ( player, 1500 ) end addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", getRootElement(), rewardOnWasted ) function messageOnKill() messageOnBotWasted= outputChatBox (getPlayerName(source) .. " #ff0000killed Nemesis, well done!, he has got a reward: $1500!") end addEventHandler ("onBotWasted", getRootElement(), messageOnKill) Da el dinero y todo pero, no envia el mensaje, ¿qué está mal? Link to comment
Castillo Posted September 15, 2012 Share Posted September 15, 2012 "source" de: "onBotWasted" es el bot que murio. function rewardOnWasted ( killer ) givePlayerMoney ( killer, 55 ) end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), rewardOnWasted ) function messageOnKill ( killer ) givePlayerMoney ( killer, 1500 ) outputChatBox ( getPlayerName ( killer ) .. " #ff0000killed Nemesis, well done!, he has got a reward: $1500!" ) end addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", getRootElement(), messageOnKill ) Link to comment
Recommended Posts