Jump to content

Recommended Posts

Posted

السلام عليكم و رحمة والله

اخواني انا  اتعلم جديد بالبرمجه و عملت ساحة حرب مود خفيف وجميل و سهل 

الان اريد اعمل حماية على شكل ماركر امنع الاعب يستعمل الغش في الساحة

اريد امنع الانتقال  للاعب مثلاً اذا شخص سحبه او انتقل له ما يقدر+ فتح لوحة الادمن + فتح اف1 .. افتح اف2 ... إلخ إلخ إلخ + الكلام بالشات

حاولت بس ما قدرت و اكوادي لو طرحتها ما رح تستفيدون شي لانها بكل صراحة هبل بهبل

اتمنى المساعدة منكم و شكراً

war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0)

 

Posted (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 by killerProject
Posted
1 hour ago, killerProject said:

 

ممكن تطرح علينا تجربتك ؟

مع ملاحظة انك رح تستعمل


 


"onClientKey" -- Event
cancelEvent

-- رح تستخدم هذا في حالة انك تبي تسوي الحماية بماركر 

isElementWithinMarker

-- أو لو مارح تسوي الحماية بماركر

createColSphere
getElementsWithinColShape

-- باقي الاشياء الانتقال و ما الى غيره رح تضطر تعدل على لوحة الادمن

 

شكراً 

بس 

انا محاولاتي هبل بهبل مثل ما قلت فوق .. يعني ما تفيدك او تفيدني

انا احتاج الكواد جاهز ما عليك امر علشان اتعلمه و بالتالي احفظه و اصير كذا اعدل و احط اشيء عليه بس كذا

Posted
2 hours ago, killerProject said:

آسف ... مافيه جاهز

جرب و اطرح تجربتك وبنفيدك ان شاء الله

:(:(:(:(

ذا الي مكرهني بالبرمجه

Posted
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)

 

Posted
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)

 

شكرا شكرا شكرا

Posted
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

 

Posted
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

 

يب

Posted
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)

 

ما اشتغل :( !

Posted
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 )

أصلا في شرح موجود بقسم الشروحات البرمجية ..

Posted
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 )

أصلا في شرح موجود بقسم الشروحات البرمجية ..

نفس الي فوقه و ما اشتغل :( 

Posted
8 minutes ago, *RayaN-Alharbi. said:

debugscript 3?

ما يقول شيء بخصوص الاكواد واقفه معاه على السطر 11 .. ) على القوس

ملاحظة : الان ظهرت ذي بكود الاخ DABL

ضفت كمان end

اشتغل لكن ما يعمل المهمة ولا يجي اي شيء .. ماركر فقط

ملاحظة .. انا حاط الكود بملف لوحده بدون اي شيء للتجربه .. يعني اذا عندي غلط او لازم اضيف شيء قولوا لي

+ انا حاطه كلينت مو سيرفر

Posted
10 minutes ago, Unknow said:

ما يقول شيء بخصوص الاكواد واقفه معاه على السطر 11 .. ) على القوس

ملاحظة : الان ظهرت ذي بكود الاخ DABL

ضفت كمان end

اشتغل لكن ما يعمل المهمة ولا يجي اي شيء .. ماركر فقط

ملاحظة .. انا حاط الكود بملف لوحده بدون اي شيء للتجربه .. يعني اذا عندي غلط او لازم اضيف شيء قولوا لي

+ انا حاطه كلينت مو سيرفر

وش يكتب لك طيب؟

Posted
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)

 

Posted
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)

 

اسف على الرد المأخر لكن ما  اشتغل

Posted
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 )

 

Posted

@Abdul KariM

@*RayaN-Alharbi.

@DABL

@Rakan#

طلعت المشكلة اتفه مما تتصورون

لازم تكتب بدل f1

F1 xD

xDxD

بس عندي سؤال .. كيف امنع الاعب يكتب كلمة باف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 )

 

الكود حقك لو الاعب طلع من الماركر يضل ما يقدر يضغط على الزر

Posted
4 hours ago, Unknow said:

@Abdul KariM

@*RayaN-Alharbi.

@DABL

@Rakan#

لعت المشكلة اتفه مما تتصورون

لازم تكتب بدل f1

F1 xD

xDxD

بس عندي سؤال .. كيف امنع الاعب يكتب كلمة باف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 )

 

Posted
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 انا بحددهم

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...