Jump to content

Mr.R

Members
  • Posts

    775
  • Joined

  • Last visited

Everything posted by Mr.R

  1. يقدر يقول كذا بعد addEventHandler( "onClientGUIClick", root, function ( ) if ( source == اسم الزر ) then if ( isTimer ( Timer ) ) then return end Timer = setTimer ( function ( ) end, 5000, 1 ) end end )
  2. هذا طلبكـ ولا تنسى تحط قيم اللوحه عشان الازرار والصور وكل شيء سوته في اللوحه يطلع لكـ addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == اسم الزر ) then -- اسم الزر الي بعد ماتضغطه يطلع لك اللوحه guiSetVisible ( اسم اللوحه, true ) -- هنا حط اسم اللوحه الي تبيها تطلع بعد ما تضغط الزر -- هنا حط اللوحه والقيم الي فيها مثل الصور والازرار عشان تطلع elseif ( source == اسم الزر ) then -- اسم الزر حق اخفاء اللوحه الي طلعتها guiSetVisible ( اسم اللوحه, false ) -- اخفاء اللوحه end end ) Edit : تم التعديل
  3. Dx مشاء الله شغل قيم مود خورافي , بالتوفيق <3
  4. مود استفيد منه كثير اسوي ماركرات وشغلات وكذا مشكور إلى الامام
  5. اول شيء سوي تيم من الادمنيه واختار شخصيه من اللوحه وجرب الكودين هذي #Client addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == اسم الزر ) then -- اسم زر دخول التيم triggerServerEvent ( "setTeam_", localPlayer ) end end ) #Server addEvent ( "setTeam_", true ) addEventHandler ( "setTeam_", root, function ( ) setPlayerTeam ( source, "اسم التيم الي سويته من الادمنيه" ) outputChatBox ( "#00FF00* تم اختيار شخصيه بنجاح ودخول التيم", source, 255, 255, 255, true ) end ) او تقدر تخلي سيرفر كذا , يعني بدون ماتسوي تيم من الادمنيه addEvent ( "setTeam_", true ) addEventHandler ( "setTeam_", root, function ( ) local Team_ = createTeam ( "اسم التيم", 255, 0, 0 ) if ( Team_ ) then setPlayerTeam ( source, Team_ ) outputChatBox ( "#00FF00* تم اختيار شخصيه بنجاح ودخول التيم", source, 255, 255, 255, true ) end )
  6. #Client addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == button ) then triggerServerEvent ( "pkill", localPlayer ) end end ) #Server addEvent ( "pkill", true ) addEventHandler ( "pkill", root, function ( ) killPlayer ( source, source ) outputChatBox ( "#00FF00* تم قتل الاعب", source, 255, 255, 255, true ) end )
  7. الحمد اللله ماعمري اعتزلت الا مره وحده كذا زهقت من كل شيء رحت لسوني 3 وجلست ثلاث شهور بعدين رجعت إلى الحين <3
  8. طيب ع الاقل اشكر الي بذل مجهود عشانكـ والي مايبي يقعد مايلحقه الا ظله
  9. ايام الدراسه بلكثير 3 ساعات العشاء .. العصر اطلع وكذا ايام الاجازه اذا ماسافرت اجلس طول اليوم
  10. الاسم الحالي : راجح كانو بيسموني : فيصل
  11. حياكـ الله ^ .. ايه
  12. كل شيء صحيح بس شيل getLocalPlayer source من سيرفر وحط بدالها لان هذا الفنشكن من جانب كلنت بس وتأكد من كل ايفينت انه صحيح
  13. addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == اسم الزر ) then -- اسم الزر الي اذا ضغطته تطلع اللوحه guiSetVisible ( اسم اللوحه, true ) -- هنا حط اللوحه والقيم الي فيها عشان تظهر elseif ( source == اسم زر اغلاق اللوحه ) then -- انشاء زر لاغلاق اللوحه بعد فتحها guiSetVisible ( اسم اللوحه, false ) showCursor ( false ) end end )
  14. كان عندي غلط بحرف واحد وعلمني عليه ابوعابد وصلحت الكود فوق جربه جربه ماشوف فيه اي خطأ GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(275, 39, 288, 447, "[VIP] By....", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible ( GUIEditor.window[1], false ) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 17, 269, 420, "vip.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(8, 13, 78, 39, "infernus", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(176, 13, 78, 39, "Bullet", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(176, 124, 78, 39, "Maverick", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(10, 124, 78, 39, "NRG-500", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(6, 343, 78, 39, "FixCar", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(6, 231, 78, 39, "King-Fo", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(172, 343, 78, 39, "Nitro", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(172, 231, 78, 39, "BOXING", false, GUIEditor.window[1]) end ) bindKey ( "F5", "down", function ( ) guiSetVisible ( GUIEditor_window[1], not guiGetVisible ( GUIEditor_window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_window[1] ) ) end ) addEventHandler ( "onClientRender", root, function ( ) dxDrawLine ( 329, 127, 382, 134, tocolor( 255, 255, 255, 255 ), 1, false) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.Button[1] ) then triggerServerEvent ( "infernus", localPlayer ) elseif ( source == GUIEditor.Button[2] ) then triggerServerEvent ( "Bullet", localPlayer ) elseif ( source == GUIEditor.Button[3] ) then triggerServerEvent ( "Maverick", localPlayer ) elseif ( source == GUIEditor.Button[4] ) then triggerServerEvent ( "NRG-500", localPlayer ) elseif ( source == GUIEditor.Button[5] ) then triggerServerEvent ( "FixCar", localPlayer ) elseif ( source == GUIEditor.Button[6] ) then triggerServerEvent ( "King-Fo", localPlayer ) elseif ( source == GUIEditor.Button[7] ) then triggerServerEvent ( "Nitro", localPlayer ) elseif ( source == GUIEditor.Button[8] ) then triggerServerEvent ( "BOXING", localPlayer) end end ) واذا فيه خطأ ف الكود شف الديبوق وش يقول وعطني خبر
  15. #Client GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(275, 39, 288, 447, "[VIP] By....", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible ( GUIEditor.window[1], false ) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 17, 269, 420, "vip.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(8, 13, 78, 39, "infernus", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(176, 13, 78, 39, "Bullet", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(176, 124, 78, 39, "Maverick", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(10, 124, 78, 39, "NRG-500", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(6, 343, 78, 39, "FixCar", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(6, 231, 78, 39, "King-Fo", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(172, 343, 78, 39, "Nitro", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(172, 231, 78, 39, "BOXING", false, GUIEditor.window[1]) end ) bindKey ( "F5", "down", function ( ) guiSetVisible ( GUIEditor_window[1], not guiGetVisible ( GUIEditor_window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_window[1] ) ) end ) addEventHandler ( "onClientRender", root, function ( ) dxDrawLine ( 329, 127, 382, 134, tocolor( 255, 255, 255, 255 ), 1, false) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.Button[1] ) then triggerServerEvent ( "infernus", localPlayer ) elseif ( source == GUIEditor.Button[2] ) then triggerServerEvent ( "Bullet", localPlayer ) elseif ( source == GUIEditor.Button[3] ) then triggerServerEvent ( "Maverick", localPlayer ) elseif ( source == GUIEditor.Button[4] ) then triggerServerEvent ( "NRG-500", localPlayer ) elseif ( source == GUIEditor.Button[5] ) then triggerServerEvent ( "FixCar", localPlayer ) elseif ( source == GUIEditor.Button[6] ) then triggerServerEvent ( "King-Fo", localPlayer ) elseif ( source == GUIEditor.Button[7] ) then triggerServerEvent ( "Nitro", localPlayer ) elseif ( source == GUIEditor.Button[8] ) then triggerServerEvent ( "BOXING", localPlayer) end end ) #Server addEvent ( "infernus", true ) addEventHandler ( "infernus", root, function ( ) local x, y, z = getElementPosition ( source ) local theVehicle = createVehicle ( 411, x, y, z ) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then warpPedIntoVehicle ( source, theVehicle ) else outputChatBox ( "Special properties for the Vip's", source, 255, 0, 0, true ) end end ) addEvent ( "Bullet", true ) addEventHandler ( "Bullet", root, function ( ) local x, y, z = getElementPosition ( source ) local theVehicle = createVehicle ( 541, x, y, z ) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then warpPedIntoVehicle ( source, theVehicle ) else outputChatBox ( "Special properties for the Vip's", source, 255, 0, 0, true ) end end ) addEvent ( "Maverick", true ) addEventHandler ( "Maverick", root, function ( ) local x, y, z = getElementPosition ( source ) local theVehicle = createVehicle ( 487, x, y, z ) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then warpPedIntoVehicle ( source, theVehicle ) else outputChatBox ( "Special properties for the Vip's", source, 255, 0, 0, true ) end end ) addEvent ( "Maverick", true ) addEventHandler ( "Maverick", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(487, x, y, z) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then warpPedIntoVehicle ( source, theVehicle ) else outputChatBox ( "Special properties for the Vip's", source, 255, 0, 0, true ) end end ) addEvent ( "NRG-500", true ) addEventHandler ( "NRG-500", root, function ( ) local x, y, z = getElementPosition ( source ) local theVehicle = createVehicle ( 522, x, y, z ) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then warpPedIntoVehicle ( source, theVehicle ) else outputChatBox ( "Special properties for the Vip's", source, 255, 0, 0, true ) end end ) addEvent ( "FixCar", true ) addEventHandler ( "FixCar", root, function ( ) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then local Vehicle = getPedOccupiedVehicle ( source ) if ( Vehicle ) then fixVehicle ( Vehicle ) outputChatBox ( "The vehicle was repaired successfully", source, 255, 0, 0, true ) end end end ) addEvent ( "King-Fo", true ) addEventHandler ( "King-Fo", root, function ( ) if getElementType ( source ) == "player" then if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then setPlayerFightingStyle ( source, 6 ) outputChatBox ( "Been given supernatural abilities", source, 255, 0, 0, true ) end end end ) addEvent ( "BOXING", true ) addEventHandler ( "BOXING", root, function ( ) if getElementType (source ) == "player" then if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then setPlayerFightingStyle ( source, 4 ) outputChatBox ( "Been given supernatural abilities", source, 255, 0, 0, true ) end end end ) #meta < info author="Professional" version="1.0" type="script" name="VipPanel"/> < script src="Client.lua" type="client" /> < script src="Server.lua" type="server" /> < file src="vip.png" />
  16. والله مادري شف المشكله الي قلت لك عنها حاول فيها لان مصدر المشكله هناك وبسألك سؤال اكوادك الي طرحتها بالموضوع فوق كانت تشتغل بشكل صحيح بس الروات ماتتلون ؟
  17. ^ عندك نقص او تسكير قوس من جانب سيرفر سطر 27 ومن جانب كلنت نفس الشيء سطر 142
  18. خطططير , صراحه خطير يالوحش بالتوفييق ^
  19. #Client GridList = guiCreateGridList ( 9, 20, 183, 248, false, Window ) guiGridListAddColumn ( GridList, "vehicle", 0.5 ) guiGridListAddColumn ( GridList, "$ money", 0.5 ) Vehilce = { [ 1 ] = { "Savana", 30000 }, -- هنا حط اسم السياره + السعر [ 2 ] = { "Bobcat", 50000 }, } for i,v in ipairs ( Vehilce ) do Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, 1, v[ 1 ], false, false ) guiGridListSetItemText ( GridList, Row, 2, "$"..v[ 2 ], false, false ) guiGridListSetItemData ( GridList, Row, 1, v[2] ) end addEvent ( "onUpMoney", true ) addEventHandler ( "onUpMoney", root, function onUp( ) guiGridListSetItemColor ( GridList, Row, 2, 0, 255, 0, 0 ) end ) addEvent ( "onDownMoney", true ) addEventHandler ( "onDownMoney", root, function onDown( ) guiGridListSetItemColor ( GridList, Row, 2, 0, 255, 0, 255 ) end ) #Server function ( ) local PlayerMoney = getPlayerMoney ( source ) if ( PlayerMoney ( source ) >= 30000 ) then triggerClientEvent ( source ,"onUpMoney", source ) elseif ( PlayerMoney ( source ) <= 30000 ) then triggerClientEvent ( source ,"onDownMoney", source ) end end debugscript 3 < جرب كذا واذا فيه اي مشكله شف الديبوق وش يقول وعطني خبر ^
  20. يإشيخ كم انتا كبير واصل واصل واصل ^#top, < موداتكـ مشكور عع الاهدإء <3
  21. جرب كذا bindKey ( "الزر الي يفتح اللوحه", "down", function ( ) guiSetVisible ( اسم اللوحه, not guiGetVisible ( اسم اللوحه ) ) showCursor ( guiGetVisible ( اسم اللوحه ) ) end ) ولا تنسى تحط تحت اللوحه الي سويتها guiSetVisible ( اسم اللوحه, false ) عشان ماتطلع بوجهك اول ماتشغل المود والاكواد مجربه وشغاله 100% اذا ماتشغلت عندكـ قلي وش الكلام الي يجيك في الدي بوق
×
×
  • Create New...