aL.Kfo Posted July 19, 2015 Share Posted July 19, 2015 (edited) بسم الله الرحمن الرحيم .. السلام عليكم ورحمة الله اخباركم جميعا من المبرمجين اللي المبتدئين ان شاءالله ططيبين وككل عام وانتم بخير والله يعودها علينا وعليكم بخير وسرور ومحبة ندخل بالموضوع انا عندي كم كود واحد رسباون وواحد سيارات المهم كود يشتغل على قروب سستم وكود يشتغل على تيم انا ابيها اعدلها كلها واخليها لتشتغل لاسل بدال تيم او قروب اذا تحتاجون تشوفو الككود اطرحة مو مشكلةة وش اسوي ووش ابدل مع اني جربت شويت طرق مازانت ويعطيككم العافيةة Edited August 2, 2015 by Guest Link to comment
aL.Kfo Posted July 19, 2015 Author Share Posted July 19, 2015 مثلا ذا ابي اخليه لقروب اسل local Manstermarker = createMarker(825.1142578125, -2162.4404296875, 14.957813262939-1, "cylinder", 1.5, 251, 96, 3, 153) addEventHandler("onMarkerHit", Manstermarker, function (player) if getElementType(player) == "player" then if ( isPedInVehicle(player) ) then return end if ( getElementData(MarkerHit, "Group") ~= "[sWAT]" ) then outputChatBox("mr ", player, 255, 255, 0, true) else setElementInterior(player, 3) setElementPosition(player, 238.6044921875, 142.86328125, 1003.0234375) end end end) local Manstermarker2 = createMarker(238.65625, 139.2451171875, 1003.0234375-1, "cylinder", 1.5, 251, 96, 3, 153) setElementInterior(Manstermarker2, 3) addEventHandler("onMarkerHit", Manstermarker2, function (MarkerHit) if getElementType(MarkerHit) == "player" then if ( getElementData(MarkerHit, "Group") ~= "[sWAT]" ) then outputChatBox("mr", MarkerHit, 255, 255, 0, true) else setElementInterior(MarkerHit, 0) setElementPosition(MarkerHit, 825.3173828125, -2159.85546875, 14.516511917114) end end end) Link to comment
i S6O Posted July 19, 2015 Share Posted July 19, 2015 (edited) يعني تبي مايدخل الماركر الا الي في قروب اسل + وش القروبات الي تبيها Edited July 19, 2015 by Guest Link to comment
aL.Kfo Posted July 19, 2015 Author Share Posted July 19, 2015 يعني تبي مايدخل الماركر الا الي في قروب اسل اي Link to comment
i S6O Posted July 19, 2015 Share Posted July 19, 2015 Edit Done : local Manstermarker = createMarker( 825.1142578125, -2162.4404296875, 14.957813262939-1, "cylinder", 1.5, 251, 96, 3, 153 ) local Manstermarker2 = createMarker( 238.65625, 139.2451171875, 1003.0234375-1, "cylinder", 1.5, 251, 96, 3, 153 ) setElementInterior ( Manstermarker2, 3 ) addEventHandler ( 'onMarkerHit', Manstermarker, function (player) if getElementType(player) == "player" then if ( isPedInVehicle(player) ) then return end local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then outputChatBox("mr ", player, 255, 255, 0, true) else setElementInterior(player, 3) setElementPosition(player, 238.6044921875, 142.86328125, 1003.0234375) end end end ) addEventHandler ( 'onMarkerHit', Manstermarker2, function (player) if getElementType(player) == "player" then local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then outputChatBox("mr", player, 255, 255, 0, true) else setElementInterior(player, 0) setElementPosition(player, 825.3173828125, -2159.85546875, 14.516511917114) end end end ) Link to comment
aL.Kfo Posted July 19, 2015 Author Share Posted July 19, 2015 يعطيك العافيةة ي خيو بس الماركر صار ل الكل مو للي بقروب اسل فقط Link to comment
' A F . Posted July 19, 2015 Share Posted July 19, 2015 انت تبي م آحد يدخله الا قروب معين ولا م آحد يشوفه الى قروب معين ؟ Link to comment
aL.Kfo Posted July 19, 2015 Author Share Posted July 19, 2015 انت تبي م آحد يدخله الا قروب معين ولا م آحد يشوفه الى قروب معين ؟ محد يقدر يدخل الماركر غير اللي اضيف اسم حسابه بقروب انا مسويه بالاسل يعني مثلا اللي يطلع ب اللوحه الادمنيه تحت اسمة اسم القروب الاسل يفتح له Link to comment
i S6O Posted July 19, 2015 Share Posted July 19, 2015 * اوكي بعدله لك * smar = طبعاً مايدخله غير الي بقروب ذا local Manstermarker = createMarker( 825.1142578125, -2162.4404296875, 14.957813262939-1, "cylinder", 1.5, 251, 96, 3, 153 ) local Manstermarker2 = createMarker( 238.65625, 139.2451171875, 1003.0234375-1, "cylinder", 1.5, 251, 96, 3, 153 ) setElementInterior ( Manstermarker2, 3 ) addEventHandler ( 'onMarkerHit', Manstermarker, function (player) if getElementType(player) == "player" then if ( isPedInVehicle(player) ) then return end local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then setElementInterior(player, 3) setElementPosition(player, 238.6044921875, 142.86328125, 1003.0234375) else outputChatBox("mr ", player, 255, 255, 0, true) end end end ) addEventHandler ( 'onMarkerHit', Manstermarker2, function (player) if getElementType(player) == "player" then local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then setElementInterior(player, 0) setElementPosition(player, 825.3173828125, -2159.85546875, 14.516511917114) else outputChatBox("mr", player, 255, 255, 0, true) end end end ) Link to comment
aL.Kfo Posted July 19, 2015 Author Share Posted July 19, 2015 يعطيك العافيةة خيو عقيد وابي هذا نفسس الششي عدلته انا مانفع Door11 = createObject(980,828.900390625,-2069.3994140625,14.699999809265,0,0,0) markerDoor11 = createMarker(828.900390625,-2069.3994140625,14.699999809265,'cylinder',4,0,0,0,0) addEventHandler('onMarkerHit',markerDoor11, function ( hitElement ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "sma" ) ) then moveObject(Door11,500,828.90002441406,-2069.3999023438,20.299999237061) end end ) addEventHandler('onMarkerLeave',markerDoor11, function ( hitElement ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "sma" ) ) then moveObject(Door11,500,828.900390625,-2069.3994140625,14.699999809265) end end ) Link to comment
i S6O Posted July 19, 2015 Share Posted July 19, 2015 * ابشر بتعديل * smar = اذا لاعب بـ قروب سم Door11 = createObject( 980,828.900390625,-2069.3994140625,14.699999809265,0,0,0 ) markerDoor11 = createMarker( 828.900390625,-2069.3994140625,14.699999809265,'cylinder',4,0,0,0,0 ) addEventHandler ( 'onMarkerHit', markerDoor11, function ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then moveObject ( Door11,500,828.90002441406,-2069.3999023438,20.299999237061 ) end end ) addEventHandler ( 'onMarkerLeave',markerDoor11, function ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then moveObject ( Door11,500,828.900390625,-2069.3994140625,14.699999809265 ) end end ) * x38iD : ضيفني سكايب عشان اعلمك إذا ماعرفت بشيء Link to comment
aL.Kfo Posted July 19, 2015 Author Share Posted July 19, 2015 * ابشر بتعديل* smar = اذا لاعب بـ قروب سم Door11 = createObject( 980,828.900390625,-2069.3994140625,14.699999809265,0,0,0 ) markerDoor11 = createMarker( 828.900390625,-2069.3994140625,14.699999809265,'cylinder',4,0,0,0,0 ) addEventHandler ( 'onMarkerHit', markerDoor11, function ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then moveObject ( Door11,500,828.90002441406,-2069.3999023438,20.299999237061 ) end end ) addEventHandler ( 'onMarkerLeave',markerDoor11, function ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then moveObject ( Door11,500,828.900390625,-2069.3994140625,14.699999809265 ) end end ) * x38iD : ضيفني سكايب عشان اعلمك إذا ماعرفت بشيء يعطيكك العافية خيو .. والله يسم عدوكك 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