Jump to content

تصحيح كود


Aln3mani

Recommended Posts

Posted (edited)

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

انا مسوي لوحة تفتح ب الاسل

هي شغاله و تمام , لاكن اذ سويت من نفس تصميم اللوحه لوحه ثانيه واضفت خاصيه جديده الاثنين م يشتغلوا و م عرفت لها اي حل 

-- Server

addEvent( "Open:Window",true )
addEventHandler( "Open:Window",root,
	function ( )
		if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Z12")) then
			triggerClientEvent( source,"Open2",source )
		end
	end
)
Vehicle = { }
addEvent ( "Take:Vehicle", true)
addEventHandler( "Take:Vehicle",root,
	function ( )
		if Vehicle[source] and isElement ( Vehicle[source] ) then return 
                outputChatBox ("* لأ يمكنك تنزيل مركبة أخري في وجود مركبة اولأ", source,255,0,0,true ) end
		x,y,z  = getElementPosition ( source )
		Vehicle[source] = createVehicle ( 585,  x,  y,  z  )
		warpPedIntoVehicle ( source, Vehicle[source] )
			outputChatBox( "* Done you give Car.",source,0,255,0,true)
           end
)
   

addEvent ( "Destroy", true )
addEventHandler ( "Destroy", root,
	function ( )
		if ( isElement( Vehicle[source] ) ) then 
		destroyElement( Vehicle[source] )
			outputChatBox( "* Done Destroy Car",source,0,255,0,true)
		else
			outputChatBox ("* ليس لديك مركبة", source,255,0,0,true )
		end
	end
)

   
addEvent ( "Fix", true )
addEventHandler ( "Fix", root,
	function ( )
		if ( isElement( Vehicle[source] ) ) then 
		fixVehicle ( Vehicle[source] )
			outputChatBox( "* Done Fix car",source,0,255,0,true)
		else
			outputChatBox ("* ليس لديك مركبة", source,255,0,0,true )
		end
	end
)

addEvent ( "addNitro", true )
addEventHandler ( "addNitro", root,
	function ( )
		if ( isElement( Vehicle[source] ) ) then 
		addVehicleUpgrade ( Vehicle[source], 1010 )
			outputChatBox( "* تم نيترو",source,0,255,0,true)
		else
			outputChatBox ("* ليس لديك مركبة", source,255,0,0,true )
		end
	end
)

 الي يعرف يساعدني :]

وشكرا ..

Edited by Aln3mani
Posted
11 minutes ago, Aln3mani said:

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

انا مسوي لوحة تفتح ب الاسل

هي شغاله و تمام , لاكن اذ سويت من نفس تصميم اللوحه لوحه ثانيه واضفت خاصيه جديده الاثنين م يشتغلوا و م عرفت لها اي حل 


-- Server

addEvent( "Open:Window",true )
addEventHandler( "Open:Window",root,
	function ( )
		if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Z12")) then
			triggerClientEvent( source,"Open2",source )
		end
	end
)
Vehicle = { }
addEvent ( "Take:Vehicle", true)
addEventHandler( "Take:Vehicle",root,
	function ( )
		if Vehicle[source] and isElement ( Vehicle[source] ) then return 
                outputChatBox ("* لأ يمكنك تنزيل مركبة أخري في وجود مركبة اولأ", source,255,0,0,true ) end
		x,y,z  = getElementPosition ( source )
		Vehicle[source] = createVehicle ( 585,  x,  y,  z  )
		warpPedIntoVehicle ( source, Vehicle[source] )
			outputChatBox( "* Done you give Car.",source,0,255,0,true)
           end
)
   

addEvent ( "Destroy", true )
addEventHandler ( "Destroy", root,
	function ( )
		if ( isElement( Vehicle[source] ) ) then 
		destroyElement( Vehicle[source] )
			outputChatBox( "* Done Destroy Car",source,0,255,0,true)
		else
			outputChatBox ("* ليس لديك مركبة", source,255,0,0,true )
		end
	end
)

   
addEvent ( "Fix", true )
addEventHandler ( "Fix", root,
	function ( )
		if ( isElement( Vehicle[source] ) ) then 
		fixVehicle ( Vehicle[source] )
			outputChatBox( "* Done Fix car",source,0,255,0,true)
		else
			outputChatBox ("* ليس لديك مركبة", source,255,0,0,true )
		end
	end
)

addEvent ( "addNitro", true )
addEventHandler ( "addNitro", root,
	function ( )
		if ( isElement( Vehicle[source] ) ) then 
		addVehicleUpgrade ( Vehicle[source], 1010 )
			outputChatBox( "* تم نيترو",source,0,255,0,true)
		else
			outputChatBox ("* ليس لديك مركبة", source,255,0,0,true )
		end
	end
)

 الي يعرف يساعدني :]

وشكرا ..

المشكلة وين ؟؟

Posted
Just now, MR.StoRm said:

المشكلة وين ؟؟

لو سويت مثل تصميم اللوحه و اضفت خاصيه جديده م تشتغل اللوحتين القديمه و الجديده

Posted
Just now, Aln3mani said:

لو سويت مثل تصميم اللوحه و اضفت خاصيه جديده م تشتغل اللوحتين القديمه و الجديده

يوجد شي بالدي بق ؟ + المشكلة بأي سطر ؟ ؟

Posted
Just now, MR.StoRm said:

يوجد شي بالدي بق ؟ + المشكلة بأي سطر ؟ ؟

الدي بق م شفت شي , انا اسأل هل في اضافه للكود , وهذا الكود شغال .

Posted

جرب غير اسم الترايقر , ولا تنسى تغير اسم الاستقبال الي ارسلته بالترايقر

التغير ذا بتسويه للوحة من الثنتين

- Hashemite Kingdom Of Jordan -

Posted
14 minutes ago, #_iMr.[E]coo said:

جرب غير اسم الترايقر , ولا تنسى تغير اسم الاستقبال الي ارسلته بالترايقر

التغير ذا بتسويه للوحة من الثنتين

@#_iMr.[E]coo

مشكور ايكو .. قالي هالاكلام هيمو قبلك

لاكن جزاك الله الف خير حليت ازمه :]

يلا مشكور

تمت الافادة .. الرجاء اغلاق الموضوع 

@!#NssoR_)

 

Posted
1 minute ago, Aln3mani said:

@#_iMr.[E]coo

مشكور ايكو .. قالي هالاكلام هيمو قبلك

لاكن جزاك الله الف خير حليت ازمه :]

يلا مشكور

تمت الافادة .. الرجاء اغلاق الموضوع 

@!#NssoR_)

 

حياك الله :-)

- Hashemite Kingdom Of Jordan -

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