Jump to content

Recommended Posts

        Keys = {"F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"}
		Command = {
			['aexec']  	= true;
			['delaccount']  	= true;
			['chgpass']  	= true;
			['chgmypass']  	= true;
			['shutdown']  	= true;
				   }
        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 )

		
		addEventHandler( "onPlayerCommand ",root,function( cmd )
		if Command [ cmd ] then
		if ( getElementData( localPlayer , "disableBind" ) == true ) then
		cancelEvent()
		outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true)
			end
		end
	end
	)

غيرر مجرب

Link to comment
On 4/2/2018 at 21:51, 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 )

 

اطن ما في حاجه للداتا

local Keys = {"F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12"}
local war = createMarker(2490.8999023438, -1668.3000488281, 13.300000190735, "cylinder", 50, 255, 0, 0, 0)

addEventHandler("onClientKey", root,
	function(key , press)
		if press then
			for _,keys in ipairs(Keys) do
				if key == keys and isElementWithinMarker(localPlayer, war) then
					cancelEvent()
					outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true)
				end
			end
		end
	end
)

 

  • Thanks 1
Link to comment
1 hour ago, #x1AhMeD,-09 said:

اطن ما في حاجه للداتا


local Keys = {"F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12"}
local war = createMarker(2490.8999023438, -1668.3000488281, 13.300000190735, "cylinder", 50, 255, 0, 0, 0)

addEventHandler("onClientKey", root,
	function(key , press)
		if press then
			for _,keys in ipairs(Keys) do
				if key == keys and isElementWithinMarker(localPlayer, war) then
					cancelEvent()
					outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true)
				end
			end
		end
	end
)

 

الكل حط لي كذا و ما زبط

وذاك زبط بس المشكلة اذا طلعت من الماركر يضل ما  اقدر استعمل شي

اذا متعبكم الماركرخلوه ممنوع بعالم معين و خلاص

Link to comment

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...