Jump to content

Vida 2


Plate

Recommended Posts

Posted

hola como se podria hacer para que arriba de la cabeza de un slothbot le aparesca la vida que tiene en una barrita se puede hacer eso?

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Si, con las funciones de DirectX podes hacerlo.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

solid esto esta bien?

function wep ( thePlayer ) 
local weplvl = exports [ "exp_system" ]:getPlayerLevel ( thePlayer ) 
                if weplvl>= 20 then  
giveWeapon ( thePlayer, 31, 99999 ) 
end 
end 
addEventHandler("onResourceStart",getRootElement(),wep) 

es para qe le de un arma a el player cuando el sea level 20

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Esta todo mal.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Ese evento se usa para cuando un recurso inicia, vos tendrias que usar el evento para cuando el evento de mi sistema de niveles que es:

"onPlayerChangeLevel".

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

no me functiono solid

function wep ( thePlayer ) 
local weplvl = exports [ "exp_system" ]:getPlayerLevel ( thePlayer ) 
                if weplvl>= 3 then 
giveWeapon ( thePlayer, 24, 30000 ) 
end 
end 
addEventHandler("onPlayerChangeLevel",getRootElement(),wep) 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

1: Cuando usas un evento creado por un script, necesitas usar addEvent tambien.

2: El argumento del jugador de ese evento no es 'thePlayer', es 'source' ( borrra 'thePlayer' del nombre de la funcion y remplazalo en las otras funciones con 'source' ).

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
function wep ( source ) 
local weplvl = exports [ "exp_system" ]:getPlayerLevel ( source ) 
                if weplvl>= 1 then 
giveWeapon ( source, 22, 30000 ) 
end 
end 
addEvent("onPlayerChangeLevel",true) 
addEventHandler("onPlayerChangeLevel",getRootElement(),wep) 

attempt to compare number whit bolean 
@server.lua.bak:179: Bad argument @ "getPlayerLevel" [expected player element at argument 1, got 3] 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
1: Cuando usas un evento creado por un script, necesitas usar addEvent tambien.

2: El argumento del jugador de ese evento no es 'thePlayer', es 'source' ( borrra 'thePlayer' del nombre de la funcion y remplazalo en las otras funciones con 'source' ).

Volve a leer lo que dije.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

pero si use al addEvent y tambien cambie el thePlayer por source ¬¬

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

mas o menos pero no quiero que diga zombie y tampoco quiero que se le va a los zombies solamente al slothbot y a nada mas en ese script se le ve la vida a los autos a los zombies y dice zombies arriba eso es lo que no me gusta

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
borra 'thePlayer' del nombre de la funcion y remplazalo en las otras funciones con 'source'

No hiciste todo, yo te dije que borrases del nombre de la funcion, no que lo remplazes por 'source', solo en las otras funciones tenias que remplazar.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Muchas gracias y se podria modificar el recurso que me paso zeus y hacerlo para el slothbot? por que tiene una parte en luaq y no se nada de luaq

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

LuaQ = un script Lua compilado, no se puede editar.

P.D: De nada.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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