Jump to content

¿Como ago esto?


andrex123

Recommended Posts

function onEnter(thePlayer) -- Cuando entra a un vehiculo. 
     outputChatBox("Hola ".. getPlayerName(thePlayer) .."!",thePlayer,0,255,0) -- Le enviamos un mensaje al jugador. 
end 
addEventHandler("onVehicleEnter",root,onEnter) -- Agregamos el evento para cuando un jugador entra a un vehiculo. 

Link to comment
function onEnter(thePlayer) -- Cuando entra a un vehiculo.  
     if (getElementModel(source) == 407) then -- Si el modelo del vehiculo es del camion de Bomberos.. 
           outputChatBox("Hola ".. getPlayerName(thePlayer) .."!",thePlayer,0,255,0) -- Le enviamos un mensaje al jugador. 
     end 
end 
addEventHandler("onVehicleEnter",root,onEnter) -- Agregamos el evento para cuando un jugador entra a un vehiculo. 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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