Narutimmy Posted September 14, 2014 Posted September 14, 2014 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... mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Castillo Posted September 14, 2014 Posted September 14, 2014 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. Education is the most powerful weapon which you can use to change the world.
Narutimmy Posted September 14, 2014 Author Posted September 14, 2014 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 Ts3: thezombiworld.com:7777
Castillo Posted September 14, 2014 Posted September 14, 2014 Con eso deberia funcionar incluso con un vehiculo. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts