ALKiNg[Q.4]SLOOM Posted October 21, 2013 Share Posted October 21, 2013 طلب فنكشن مقدر انزل من السيارهه ف منطقه محدده مثلا مسوي ماب اذا دخلت فيه السياره ما يقدر ينزل منها او اذا نزل يموت مثل الريس Link to comment
فاّرس Posted October 21, 2013 Share Posted October 21, 2013 سوي ماركر او كول شيب جيب الاحداثيات ذذ الماركر اسهل لك , createMarker onVehicleStartExit isElementWithinMarker cancelEvent Link to comment
ALKiNg[Q.4]SLOOM Posted October 21, 2013 Author Share Posted October 21, 2013 onVehicleStartExit ذا ما فهمت له Link to comment
فاّرس Posted October 21, 2013 Share Posted October 21, 2013 يعني اذا حاول يخرج من السياره Link to comment
ALKiNg[Q.4]SLOOM Posted October 21, 2013 Author Share Posted October 21, 2013 local theMarker = createMarker ( x + 3, y + 2, z, "c", 1.5, 155, 255, 0, 170 ) local ( isPedDead ( thePlayer ) ) then eles cancelEvent () addEventHandler ( "onVehicleStartExit", getRootElement(), exitVehicle ) if isElementWithinMarker(thePlayer, c) then كذا صح Link to comment
Stranger Posted October 21, 2013 Share Posted October 21, 2013 local marker = createMarker (x,y,z, "cylinder", 5, 255, 0, 0) addEventHandler("onVehicleStartExit", root, function (player) if isElementWithinMarker(player, marker) then cancelEvent () end end ) 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