x1ELSHeMY Posted July 19, 2016 Share Posted July 19, 2016 function car ( player,vehicle ) if ( getElementType( player )== "player" ) then if ( getElementType( vehicle )== "vehicle" ) then outputChatBox(" Welcome in the Car " , source ) end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), car ) ايه الخطأ هنا ؟ Link to comment
YourMind Posted July 19, 2016 Share Posted July 19, 2016 function car ( player ) if ( getElementType( player )== "player" ) then if ( getElementType( source )== "vehicle" ) then outputChatBox(" Welcome in the Car " , player ) end end end addEventHandler ( "onVehicleEnter", getRootElement(), car ) Link to comment
x1ELSHeMY Posted July 19, 2016 Author Share Posted July 19, 2016 function car ( player ) if ( getElementType( player )== "player" ) then if ( getElementType( source )== "vehicle" ) then outputChatBox(" Welcome in the Car " , player ) end end end addEventHandler ( "onVehicleEnter", getRootElement(), car ) معلش ليه شلت Vehicle وحطيت سورس ؟ Link to comment
N3xT Posted July 19, 2016 Share Posted July 19, 2016 لأنه لو فتحت الويكي وشفت السورس حق الحدث ذا راح يقولك كذا The source of this event is the vehicle that was entered. يعني السورس فـ هذا الحدث هو السيارة Link to comment
Jupi Posted July 19, 2016 Share Posted July 19, 2016 ما اظن فيه داعي للتحققات حقت getElementType Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now