Jump to content

[Ayuda] Mochila


Narutimmy

Recommended Posts

Posted

hola... bueno quiero saber como poner el paracaidas en la espalda de cada user, pero no lo puedan usar y no salga en inventario ni nda, osea solo quiero que de vista como si fuera mochila...

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

'onClientPlayerWeaponFire' no puede ser cancelado y tus métodos no cumplen con lo que @Naturimmy busca:

hola... bueno quiero saber como poner el paracaidas en la espalda de cada user, pero no lo puedan usar y no salga en inventario ni nda, osea solo quiero que de vista como si fuera mochila...

Quiere que no salga en el inventario, ha de referirse en el HUD, si lo tiene como arma, si aparecerá.

Developer @ MYVAL

Posted
@El_Zorro no por ser pesado ni nada, pero al menos leiste lo que respondiste??

@Naturimmy usa:

createObject 
attachElements 

Algo asi? :

function Backpack () 
local mochila = createObject ( 371, x, y, z, 0, 0, 0 ) 
attachElements ( mochila, source, 0, 0, 5 ) 
end 
addEventHandler ( "onPlayerSpawn", root, Backpack ) 

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted
Intenta calcularlo a fallo y error, también recuerda preocuparte por la rotación del Ped.

Probe el scrip asi

function Backpack () 
local x, y, z = getElementPosition ( source ) 
local mochila = createObject ( 371, x, y, z, 0, 0, 0 ) 
attachElements ( mochila, source, 0, 0, 5 ) 
end 
addEventHandler ( "onResourceStart", getRootElement(), Backpack ) 

lo inicio pero no pasa nada, no aparece la mochila ni mal puesta... y el debug no muestra nada, y lo puse en server

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted
Error mio, cambia el evento, en ese 'source' no es un jugador.

que puedo usar en lugar de source?

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted
Cambia 'onResourceStart' por 'onPlayerSpawn'.

Ahora si aparece... como 10 metros en el cielo pero aparece, como uso el scrip que me distes para saber donde va?

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

No lo se, jamas lo use, lee la descripción quizá te explique.

Usage:

- To start the editor type /startOffEdit

elementType: The following element types are supported: object, vehicle, ped

modelId: The origin object

dummyId: Model Id of the dummy object (optional, default: 1337)

- W, A, S, D to move the camera (as in the editor)

- Arrow keys to move the dummy object

- Page up/down or plus/minus to move the object at the Z-axe

Developer @ MYVAL

Posted
No lo se, jamas lo use, lee la descripción quizá te explique.
Usage:

- To start the editor type /startOffEdit

elementType: The following element types are supported: object, vehicle, ped

modelId: The origin object

dummyId: Model Id of the dummy object (optional, default: 1337)

- W, A, S, D to move the camera (as in the editor)

- Arrow keys to move the dummy object

- Page up/down or plus/minus to move the object at the Z-axe

Tengo un problema :/ .... ya puse bien todo... pero si por ejemplo el personaje se agacha ola mochila se queda flotando

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

  • Recently Browsing   0 members

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