Jump to content

[Ayuda] Money al Matar un SlothBot


Narutimmy

Recommended Posts

addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted", root, 
function( theKiller) 
    exports.exp_system:addPlayerEXP ( theKiller, 50 ) 
    givePlayerMoney ( theKiller, 1000 ) 
    exports.extra_health:setElementExtraHealth ( theKiller, 80000 ) 
    local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour 
    local chatterName = getPlayerName ( theKiller ) 
    outputChatBox ( chatterName.." #FF0000ha matado al nemesis", getRootElement(), r, g, b, true ) 
end 
) 

si te sirve bien si no tambien bien xD

Link to comment
function messageOnKill ( killer ) 
    givePlayerMoney ( killer, 1500 )------ Aquí editas el dinero que quieres 
    outputChatBox ( getPlayerName ( killer ) .. " killed Nemesis, well done!, he has got a reward: $1500!" ) 
end 
addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted", getRootElement(), messageOnKill ) 

Ese es el que yo tengo, cuando lo matas te da plata y muestra un mensaje.

Link to comment
addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted", root, 
function( theKiller) 
    exports.exp_system:addPlayerEXP ( theKiller, 50 ) 
    givePlayerMoney ( theKiller, 1000 ) 
    exports.extra_health:setElementExtraHealth ( theKiller, 80000 ) 
    local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour 
    local chatterName = getPlayerName ( theKiller ) 
    outputChatBox ( chatterName.." #FF0000ha matado al nemesis", getRootElement(), r, g, b, true ) 
end 
) 

si te sirve bien si no tambien bien xD

Use este Muchas Gracias :B, Funciona de maravilla, solo faltaria que al morir deje Un Armas tirada y se pueda Recoger n_n

Link to comment
  • Recently Browsing   0 members

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