Jump to content

Problema con "onClientColShapeHit"


Narutimmy

Recommended Posts

Posted

Hola les vengo con un problema... en si funciona todo bien creo pero me da errores en la consola y quiero eliminarlos. que esta mal?

function Zonaa1 (pHitElement) 
local theVehicle = getPedOccupiedVehicle ( thePlayer ) 
if getElementType( pHitElement ) == 'player' then 
if pHitElement == localPlayer then 
setElementData(pHitElement,"Zona",1) 
end 
elseif pHitElement == theVehicle then 
setElementData(pHitElement,"Zona",1) 
end 
end 
addEventHandler('onClientColShapeHit', Zona1, Zonaa1) 

da error en el "getPedOccupiedVehicle " y mucho...

10645095_791246604260476_8579213620523812928_n.jpg?oh=8706af58c44890a9b586b36138c6f479&oe=54977AFD

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted
function Zonaa1 ( pHitElement ) 
    if ( getElementType ( pHitElement ) == 'player' and pHitElement == localPlayer ) then 
        setElementData ( pHitElement, "Zona", 1 ) 
    end 
end 
addEventHandler ( 'onClientColShapeHit', Zona1, Zonaa1 ) 

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
function Zonaa1 ( pHitElement ) 
    if ( getElementType ( pHitElement ) == 'player' and pHitElement == localPlayer ) then 
        setElementData ( pHitElement, "Zona", 1 ) 
    end 
end 
addEventHandler ( 'onClientColShapeHit', Zona1, Zonaa1 ) 

el Problema es que tenia algo similar a eso, pero si entrabas en un auto en ocaciones no te dectaba que entrabas.

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

Con eso deberia funcionar incluso con un vehiculo.

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