Jump to content

Variables


Plate

Recommended Posts

Posted

Hola quisiera saber como hacer para restartear una variable

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

La volves a definir con el valor inicial.

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

Se puede hacer para cuando un bot muera?

zombiesMatados = 0 
function restartear ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
onZomieWasted = 0 
   end 
end 
addEventHandler( "onBotWasted",getRootElement(),restartear ) 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Queres decir esto:

zombiesMatados = 0 
  
function restartear ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
        zombiesMatados = 0 
   end 
end 
addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted",getRootElement(), restartear ) 

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

Funciona muchas gracias solid pero tengo una duda como puedo hacer para que se destruya un blip cuando un bot muere

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
destroyElement 

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

Ok muchas gracias denuevo una ultima duda como hago para que en el colshape no tenga una sola posicion z tenga todas

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
function destroyblip() 
destroyElement(myblip) 
end 
addEventHandler("onBotWasted",getRootElement(),destroyblip) 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

  • Recently Browsing   0 members

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