shwaeki Posted November 5, 2013 Share Posted November 5, 2013 (edited) السلام عليكم ممكن اكود 1- كود بوابة 2-كود ماركر انتقالات 3- ماركر دم + درع بس كلهم يكوني يا جروب يا مود العقرب Edited May 24, 2015 by Guest Link to comment
Stranger Posted November 5, 2013 Share Posted November 5, 2013 البوابه local Object = createObject ( ID, x, y, z, rx, ry, rz ) local Marker = createMarker (x, y, z, "cylinder", size, 0, 0, 0, 80 ) function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then if getElementData( player ,'Group') == 'اسم القروب' then if not Open then moveObject ( Object, 1500, x, y, z ) else moveObject ( Object, 1500, x, y, z ) end Open = not Open else outputChatBox ( "* You Are Not in [اسم القروب]", player, 200, 0, 0, true ) end end end addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "tab", "down", OpenObject ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "tab", "down", OpenObject ) end ) ماركر دم ودرع Even 'onMarkerHit' createMarker getElementType getElementData setElementHealth setPedArmor الانتقالات Event 'onPlayerWasted' getElementData setElementPosition or spawnPlayer Link to comment
shwaeki Posted November 5, 2013 Author Share Posted November 5, 2013 (rx, ry, rz) اخي هدول احداثيات ايش Link to comment
iMr.Dawix~# Posted November 5, 2013 Share Posted November 5, 2013 (rx, ry, rz) اخي هدول احداثيات ايش احداثيات الروتيشن دوران الأوبجكت rotation rx: A floating point number representing the rotation about the X axis in degrees. ry: A floating point number representing the rotation about the Y axis in degrees. rz: A floating point number representing the rotation about the Z axis in degrees. Link to comment
shwaeki Posted November 5, 2013 Author Share Posted November 5, 2013 تسلم بس كيف اخلية يفتح لما اقرب من الباب مو اعص زر Link to comment
Stranger Posted November 5, 2013 Share Posted November 5, 2013 local Object = createObject ( ID, x, y, z, rx, ry, rz ) local Marker = createMarker (x, y, z, "cylinder", size, 0, 0, 0, 80 ) function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then if getElementData( player ,'Group') == 'اسم القروب' then if not Open then moveObject ( Object, 1500, x, y, z ) else moveObject ( Object, 1500, x, y, z ) end Open = not Open else outputChatBox ( "* You Are Not in [اسم القروب]", player, 200, 0, 0, true ) end end end addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "tab", "down", OpenObject ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "tab", "down", OpenObject ) end ) زر تاب Link to comment
فاّرس Posted November 5, 2013 Share Posted November 5, 2013 يقول لما اقرب -__- ما قال تاب getDistanceBetweenPoints3D Link to comment
shwaeki Posted November 5, 2013 Author Share Posted November 5, 2013 يب ابية لما ادخل الماركر يفتح الباب Link to comment
فاّرس Posted November 5, 2013 Share Posted November 5, 2013 يب ابية لما ادخل الماركر يفتح الباب الحين تقول تبي لو قربت منها والحين ماركر عندك صعوبات باللغه؟ بدل البيند كي وعدل شويات اشتغل شوي Link to comment
shwaeki Posted November 5, 2013 Author Share Posted November 5, 2013 (edited) اخي البوابة تفتح لما تدخل الماركر يعني لما ادخل ماركر البوابة تفتح Edited November 5, 2013 by Guest Link to comment
Stranger Posted November 5, 2013 Share Posted November 5, 2013 Event 'onMarkerHit' createObject getElementData moveObject Event 'onMarkerLeave' moveObject 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