Jump to content

que ahi de malo aka?


andrex123

Recommended Posts

Posted
  
ptaxi = createObject ( 968, 1811.3994140625, -1886.7998046875, 13.10000038147, 0, 270, 90)} 
  
function ptaxi () 
        setElementRotation ( ptaxi, 0, 0, 90) 
        setTimer (setElementRotation, 8000, 1, 0, 270, 90) 
end 
  
addCommandHandler ("ptaxi", ptaxi) 

la idea es que cuendo el jugador escriba /ptaxi se abra un porton de los taxista y luego se cierre :/

Posted
porton = createObject ( 968, 1811.3994140625, -1886.7998046875, 13.10000038147, 0, 270, 90) 
  
function ptaxi () 
    local rx, ry, rz = getElementRotation(porton) 
    if (math.floor(ry) == 270 and math.floor(rz) == 90) then 
        moveObject(porton, 3000, 1811.3994140625, -1886.7998046875, 13.10000038147, 0, 90, 0) 
        setTimer(moveObject, 7000, 1, porton, 3000, 1811.3994140625, -1886.7998046875, 13.10000038147, 0, -90, 0) 
    end 
end 
addCommandHandler ("ptaxi", ptaxi) 

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 es magia :P.

Compara los scripts y fijate.

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 titulo, "Que ahi de malo aka?" seria "Que hay de malo acá?".

Ingame name: Otto

State: Inactive

Web designer. Playing MTA:SA since 2008.

Posted
pero que estaba mal? explicame detalladamente :D

Primero: Habias llamado tu funcion igual que la puerta, nunca iva a funcionar.

Segundo: No estabas moviendo la puerta, si no cambiandole la rotacion y la posicion (y ensima mal).

Tercero: Tenias esto "}" al final de createObject, eso no deberia estar ahi.

P.D: Soy muy malo explicando cosas :P.

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

Te mejore el script un poco, asi la puerta no se bugeaba al intentar abrirla cuando ya lo esta.

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