Jump to content

Como hacer Nemesis y Que Aparesca Con Un Comando


XxRomxX

Recommended Posts

  • Replies 59
  • Created
  • Last Reply

Top Posters In This Topic

unction BossNemesis ( thePlayer ) 
x,y,z = getElementPosition( thePlayer ) 
nemesi = exports [ "slothBot" ]:spawnBot ( x+1,y+1,z+0.5, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) 
exports.extra_health:setElementExtraHealth(nemesi, 150) 
setElementModel(nemesi, 107) 
end 
addCommandHandler("nemesis",BossNemesis) 
  
  
function money (theKiller) 
if (source == nemesi) then 
local kills = getElementData ( theKiller, "Zombie kills" ) 
setElementData ( theKiller, "Zombie kills", kills +25) 
givePlayerMoney( theKiller, 10000) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 

Link to comment
unction BossNemesis ( thePlayer ) 
x,y,z = getElementPosition( thePlayer ) 
nemesi = exports [ "slothBot" ]:spawnBot ( x+1,y+1,z+0.5, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) 
exports.extra_health:setElementExtraHealth(nemesi, 150) 
setElementModel(nemesi, 107) 
end 
addCommandHandler("nemesis",BossNemesis) 
  
  
function money (theKiller) 
if (source == nemesi) then 
local kills = getElementData ( theKiller, "Zombie kills" ) 
setElementData ( theKiller, "Zombie kills", kills +25) 
givePlayerMoney( theKiller, 10000) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 

te equivocaste en la linea 1

unction BossNemesis ( thePlayer ) 

te falto una "F"

Link to comment
function BossNemesis ( thePlayer ) 
    local x, y, z = getElementPosition ( thePlayer ) 
    nemesi = exports [ "slothBot" ]:spawnBot ( x+1,y+1,z+0.5, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) 
    exports.extra_health:setElementExtraHealth ( nemesi, 150 ) 
    setElementModel ( nemesi, 107 ) 
end 
addCommandHandler ( "nemesis",BossNemesis ) 
  
  
function money ( theKiller ) 
    if ( source == nemesi ) then 
        if ( getElementType ( theKiller ) == "player" ) then 
            local kills = tonumber ( getElementData ( theKiller, "Zombie kills" ) ) or 0 
            setElementData ( theKiller, "Zombie kills", ( kills + 25 ) ) 
            givePlayerMoney ( theKiller, 10000 ) 
        end 
    end 
end 
addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted", getRootElement(), money ) 

Link to comment
Me Sigue Saliendo ese Error ._.
function BossNemesis ( thePlayer ) 
x,y,z = getElementPosition( thePlayer ) 
nemesi = exports [ "slothBot" ]:spawnBot ( x+1,y+1,z+0.5, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) 
exports.extra_health:setElementExtraHealth(nemesi, 150) 
setElementModel(nemesi, 107) 
end 
addCommandHandler("nemesis",BossNemesis) 
  
  
function money (theKiller) 
if (source == nemesi) then 
local kills = getElementData ( theKiller, "Zombie kills" ) 
setElementData ( theKiller, "Zombie kills", kills + 25) 
givePlayerMoney( theKiller, 10000) 
outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFHa Matado Ha Nemesis :3 , Se Cree Muy Prah!",getRootElement(), 255, 255, 255, true ) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 

me sale el error pero me sirve me da las kills extra

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...