Jump to content

[Ayuda] mensaje al pasar por marker


NIKO_19997

Recommended Posts

hola, como dice el titulo, como puedo hacer que al pasar por un marker me salga un mensaje?....esto es lo que tengo pero nose como tendría que ir el outputChatBox :

function marker() 
local markerr = createMarker ( 2056.27, 1532.05, 10.194, 0, 255, 255) 
end 
addEventHandler ( "onResourceStart", marker ) 

el mensaje:

outputChatBox ( "bla bla y mas bla",thePlayer, 255, 0, 0, false) 

Saludos y espero que me puedan ayudar ;)

Link to comment
  • MTA Team
  
markerr = createMarker ( 2056.27, 1532.05, 10.194, 0, 255, 255) 
function golpe( hitElement, matchingDimension ) 
    if getElementType( hitElement ) == "player" or getElementType( hitElement ) == "vehicle"  then 
    outputChatBox( "bla bla y mas bla", hitElement, 255, 255, 0 )  
end 
end 
addEventHandler( "onMarkerHit", markerr, golpe ) 

Link to comment
  
markerr = createMarker ( 2056.27, 1532.05, 10.194, 0, 255, 255) 
function golpe( hitElement, matchingDimension ) 
    if getElementType( hitElement ) == "player" or getElementType( hitElement ) == "vehicle"  then 
    outputChatBox( "bla bla y mas bla", hitElement, 255, 255, 0 )  
end 
end 
addEventHandler( "onMarkerHit", markerr, golpe ) 

No le puedes mostrar un mensaje a un vehículo.

  
marker = createMarker ( 2056.27, 1532.05, 10.194, 'checkpoint', 4, 0, 255, 255) 
function golpe( hitElement, matchingDimension ) 
    local hitPlayer = getElementType( hitElement ) == 'player' and hitElement or getElementType( hitElement ) == 'vehicle' and getVehicleController( hitElement ) 
     if hitPlayer then 
       outputChatBox( "bla bla y mas bla", hitPlayer, 255, 255, 0 )  
     end 
end 
addEventHandler( "onMarkerHit", marker, golpe ) 

Edited by Guest
Link to comment
  • Recently Browsing   0 members

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