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

no lo e revisado , supongo que funcionara , cuando uses el comando el nemesis aparecera en tu posicion

            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 ) 
                   end 
      addCommandHandler("nemesis",BossNemesis) 
         
  
function money (theKiller) 
if (source == nemesi) then 
givePlayerMoney(theKiller,math.random(20000)) 
outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFHa Matado Ha Nemesis :3 , Se Cree Muy Prah!",getRootElement(), 255, 255, 255, true ) 
setTimer( BossNemesis , 16000, 1) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 
    

Edited by Guest
Link to comment
no lo e revisado , supongo que funcionara , cuando uses el comando el nemesis aparecera en tu posicion
            function BossNemesis ( )   
                  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 ) 
                   end 
      addCommandHandler("nemesis",BossNemesis) 
         
  
function money (theKiller) 
if (source == nemesi) then 
givePlayerMoney(theKiller,math.random(20000)) 
outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFHa Matado Ha Nemesis :3 , Se Cree Muy Prah!",getRootElement(), 255, 255, 255, true ) 
setTimer( BossNemesis , 16000, 1) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 
    

te falto thePlayer en la primera funcion(function BossNemesis(thePlayer) es mejor asi

[lua]            function BossNemesis ( )   
                  x,y,z = getElementPosition( source ) 
                   nemesi = exports [ "slothBot" ]:spawnBot ( x+1,y+1,z+0.5, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) 
                   end 
      addCommandHandler("nemesis",BossNemesis) 

Link to comment
  • MTA Team

Hola rom xD para que te de dinero ya esta..Para los kills ponlo asi:

           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 ) 
                   end 
      addCommandHandler("nemesis",BossNemesis) 
        
  
function money (theKiller) 
if (source == nemesi) then 
local kills = getElementData ( theKiller, "Zombie kills" ) 
setElementData ( theKiller, "Zombie kills", tonumber(kills)+25 
givePlayerMoney(theKiller,math.random(20000)) 
outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFHa Matado Ha Nemesis :3 , Se Cree Muy Prah!",getRootElement(), 255, 255, 255, true ) 
setTimer( BossNemesis , 16000, 1) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 
    

Fijate si anda lo postie del cel xD

Link to comment

el math.random esta mal usado hay y falto cerrar un parentesis

           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 ) 
                   end 
      addCommandHandler("nemesis",BossNemesis) 
        
  
function money (theKiller) 
if (source == nemesi) then 
local kills = getElementData ( theKiller, "Zombie kills" ) 
setElementData ( theKiller, "Zombie kills", tonumber(kills)+25) 
givePlayerMoney(theKiller, math.random(10000, 20000)) 
outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFHa Matado Ha Nemesis :3 , Se Cree Muy Prah!",getRootElement(), 255, 255, 255, true ) 
setTimer( BossNemesis , 16000, 1) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...