Jump to content

مساعدة


Recommended Posts

Posted

شباب بدي اخلي السيارة تطير بكوماتد

    function aicars ( )
       if setWorldSpecialPropertyEnabled( "aircars", true ) then
		outputChatBox ("aircars activated")
		else
		outputChatBox ("aircars disactivated")
    end
addCommandHandler ( "flycar", aicars )

 

Posted

مو شغالة 

بدي لما اسوي 

/flycar 

السيارة تصير تطير و لاما اكتب الكوماند مرة ثاينة

الفنكشن يوقف

Posted
function aicars()
	if isWorldSpecialPropertyEnabled("aircars") then
		outputChatBox ("aircars activated")
    	setWorldSpecialPropertyEnabled("aircars", true)
	else
		outputChatBox ("aircars disactivated")
    	setWorldSpecialPropertyEnabled("aircars", false)
    end
end
addCommandHandler ("flycar", aicars)

 

Posted
27 minutes ago, #َxLysandeR said:

function aicars()
	if isWorldSpecialPropertyEnabled("aircars") then
		outputChatBox ("aircars activated")
    	setWorldSpecialPropertyEnabled("aircars", true)
	else
		outputChatBox ("aircars disactivated")
    	setWorldSpecialPropertyEnabled("aircars", false)
    end
end
addCommandHandler ("flycar", aicars)

 

شسالفة صورك ؟ هههههههههههههههههههههههههههههههههههههههههههههههههههههه

Posted
17 minutes ago, #DesTroeyR said:

شسالفة صورك ؟ هههههههههههههههههههههههههههههههههههههههههههههههههههههه

زهقان من المذاكره و القرف بقا فقط افرفش شويه :-D

Posted (edited)
On 7/29/2018 at 20:26, #َxLysandeR said:

function aicars()
	if isWorldSpecialPropertyEnabled("aircars") then
		outputChatBox ("aircars activated")
    	setWorldSpecialPropertyEnabled("aircars", true)
	else
		outputChatBox ("aircars disactivated")
    	setWorldSpecialPropertyEnabled("aircars", false)
    end
end
addCommandHandler ("flycar", aicars)

 

كودك مو شغال

	function aircaron ()
	setWorldSpecialPropertyEnabled("aircars", true)
		outputChatBox ("aircars activated",0 ,255 ,0)
	end
	addCommandHandler ("flycaron", aircaron)
		function aircaroff ()
	setWorldSpecialPropertyEnabled("aircars", false)
		outputChatBox ("aircars disactivated",255 ,0 ,0)
	end
	addCommandHandler ("flycaroff", aircaroff)

خلاص صلحته 

بس بدي اخليها بس للادمن

		function aircaron (thePlayer)
     local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name
     if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions?
		outputChatBox( "Acces denied", thePlayer, 255, 255, 0)

		end
	end
			addCommandHandler( "flycaron", root, aircar )

في خطأ؟؟

Edited by Snakegold
Posted
30 minutes ago, Snakegold said:

كودك مو شغال


	function aircaron ()
	setWorldSpecialPropertyEnabled("aircars", true)
		outputChatBox ("aircars activated",0 ,255 ,0)
	end
	addCommandHandler ("flycaron", aircaron)
		function aircaroff ()
	setWorldSpecialPropertyEnabled("aircars", false)
		outputChatBox ("aircars disactivated",255 ,0 ,0)
	end
	addCommandHandler ("flycaroff", aircaroff)

خلاص صلحته 

بس بدي اخليها بس للادمن


		function aircaron (thePlayer)
     local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name
     if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions?
		outputChatBox( "Acces denied", thePlayer, 255, 255, 0)

		end
	end
			addCommandHandler( "flycaron", root, aircar )

في خطأ؟؟

function aircaron (thePlayer)
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name
if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions?
		outputChatBox( "Acces denied", thePlayer, 255, 255, 0)
return
		end
	end
			addCommandHandler( "flycaron", root, aircar )

لازم تستعمل ترايقر

Posted

الترايقر مثلاُ 

انت مسوي سكربت بملف سيرفر بس فيه وظيفة بالسكربت حقك بجانب السيرفر تستعمل الترايقر من سيرفر ل كلنت والعكس 

triggerServerEevnt -- من كلنت لـ سيرفر

triggerClientEvent -- من سيرفر لـ كلنت

Posted (edited)
5 hours ago, Snakegold said:

كودك مو شغال


	function aircaron ()
	setWorldSpecialPropertyEnabled("aircars", true)
		outputChatBox ("aircars activated",0 ,255 ,0)
	end
	addCommandHandler ("flycaron", aircaron)
		function aircaroff ()
	setWorldSpecialPropertyEnabled("aircars", false)
		outputChatBox ("aircars disactivated",255 ,0 ,0)
	end
	addCommandHandler ("flycaroff", aircaroff)

خلاص صلحته 

بس بدي اخليها بس للادمن


		function aircaron (thePlayer)
     local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name
     if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions?
		outputChatBox( "Acces denied", thePlayer, 255, 255, 0)

		end
	end
			addCommandHandler( "flycaron", root, aircar )

في خطأ؟؟

ما اخدت بالي معلش

اعكس مكان

true

و 

false

 

Edited by #َxLysandeR
Posted
 
	function aircaron ()
	setWorldSpecialPropertyEnabled("aircars", false)
		outputChatBox ("aircars activated",0 ,255 ,0)
	end
	addCommandHandler ("flycaron", aircaron)
		function aircaroff ()
	setWorldSpecialPropertyEnabled("aircars", true)
		outputChatBox ("aircars disactivated",255 ,0 ,0)
	end
	addCommandHandler ("flycaroff", aircaroff)

 

Posted
On 7/30/2018 at 11:25, *AnGeL said:

 
	function aircaron ()
	setWorldSpecialPropertyEnabled("aircars", false)
		outputChatBox ("aircars activated",0 ,255 ,0)
	end
	addCommandHandler ("flycaron", aircaron)
		function aircaroff ()
	setWorldSpecialPropertyEnabled("aircars", true)
		outputChatBox ("aircars disactivated",255 ,0 ,0)
	end
	addCommandHandler ("flycaroff", aircaroff)

 

الكود لحس مخي

كيف Aircars desactivated 

Value: true

و Activated

Value: false

؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

PS: المود شغال

Posted

جرب :)

-- # Client
addCommandHandler ("flycar",
	function aicars()
		triggerServerEvent('checkRankPlayer', localPlayer) 
	end
)

addEvent ( "thenTrue", true )
addEventHandler ( "thenTrue", root,
	function (  )
		if isWorldSpecialPropertyEnabled("aircars") then
			outputChatBox ("aircars disactivated")
			setWorldSpecialPropertyEnabled("aircars", false)
	else
			outputChatBox ("aircars activated")
			setWorldSpecialPropertyEnabled("aircars", true)
		end
	end
)

-- # Server
local Rank = "Console" --- آلرتبة آلي يشتغل عليه آلآمر
addEvent ( "checkRankPlayer", true )
addEventHandler ( "checkRankPlayer", root,
	function ( p )
		local acc = getPlayerAccount ( p )
		if acc and not isGuestAccount ( acc ) then
			if isObjectInACLGroup ( "user."..getAccountName ( acc ), aclGetGroup ( Rank ) ) then
				triggerClientEvent ( p, "thenTrue", resourceRoot )
			end
		end
	end
)

 

Posted

بكل المودات لازم تكون False 

قبل True

زي هيك 

			outputChatBox ("aircars disactivated")
			setWorldSpecialPropertyEnabled("aircars", false)
	else
			outputChatBox ("aircars activated")
			setWorldSpecialPropertyEnabled("aircars", true)

 

??

Posted
1 hour ago, Mr.Mostafa said:

جرب :)


-- # Client
addCommandHandler ("flycar",
	function aicars()
		triggerServerEvent('checkRankPlayer', localPlayer) 
	end
)

addEvent ( "thenTrue", true )
addEventHandler ( "thenTrue", root,
	function (  )
		if isWorldSpecialPropertyEnabled("aircars") then
			outputChatBox ("aircars disactivated")
			setWorldSpecialPropertyEnabled("aircars", false)
	else
			outputChatBox ("aircars activated")
			setWorldSpecialPropertyEnabled("aircars", true)
		end
	end
)

-- # Server
local Rank = "Console" --- آلرتبة آلي يشتغل عليه آلآمر
addEvent ( "checkRankPlayer", true )
addEventHandler ( "checkRankPlayer", root,
	function ( p )
		local acc = getPlayerAccount ( p )
		if acc and not isGuestAccount ( acc ) then
			if isObjectInACLGroup ( "user."..getAccountName ( acc ), aclGetGroup ( Rank ) ) then
				triggerClientEvent ( p, "thenTrue", resourceRoot )
			end
		end
	end
)

 

يا عزيزي كودك فيه اغلاط .

Snakegold : اكوادك اشتغلت ولا لا ؟  وايش مشكلتك ؟

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