Jump to content

مساعدة


Recommended Posts

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

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

 

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

 

Link to comment
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)

 

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

Link to comment
17 minutes ago, #DesTroeyR said:

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

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

Link to comment
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
Link to comment
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 )

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

Link to comment

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

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

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

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

Link to comment
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
Link to comment
 
	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)

 

Link to comment
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: المود شغال

Link to comment

جرب :)

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

 

Link to comment

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

قبل True

زي هيك 

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

 

??

Link to comment
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 : اكوادك اشتغلت ولا لا ؟  وايش مشكلتك ؟

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