Unknow Posted March 26, 2018 Posted March 26, 2018 السلام عليكم و رحمة والله اخواني انا اتعلم جديد بالبرمجه و عملت ساحة حرب مود خفيف وجميل و سهل الان اريد اعمل حماية على شكل ماركر امنع الاعب يستعمل الغش في الساحة اريد امنع الانتقال للاعب مثلاً اذا شخص سحبه او انتقل له ما يقدر+ فتح لوحة الادمن + فتح اف1 .. افتح اف2 ... إلخ إلخ إلخ + الكلام بالشات حاولت بس ما قدرت و اكوادي لو طرحتها ما رح تستفيدون شي لانها بكل صراحة هبل بهبل اتمنى المساعدة منكم و شكراً war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0)
AHMED MOSTAFA Posted March 26, 2018 Posted March 26, 2018 (edited) 6 minutes ago, Unknow said: السلام عليكم و رحمة والله اخواني انا اتعلم جديد بالبرمجه و عملت ساحة حرب مود خفيف وجميل و سهل الان اريد اعمل حماية على شكل ماركر امنع الاعب يستعمل الغش في الساحة اريد امنع الانتقال للاعب مثلاً اذا شخص سحبه او انتقل له ما يقدر+ فتح لوحة الادمن + فتح اف1 .. افتح اف2 ... إلخ إلخ إلخ + الكلام بالشات حاولت بس ما قدرت و اكوادي لو طرحتها ما رح تستفيدون شي لانها بكل صراحة هبل بهبل اتمنى المساعدة منكم و شكراً war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) ممكن تطرح علينا تجربتك ؟ مع ملاحظة انك رح تستعمل "onClientKey" -- Event cancelEvent -- رح تستخدم هذا في حالة انك تبي تسوي الحماية بماركر isElementWithinMarker -- أو لو مارح تسوي الحماية بماركر createColSphere getElementsWithinColShape -- باقي الاشياء الانتقال و ما الى غيره رح تضطر تعدل على لوحة الادمن Edited March 26, 2018 by killerProject
Unknow Posted March 26, 2018 Author Posted March 26, 2018 1 hour ago, killerProject said: ممكن تطرح علينا تجربتك ؟ مع ملاحظة انك رح تستعمل "onClientKey" -- Event cancelEvent -- رح تستخدم هذا في حالة انك تبي تسوي الحماية بماركر isElementWithinMarker -- أو لو مارح تسوي الحماية بماركر createColSphere getElementsWithinColShape -- باقي الاشياء الانتقال و ما الى غيره رح تضطر تعدل على لوحة الادمن شكراً بس انا محاولاتي هبل بهبل مثل ما قلت فوق .. يعني ما تفيدك او تفيدني انا احتاج الكواد جاهز ما عليك امر علشان اتعلمه و بالتالي احفظه و اصير كذا اعدل و احط اشيء عليه بس كذا
AHMED MOSTAFA Posted March 27, 2018 Posted March 27, 2018 آسف ... مافيه جاهز جرب و اطرح تجربتك وبنفيدك ان شاء الله
Unknow Posted March 27, 2018 Author Posted March 27, 2018 2 hours ago, killerProject said: آسف ... مافيه جاهز جرب و اطرح تجربتك وبنفيدك ان شاء الله ذا الي مكرهني بالبرمجه
Rakan# Posted March 27, 2018 Posted March 27, 2018 addEventHandler("onClientKey",root, function(key,p) if p then wColShape = getElementColShape(war) if isElementWithinColShape(localPlayer,wColShape) then if key == "f1" or key == "f2" -- وبنفس الطريقة زيد then cancelEvent() outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end end)
Unknow Posted March 27, 2018 Author Posted March 27, 2018 1 minute ago, Rakan# said: addEventHandler("onClientKey",root, function(key,p) if p then wColShape = getElementColShape(war) if isElementWithinColShape(localPlayer,wColShape) then if key == "f1" or key == "f2" -- وبنفس الطريقة زيد then cancelEvent() outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end end) شكرا شكرا شكرا
Unknow Posted March 27, 2018 Author Posted March 27, 2018 4 minutes ago, Rakan# said: addEventHandler("onClientKey",root, function(key,p) if p then wColShape = getElementColShape(war) if isElementWithinColShape(localPlayer,wColShape) then if key == "f1" or key == "f2" -- وبنفس الطريقة زيد then cancelEvent() outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end end) يعني يصير كذا صح ؟ war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) addEventHandler("onClientKey",root, function(key,p) if p then wColShape = getElementColShape(war) if isElementWithinColShape(localPlayer,wColShape) then if key == "f1" or key == "f2" -- وبنفس الطريقة زيد or key == "f3" or key == "f4" or key == "f5" or key == "f6" or key == "f7" or key == "f8" or key == "f9" or key == "f10" then cancelEvent() outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end
Rakan# Posted March 27, 2018 Posted March 27, 2018 28 minutes ago, Unknow said: يعني يصير كذا صح ؟ war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) addEventHandler("onClientKey",root, function(key,p) if p then wColShape = getElementColShape(war) if isElementWithinColShape(localPlayer,wColShape) then if key == "f1" or key == "f2" -- وبنفس الطريقة زيد or key == "f3" or key == "f4" or key == "f5" or key == "f6" or key == "f7" or key == "f8" or key == "f9" or key == "f10" then cancelEvent() outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end يب
#[K]iLLeR<3 Posted March 27, 2018 Posted March 27, 2018 (edited) Good Edited March 27, 2018 by #[K]iLLeR<3
Unknow Posted March 27, 2018 Author Posted March 27, 2018 57 minutes ago, Rakan# said: addEventHandler("onClientKey",root, function(key,p) if p then wColShape = getElementColShape(war) if isElementWithinColShape(localPlayer,wColShape) then if key == "f1" or key == "f2" -- وبنفس الطريقة زيد then cancelEvent() outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end end) ما اشتغل !
^iiEcoo'x_) Posted March 27, 2018 Posted March 27, 2018 war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) addEventHandler("onClientKey",root, function(key,p) if p then wColShape = getElementColShape(war) if isElementWithinColShape(localPlayer,wColShape) then if key == "f1" or key == "f2" or key == "f3" or key == "f4" or key == "f5" or key == "f6" or key == "f7" or key == "f9" or key == "f10" then cancelEvent() outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end ) أصلا في شرح موجود بقسم الشروحات البرمجية ..
Unknow Posted March 27, 2018 Author Posted March 27, 2018 1 hour ago, DABL said: war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) addEventHandler("onClientKey",root, function(key,p) if p then wColShape = getElementColShape(war) if isElementWithinColShape(localPlayer,wColShape) then if key == "f1" or key == "f2" or key == "f3" or key == "f4" or key == "f5" or key == "f6" or key == "f7" or key == "f9" or key == "f10" then cancelEvent() outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end ) أصلا في شرح موجود بقسم الشروحات البرمجية .. نفس الي فوقه و ما اشتغل
#Major . Posted March 27, 2018 Posted March 27, 2018 5 minutes ago, Unknow said: نفس الي فوقه و ما اشتغل debugscript 3?
Unknow Posted March 27, 2018 Author Posted March 27, 2018 8 minutes ago, *RayaN-Alharbi. said: debugscript 3? ما يقول شيء بخصوص الاكواد واقفه معاه على السطر 11 .. ) على القوس ملاحظة : الان ظهرت ذي بكود الاخ DABL ضفت كمان end اشتغل لكن ما يعمل المهمة ولا يجي اي شيء .. ماركر فقط ملاحظة .. انا حاط الكود بملف لوحده بدون اي شيء للتجربه .. يعني اذا عندي غلط او لازم اضيف شيء قولوا لي + انا حاطه كلينت مو سيرفر
#Major . Posted March 27, 2018 Posted March 27, 2018 10 minutes ago, Unknow said: ما يقول شيء بخصوص الاكواد واقفه معاه على السطر 11 .. ) على القوس ملاحظة : الان ظهرت ذي بكود الاخ DABL ضفت كمان end اشتغل لكن ما يعمل المهمة ولا يجي اي شيء .. ماركر فقط ملاحظة .. انا حاط الكود بملف لوحده بدون اي شيء للتجربه .. يعني اذا عندي غلط او لازم اضيف شيء قولوا لي + انا حاطه كلينت مو سيرفر وش يكتب لك طيب؟
Unknow Posted March 27, 2018 Author Posted March 27, 2018 11 minutes ago, *RayaN-Alharbi. said: وش يكتب لك طيب؟ ما يكتب شي الان ولا يعمل شي
Rakan# Posted March 27, 2018 Posted March 27, 2018 war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) addEventHandler("onClientKey",root, function(key,p) if p then wColShape = getElementColShape(war) if isElementWithinColShape(localPlayer,wColShape) then if key == "f1" or key == "f2" -- وبنفس الطريقة زيد or key == "f3" or key == "f4" or key == "f5" or key == "f6" or key == "f7" or key == "f8" or key == "f9" or key == "f10" then cancelEvent() outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end end)
Unknow Posted April 2, 2018 Author Posted April 2, 2018 On ٢٨/٣/٢٠١٨ at 03:08, Rakan# said: war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) addEventHandler("onClientKey",root, function(key,p) if p then wColShape = getElementColShape(war) if isElementWithinColShape(localPlayer,wColShape) then if key == "f1" or key == "f2" -- وبنفس الطريقة زيد or key == "f3" or key == "f4" or key == "f5" or key == "f6" or key == "f7" or key == "f8" or key == "f9" or key == "f10" then cancelEvent() outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end end) اسف على الرد المأخر لكن ما اشتغل
Abdul KariM Posted April 2, 2018 Posted April 2, 2018 Keys = {"F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"} war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) addEventHandler( "onClientKey" , root, function ( key , press ) if ( press ) then for i , theKeys in ipairs ( Keys ) do if ( key == theKeys ) and getElementData( localPlayer , "disableBind" ) then cancelEvent ( ) outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end end ) function onControl ( player ) if ( eventName == "onClientMarkerHit" ) then if ( player == getLocalPlayer ( ) ) then setElementData ( player , "disableBind" , true ) elseif ( eventName == "onClientMarkerLeave" ) then if ( player == getLocalPlayer ( ) ) then setElementData( player , "disableBind" , false ) end end end end addEventHandler ( "onClientMarkerHit" , war , onControl ) addEventHandler ( "onClientMarkerLeave" , war , onControl )
Unknow Posted April 2, 2018 Author Posted April 2, 2018 @Abdul KariM @*RayaN-Alharbi. @DABL @Rakan# طلعت المشكلة اتفه مما تتصورون لازم تكتب بدل f1 F1 بس عندي سؤال .. كيف امنع الاعب يكتب كلمة باف8 2 hours ago, Abdul KariM said: Keys = {"F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"} war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) addEventHandler( "onClientKey" , root, function ( key , press ) if ( press ) then for i , theKeys in ipairs ( Keys ) do if ( key == theKeys ) and getElementData( localPlayer , "disableBind" ) then cancelEvent ( ) outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end end ) function onControl ( player ) if ( eventName == "onClientMarkerHit" ) then if ( player == getLocalPlayer ( ) ) then setElementData ( player , "disableBind" , true ) elseif ( eventName == "onClientMarkerLeave" ) then if ( player == getLocalPlayer ( ) ) then setElementData( player , "disableBind" , false ) end end end end addEventHandler ( "onClientMarkerHit" , war , onControl ) addEventHandler ( "onClientMarkerLeave" , war , onControl ) الكود حقك لو الاعب طلع من الماركر يضل ما يقدر يضغط على الزر
#Major . Posted April 3, 2018 Posted April 3, 2018 4 hours ago, Unknow said: @Abdul KariM @*RayaN-Alharbi. @DABL @Rakan# لعت المشكلة اتفه مما تتصورون لازم تكتب بدل f1 F1 بس عندي سؤال .. كيف امنع الاعب يكتب كلمة باف8 الكود حقك لو الاعب طلع من الماركر يضل ما يقدر يضغط على الزر Keys = {"F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"} war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) addEventHandler( "onClientKey" , root, function ( key , press ) if ( press ) then for i , theKeys in ipairs ( Keys ) do if ( key == theKeys ) and ( getElementData( localPlayer , "disableBind" ) == true ) then cancelEvent ( ) outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end end ) function onControl ( player ) if ( eventName == "onClientMarkerHit" ) then if ( player == getLocalPlayer ( ) ) then setElementData ( player , "disableBind" , true ) elseif ( eventName == "onClientMarkerLeave" ) then if ( player == getLocalPlayer ( ) ) then setElementData( player , "disableBind" , false ) end end end end addEventHandler ( "onClientMarkerHit" , war , onControl ) addEventHandler ( "onClientMarkerLeave" , war , onControl )
Unknow Posted April 3, 2018 Author Posted April 3, 2018 9 hours ago, *RayaN-Alharbi. said: Keys = {"F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"} war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) addEventHandler( "onClientKey" , root, function ( key , press ) if ( press ) then for i , theKeys in ipairs ( Keys ) do if ( key == theKeys ) and ( getElementData( localPlayer , "disableBind" ) == true ) then cancelEvent ( ) outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end end ) function onControl ( player ) if ( eventName == "onClientMarkerHit" ) then if ( player == getLocalPlayer ( ) ) then setElementData ( player , "disableBind" , true ) elseif ( eventName == "onClientMarkerLeave" ) then if ( player == getLocalPlayer ( ) ) then setElementData( player , "disableBind" , false ) end end end end addEventHandler ( "onClientMarkerHit" , war , onControl ) addEventHandler ( "onClientMarkerLeave" , war , onControl ) مشكوور بس ممكن تخليه يمنع الاعب يكتب باف8 كلمات و عددها 3 انا بحددهم
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