Jump to content

Ayuda Con CMD D:


NiKo_15

Recommended Posts

Posted

Simplemente move ambos dentro de la misma funcion.

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
addCommandHandler ( "move", 
    function ( ) 
        moveObject ( argumentos ) 
        moveObject ( argumentos ) 
    end 
) 

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

createObject 1 ( 3080, 2492.6999511719,-1667.6999511719,13.60000038147, 0, 0, 0)

createObject 2 ( 3080, 2488.6000976563,-1667.6999511719,13.60000038147, 0, 0, 0)

isMoved = false

function(player)

if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("PDz")) then

if not isMoved then

moveObject (1, 3000, 2492.6999511719,-1667.6999511719,13.60000038147, 0, 0, 0)

moveObject (2, 3000, 2488.6000976563,-1667.6999511719,13.60000038147, 0, 0, 0)

else

moveObject (1, 3000, 2492.6999511719,-1667.6999511719,10.300000190735, 0, 0, 0)

moveObject (2, 3000, 2488.6000976563,-1667.6999511719,10.300000190735, 0, 0, 0)

end

isMoved = not isMoved

end

end

addCommandHandler("prueba", 1 and 2)

Posted

Te olvidaste de definir la funcion y los objetos. Ademas de que no se puede usar numeros como variables.

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.

  • MTA Team
Posted (edited)
  
ob = createObject  ( 3080, 2492.6999511719,-1667.6999511719,13.60000038147, 0, 0, 0) 
ob1 =createObject  ( 3080, 2488.6000976563,-1667.6999511719,13.60000038147, 0, 0, 0) 
isMoved = false 
function mover (player) 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("PDz")) then 
if not isMoved then 
moveObject (ob, 3000, 2492.6999511719,-1667.6999511719,13.60000038147, 0, 0, 0) 
moveObject (ob1, 3000, 2488.6000976563,-1667.6999511719,13.60000038147, 0, 0, 0) 
else 
moveObject (ob, 3000, 2492.6999511719,-1667.6999511719,10.300000190735, 0, 0, 0) 
moveObject (ob1, 3000, 2488.6000976563,-1667.6999511719,10.300000190735, 0, 0, 0) 
end 
isMoved = not isMoved 
end 
  
end 
addCommandHandler ("mover", mover ) 
  

Proba asi ;)

EDIT: Copia denuevo..Gracias solid

Edited by Guest

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 
Posted

'source' no esta definido en ninguna parte.

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.

  • 3 months later...
  • MTA Team
Posted

de nada (:

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 
  • MTA Team
Posted

Esta predefinido cuando un evento lo trigea..EJ:

"onVehicleEnter"--Ek source de este evento, es el carro al que has entrado 

Source:

The source of this event is the vehicle that was entered.

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 
  • Recently Browsing   0 members

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