Jump to content

Вопрос


Recommended Posts

Здравствуйте пользователи форума, я начал изучать скриптинг не давно так что прошу у вас помощи, мне хотелось узнать как сделать так чтобы при входе в машину на водительское место выводился текст, и при это не выводилось кто сел на пассажирское

  
  
veh = createVehicle( 431,  1481.7407226563,-1723.8365478516,12.956642150879, 0,0, 90) 
  
addEventHandler("onVehicleEnter", getRootElement(),  
    function(source) 
    if veh == getPedOccupiedVehicle(source) then 
        outputChatBox ( "Vehicle enter!", source, 255, 0, 0, true ) 
    end 
end) 
  

getPedOccupiedVehicleSeat я так понял это отвечает за получение места который сидит игрок, вот не понимаю как сделать чтобы сообщение выводилось только водителю помогите прошу

Заранее спасибо :roll:

Link to comment
function(source, seat) 
            if seat == 0 then 
                outputChatBox ( "You do not have a Vehicle!", source, 255, 0, 0, true ) 
            else 
                outputChatBox ( "you Seat", source, 255, 0, 0, true ) 
            end 
    end) 

Спасибо решил сам)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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