Jump to content

Armas


Recommended Posts

Posted
function fire() 
    for key, value in pairs( getElementsByType("player")) do 
        toggleControl ( value , "fire", true ) 
    end 
end 
  
addCommandHandler( "fire", fire) 

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted

El no dijo que queria desactivarlas para todos, sino para el que usa el comando.

function fire ( thePlayer ) 
    toggleControl ( thePlayer, "fire", false ) 
end 
addCommandHandler ( "fire", fire ) 

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
El no dijo que queria desactivarlas para todos, sino para el que usa el comando.
function fire ( thePlayer ) 
    toggleControl ( thePlayer, "fire", false ) 
end 
addCommandHandler ( "fire", fire ) 

Si lo dije, Lo que paso fue que entendiste mal, lo que queria decir era que si yo coloco el comando, se me balla el fire a mi y a todos...

Posted
function fire ( ) 
    for key, value in ipairs ( getElementsByType ( "player" ) ) do 
        toggleControl ( value, "fire", false ) 
    end 
end 
addCommandHandler ( "fire", fire ) 

Usa eso entonces, pero igual no desactivara solo para la que esten usando, ya que para eso necesitas algo mas sofisticado.

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...