Aln3mani Posted September 4, 2017 Posted September 4, 2017 (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 September 4, 2017 by Aln3mani
MR.StoRm Posted September 4, 2017 Posted September 4, 2017 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 ) الي يعرف يساعدني :] وشكرا .. المشكلة وين ؟؟
Aln3mani Posted September 4, 2017 Author Posted September 4, 2017 Just now, MR.StoRm said: المشكلة وين ؟؟ لو سويت مثل تصميم اللوحه و اضفت خاصيه جديده م تشتغل اللوحتين القديمه و الجديده
MR.StoRm Posted September 4, 2017 Posted September 4, 2017 Just now, Aln3mani said: لو سويت مثل تصميم اللوحه و اضفت خاصيه جديده م تشتغل اللوحتين القديمه و الجديده يوجد شي بالدي بق ؟ + المشكلة بأي سطر ؟ ؟
Aln3mani Posted September 4, 2017 Author Posted September 4, 2017 Just now, MR.StoRm said: يوجد شي بالدي بق ؟ + المشكلة بأي سطر ؟ ؟ الدي بق م شفت شي , انا اسأل هل في اضافه للكود , وهذا الكود شغال .
Aln3mani Posted September 4, 2017 Author Posted September 4, 2017 هل حد يقدر يساعدني ؟ @#_iMr.[E]coo @#Himoo
Doffy Posted September 4, 2017 Posted September 4, 2017 Just now, Aln3mani said: هل حد يقدر يساعدني ؟ @#_iMr.[E]coo @#Himoo debugscript 3 وش يطلعلك ؟
Aln3mani Posted September 4, 2017 Author Posted September 4, 2017 14 minutes ago, #Himoo said: debugscript 3 وش يطلعلك ؟ م يطلع شي ولا كتبته هنا .
^iiEcoo'x_) Posted September 4, 2017 Posted September 4, 2017 جرب غير اسم الترايقر , ولا تنسى تغير اسم الاستقبال الي ارسلته بالترايقر التغير ذا بتسويه للوحة من الثنتين - Hashemite Kingdom Of Jordan -
Aln3mani Posted September 4, 2017 Author Posted September 4, 2017 14 minutes ago, #_iMr.[E]coo said: جرب غير اسم الترايقر , ولا تنسى تغير اسم الاستقبال الي ارسلته بالترايقر التغير ذا بتسويه للوحة من الثنتين @#_iMr.[E]coo مشكور ايكو .. قالي هالاكلام هيمو قبلك لاكن جزاك الله الف خير حليت ازمه :] يلا مشكور تمت الافادة .. الرجاء اغلاق الموضوع @!#NssoR_)
^iiEcoo'x_) Posted September 4, 2017 Posted September 4, 2017 1 minute ago, Aln3mani said: @#_iMr.[E]coo مشكور ايكو .. قالي هالاكلام هيمو قبلك لاكن جزاك الله الف خير حليت ازمه :] يلا مشكور تمت الافادة .. الرجاء اغلاق الموضوع @!#NssoR_) حياك الله - Hashemite Kingdom Of Jordan -
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now