Jump to content

Que está mal en esto?


ELmarcoS.

Recommended Posts

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

"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
  • Recently Browsing   0 members

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