^iiEcoo'x_) Posted July 17, 2016 Share Posted July 17, 2016 (edited) السلام عليكم ابي فنكشن منطقة لا يدخلها احد والي يدخلها يرجعه للبوزيشن الي حطيته والي دخل الماركر يقدر يدخل المنطقة Edited July 18, 2016 by Guest Link to comment
Adham Posted July 17, 2016 Share Posted July 17, 2016 معلش, فهمت طلبك لاكن م عرفت بس ممكن setElementData getElementData ولو غلط الشباب يصلحه لك Link to comment
^iiEcoo'x_) Posted July 17, 2016 Author Share Posted July 17, 2016 -------------------- خلص مشكور عالمعلومة Link to comment
iMr.SFA7 Posted July 17, 2016 Share Posted July 17, 2016 تقدر تسوي ماركر يوم يدخله يحط عليه داتا وتسوي ماركر ثاني الي هو ما تبي أحد يدخله ويوم يدخله تتحقق اذا كان معاه الداتا يدخل عادي واذا ما كانت معاه ينقله للمكان الي تبيه createMarker -- two markers 'onMarkerHit' setElementData 'onMarkerHit' -- 2 getElementData setElementPosition Link to comment
^iiEcoo'x_) Posted July 17, 2016 Author Share Posted July 17, 2016 كذا ؟ سويت ما حد يدخلها الا قروب كونسول 7maeh = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) addEventHandler("onMarkerHit", root, function(player) if source == 7maeh if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then setElementPosition(player, x, y, z) outputChatBox ( "لا يمكنك الدخول ", source, 255, 0, 0, true ) end end end ) Link to comment
iMr.SFA7 Posted July 17, 2016 Share Posted July 17, 2016 بعد التحقق then سطر 5 ناقصك وناقصك تتحقق من الالمنت الي دخل ان نوعه لاعب وانت مسويه يجيب حساب السورس والسورس هو الماركر والشات بوكس انت مسويه يجي للسورس والسورس بالحدث هذا هو الماركر يعني حوله للالمنت الي دخل Link to comment
^iiEcoo'x_) Posted July 17, 2016 Author Share Posted July 17, 2016 كذا ؟ 7maeh = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) addEventHandler("onMarkerHit", root, function(player) if source == 7maeh and getElementType( player ) == "player" and not isPedInVehicle( player ) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then setElementPosition(player, x, y, z) outputChatBox ( "لا يمكنك الدخول ", source, 255, 0, 0, true ) end end end ) Link to comment
Adham Posted July 17, 2016 Share Posted July 17, 2016 ججرب كذا Marker = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) addEventHandler("onMarkerHit", Marker, function( player ) if getElementType( player ) == "player" and not isPedInVehicle( player ) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then setElementPosition( player, x, y, z) outputChatBox ( "لا يمكنك الدخول ", player, 255, 0, 0, true ) end end end ) Link to comment
^iiEcoo'x_) Posted July 17, 2016 Author Share Posted July 17, 2016 ججرب كذا Marker = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) addEventHandler("onMarkerHit", Marker, function( player ) if getElementType( player ) == "player" and not isPedInVehicle( player ) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then setElementPosition( player, x, y, z) outputChatBox ( "لا يمكنك الدخول ", player, 255, 0, 0, true ) end end end ) مشكور لعبة Link to comment
فاّرس Posted July 17, 2016 Share Posted July 17, 2016 ججرب كذا Marker = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) addEventHandler("onMarkerHit", Marker, function( player ) if getElementType( player ) == "player" and not isPedInVehicle( player ) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then setElementPosition( player, x, y, z) outputChatBox ( "لا يمكنك الدخول ", player, 255, 0, 0, true ) end end end ) يقول محد يدخلها غير الكونسول, و السورس هو الماركر , وناقص تحقق انه مسجل الدخول. Link to comment
^iiEcoo'x_) Posted July 17, 2016 Author Share Posted July 17, 2016 بس باقي شي انا عندي ماركر يدخلني للاحداثيات داخل الماركرالي عنده الحماية وش اسوي Link to comment
iMr.SFA7 Posted July 17, 2016 Share Posted July 17, 2016 مشكور لعبة Marker = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) addEventHandler("onMarkerHit", Marker, function (player) if (getElementType (player) == "player" and not isPedInVehicle (player) and getPlayerAccount(player) and not isGuestAccount(getPlayerAccount(player))) then if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Console")) then setElementPosition( player, x, y, z) outputChatBox ( "لا يمكنك الدخول ", player, 255, 0, 0, true ) end end end) بس باقي شي انا عندي ماركر يدخلني للاحداثيات داخل الماركرالي عنده الحماية وش اسوي ياليت توضح Link to comment
^iiEcoo'x_) Posted July 17, 2016 Author Share Posted July 17, 2016 سفاح اعطيك الكود خاص ؟ +++++++ انا سويت ماركر والماركر ذا ينقل الاعبين الى داخل الماركر المحمي انا م ابي اطلع الاعبين من الماركر المحمي Link to comment
iMr.SFA7 Posted July 17, 2016 Share Posted July 17, 2016 سفاح اعطيك الكود خاص ؟+++++++ انا سويت ماركر والماركر ذا ينقل الاعبين الى داخل الماركر المحمي انا م ابي اطلع الاعبين من الماركر المحمي قصدك أنت سويت ماركر ينقل اللاعب الي دخله للماركر المحمي وما تبيه يطلع منه؟ Link to comment
iMr.SFA7 Posted July 17, 2016 Share Posted July 17, 2016 'onMarkerHit' 'onMarkerLeave' setElementData getElementData setElementPosition Link to comment
^iiEcoo'x_) Posted July 17, 2016 Author Share Posted July 17, 2016 ممكن تدمجلي الكود ذا مع ذاك الكود لاني م افهم لل set/getElementData Link to comment
^iiEcoo'x_) Posted July 17, 2016 Author Share Posted July 17, 2016 لعبا ساعدني لو سمحت Link to comment
Adham Posted July 17, 2016 Share Posted July 17, 2016 ولله م فهمت لطلبك واذا م فاهم للداتا كلمني خاص واشرحها لك Link to comment
^iiEcoo'x_) Posted July 18, 2016 Author Share Posted July 18, 2016 طيب لو اختصر ع نفسي كذا يضبط ؟ Marker = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) Marker2 = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) addEventHandler("onMarkerHit", Marker, function (player) if source == run1 and getElementType (player) == "player" and not isPedInVehicle (player) and getPlayerAccount(player) and not isGuestAccount(getPlayerAccount(player))) then if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Console")) then setElementPosition( player, x, y, z) outputChatBox ( "لا يمكنك الدخول ", player, 255, 0, 0, true ) elseif source == Marker2 getElementType (player) == "player" and not isPedInVehicle (player) then local x, y, z = unpack(run.prun[math.random(#run.prun)]) setElementPosition(player, x, y, z) outputChatBox ( 'لقد دخلت ', player ) end end end end) Link to comment
^iiEcoo'x_) Posted July 18, 2016 Author Share Posted July 18, 2016 مـــــــــــــــــــــــــــــــــــســـــــــــــــــــــــــــــــاعـــــــــــــــــــــــــــدهــــــــــــــــــــــــــــــ Link to comment
' A F . Posted July 18, 2016 Share Posted July 18, 2016 ولله م فهمت لطلبكواذا م فاهم للداتا كلمني خاص واشرحها لك ليه ماتشرحها له هنآ ؟ خل الناس تستفيد 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