Jump to content

[Duda] Por que pasa esto?


Recommended Posts

Hola, tengo un problema que no se por que pasa y no se como corregir asi que vine a preguntar aqui, bueno el problema es que

al caer de algo por lo menos 10 centimetros de altura o mas te mata te baja la vida de repente osea toda pense que el problema estaria en algo del boss pero quiero saber como corregirlo aqui lo que pienso que es el problema:

function bot ( attacker ) 
  if attacker == slothbot1 then -- 
             killPed ( source, attacker ) 
         end 
end 

Link to comment

me pasaba creo lo sacastes de uno de los temas donde pregunte como hacer para que el slotbot mate de 1, y tenia ese problema que mataba 1 pero si te caes o algo pro el estilo mueres... el codigo era asi:

Lo tienes asi:

function bot ( attacker ) 
  if attacker == slothbot1 then -- 
             killPed ( source, attacker ) 
         end 
end 

pero es asi:

---Matar 1 
function bot ( attacker ) 
 if attacker == slothbot1 then -- 
  if ( getElementType ( attacker ) == "ped" ) then 
   killPed ( source, attacker ) 
   
  end 
 end 
end 
addEventHandler("onPlayerDamage", getRootElement(), bot) 
  

Link to comment
me pasaba creo lo sacastes de uno de los temas donde pregunte como hacer para que el slotbot mate de 1, y tenia ese problema que mataba 1 pero si te caes o algo pro el estilo mueres... el codigo era asi:

Lo tienes asi:

function bot ( attacker ) 
  if attacker == slothbot1 then -- 
             killPed ( source, attacker ) 
         end 
end 

pero es asi:

---Matar 1 
function bot ( attacker ) 
 if attacker == slothbot1 then -- 
  if ( getElementType ( attacker ) == "ped" ) then 
   killPed ( source, attacker ) 
   
  end 
 end 
end 
addEventHandler("onPlayerDamage", getRootElement(), bot) 
  

Ohhh gracias y si es que tenia mitad del script que habia hecho yo pero me faltaba aun y no sabia como aserlo y un amigo me dio uno y no se si era ese pero gracias

Link to comment
  • Recently Browsing   0 members

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