Mohamed_king Posted October 13, 2016 Share Posted October 13, 2016 Client Font = guiCreateFont( "font.ttf", 13 ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0.2618,0.1567,0.4681,0.5556,"كشك",true) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(32,138,207,177,"weskt.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(418,134,194,194,"bafra.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(59,340,171,64,"السكير",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(426,340,171,64,"بافرة",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(243,426,194,60,"اغلاق",false,GUIEditor_Window[1]) marker = createMarker ( -709.19879150391,958.26226806641,11, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then showCursor(true) guiSetVisible(GUIEditor_Window[1],true) end end ) function onGuiClick () if (source == GUIEditor_Button[1]) then triggerServerEvent ("Weapon", getLocalPlayer()) end end function onGuiClick () if (source == GUIEditor_Button[2]) then triggerServerEvent ("Weapon2", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) --- addEventHandler("onClientGUIClick",getRootElement(), function (player) if (source == GUIEditor_Button[3]) then guiSetVisible (GUIEditor_Window[1],false) if showCursor (false) then end end end) server addEvent( "Weapon", true ) function Weapon1 () giveWeapon(source, 46, 100) giveWeapon(source, 46, 100) setElementHealth (source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "سكيرا هنيئا", source, 255, 0, 0 ) end guiSetVisible(GUIEditor_Window[1],false) addEventHandler ( "Weapon", getRootElement(), Weapon1 ) addEvent( "Weapon2", true ) function Weapon2 () giveWeapon(source, 48, 100) giveWeapon(source, 48, 100) setElementHealth (source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "بافرة طيبة للطيب", source, 255, 0, 0 ) end guiSetVisible(GUIEditor_Window[1],false) addEventHandler ( "Weapon2", getRootElement(), Weapon1 ) انا حبيت اعمل ماركر للكشك امتاعي لما اضغط علي السكير او بافرة مابده تخدم ممكن تصخيخ كود وجعل سعر خاص ب اغراض الاتنين وشكر Link to comment
iPrestege Posted October 13, 2016 Share Posted October 13, 2016 -- On Client Side Font = guiCreateFont( "font.ttf", 13 ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0.2618,0.1567,0.4681,0.5556,"كشك",true) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(32,138,207,177,"weskt.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(418,134,194,194,"bafra.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(59,340,171,64,"السكير",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(426,340,171,64,"بافرة",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(243,426,194,60,"اغلاق",false,GUIEditor_Window[1]) marker = createMarker ( -709.19879150391,958.26226806641,11, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (player == localPlayer) then showCursor(true) guiSetVisible(GUIEditor_Window[1],true) end end ) function onGuiClick () if (source == GUIEditor_Button[1]) then triggerServerEvent ("Weapon", getLocalPlayer()) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("Weapon2", getLocalPlayer()) elseif (source == GUIEditor_Button[3]) then guiSetVisible (GUIEditor_Window[1],false) showCursor ( false ) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) -- On Server Side function Weapon1 () giveWeapon(source, 46, 100) giveWeapon(source, 46, 100) setElementHealth (source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "سكيرا هنيئا", source, 255, 0, 0 ) end addEvent( "Weapon", true ) addEventHandler ( "Weapon", getRootElement(), Weapon1 ) function Weapon2 () giveWeapon(source, 48, 100) giveWeapon(source, 48, 100) setElementHealth (source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "بافرة طيبة للطيب", source, 255, 0, 0 ) end addEvent( "Weapon2", true ) addEventHandler ( "Weapon2", getRootElement(), Weapon2 ) بالنسبة لك اذا تبغاها تكون بفلوس استعمل : getPlayerMoney takePlayerMoney Link to comment
Mohamed_king Posted October 13, 2016 Author Share Posted October 13, 2016 كفو اخوي فهد الحين بجرب 10 minutes ago, FaHaD said: -- On Client Side Font = guiCreateFont( "font.ttf", 13 ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0.2618,0.1567,0.4681,0.5556,"كشك",true) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(32,138,207,177,"weskt.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(418,134,194,194,"bafra.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(59,340,171,64,"السكير",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(426,340,171,64,"بافرة",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(243,426,194,60,"اغلاق",false,GUIEditor_Window[1]) marker = createMarker ( -709.19879150391,958.26226806641,11, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (player == localPlayer) then showCursor(true) guiSetVisible(GUIEditor_Window[1],true) end end ) function onGuiClick () if (source == GUIEditor_Button[1]) then triggerServerEvent ("Weapon", getLocalPlayer()) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("Weapon2", getLocalPlayer()) elseif (source == GUIEditor_Button[3]) then guiSetVisible (GUIEditor_Window[1],false) showCursor ( false ) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) -- On Server Side function Weapon1 () giveWeapon(source, 46, 100) giveWeapon(source, 46, 100) setElementHealth (source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "سكيرا هنيئا", source, 255, 0, 0 ) end addEvent( "Weapon", true ) addEventHandler ( "Weapon", getRootElement(), Weapon1 ) function Weapon2 () giveWeapon(source, 48, 100) giveWeapon(source, 48, 100) setElementHealth (source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "بافرة طيبة للطيب", source, 255, 0, 0 ) end addEvent( "Weapon2", true ) addEventHandler ( "Weapon2", getRootElement(), Weapon2 ) بالنسبة لك اذا تبغاها تكون بفلوس استعمل : getPlayerMoney takePlayerMoney Link to comment
Mohamed_king Posted October 13, 2016 Author Share Posted October 13, 2016 30 minutes ago, FaHaD said: -- On Client Side Font = guiCreateFont( "font.ttf", 13 ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0.2618,0.1567,0.4681,0.5556,"كشك",true) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(32,138,207,177,"weskt.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(418,134,194,194,"bafra.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(59,340,171,64,"السكير",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(426,340,171,64,"بافرة",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(243,426,194,60,"اغلاق",false,GUIEditor_Window[1]) marker = createMarker ( -709.19879150391,958.26226806641,11, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (player == localPlayer) then showCursor(true) guiSetVisible(GUIEditor_Window[1],true) end end ) function onGuiClick () if (source == GUIEditor_Button[1]) then triggerServerEvent ("Weapon", getLocalPlayer()) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("Weapon2", getLocalPlayer()) elseif (source == GUIEditor_Button[3]) then guiSetVisible (GUIEditor_Window[1],false) showCursor ( false ) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) -- On Server Side function Weapon1 () giveWeapon(source, 46, 100) giveWeapon(source, 46, 100) setElementHealth (source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "سكيرا هنيئا", source, 255, 0, 0 ) end addEvent( "Weapon", true ) addEventHandler ( "Weapon", getRootElement(), Weapon1 ) function Weapon2 () giveWeapon(source, 48, 100) giveWeapon(source, 48, 100) setElementHealth (source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "بافرة طيبة للطيب", source, 255, 0, 0 ) end addEvent( "Weapon2", true ) addEventHandler ( "Weapon2", getRootElement(), Weapon2 ) بالنسبة لك اذا تبغاها تكون بفلوس استعمل : getPlayerMoney takePlayerMoney شكرا اخوي فهد اشتغل مود بس لما اندير اتيار للسكير ولا تانية به يعطيني بروشوت ممكن تغيرلي اي بي امتع اسلحة الي 46 48 Link to comment
iPrestege Posted October 13, 2016 Share Posted October 13, 2016 والله ماني فاهم وش تقول حاول تتكلم لغة فصحـى Link to comment
Abdul KariM Posted October 13, 2016 Share Posted October 13, 2016 (edited) من سطر 25 الى سطر 35 احذفه واستبدله بهذا local aId = 46 local xId = 48 function onGuiClick () if (source == GUIEditor_Button[1]) then triggerServerEvent ("Weapon", getLocalPlayer() , aId ) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("Weapon", getLocalPlayer() , xId ) elseif (source == GUIEditor_Button[3]) then guiSetVisible (GUIEditor_Window[1],false) showCursor ( false ) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) والسيرفر سايد استبدله بهذا function Weapon1 ( theId ) giveWeapon(source, theId, 100,true) giveWeapon(source, theId, 100,true) setElementHealth ( source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "سكيرا هنيئا", source, 255, 0, 0 ) end addEvent( "Weapon", true ) addEventHandler ( "Weapon", getRootElement(), Weapon1 ) ولاتنسى تغير الايدي في سطر الاول والسطر الثالث لـ الايدي الي تبيه هنا فيه جميع الاسلحة شوف السلاح الي يناسبك وحط ايديه https://wiki.multitheftauto.com/wiki/Weapons بالتوفيق Edited October 13, 2016 by Abdul KariM 1 Link to comment
Mohamed_king Posted October 13, 2016 Author Share Posted October 13, 2016 27 minutes ago, FaHaD said: والله ماني فاهم وش تقول حاول تتكلم لغة فصحـى انا اريد تغير اي بي سلاح مايرضي ايغير غيرته ايجيني مطلة ممكن مساعدتك Link to comment
iPrestege Posted October 13, 2016 Share Posted October 13, 2016 افتح الويكي وشوف الايديات وحدد الايدي وانسخ الرقم او احفظة وحطة في وظيفة اعطاء السلاح الارقمنت الثاني Link to comment
Mohamed_king Posted October 13, 2016 Author Share Posted October 13, 2016 3 minutes ago, FaHaD said: افتح الويكي وشوف الايديات وحدد الايدي وانسخ الرقم او احفظة وحطة في وظيفة اعطاء السلاح الارقمنت الثاني 1 hour ago, FaHaD said: -- On Client Side Font = guiCreateFont( "font.ttf", 13 ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0.2618,0.1567,0.4681,0.5556,"كشك",true) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(32,138,207,177,"weskt.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(418,134,194,194,"bafra.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(59,340,171,64,"السكير",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(426,340,171,64,"بافرة",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(243,426,194,60,"اغلاق",false,GUIEditor_Window[1]) marker = createMarker ( -709.19879150391,958.26226806641,11, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (player == localPlayer) then showCursor(true) guiSetVisible(GUIEditor_Window[1],true) end end ) function onGuiClick () if (source == GUIEditor_Button[1]) then triggerServerEvent ("Weapon", getLocalPlayer()) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("Weapon2", getLocalPlayer()) elseif (source == GUIEditor_Button[3]) then guiSetVisible (GUIEditor_Window[1],false) showCursor ( false ) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) -- On Server Side function Weapon1 () giveWeapon(source, 46, 100) giveWeapon(source, 46, 100) setElementHealth (source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "سكيرا هنيئا", source, 255, 0, 0 ) end addEvent( "Weapon", true ) addEventHandler ( "Weapon", getRootElement(), Weapon1 ) function Weapon2 () giveWeapon(source, 48, 100) giveWeapon(source, 48, 100) setElementHealth (source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "بافرة طيبة للطيب", source, 255, 0, 0 ) end addEvent( "Weapon2", true ) addEventHandler ( "Weapon2", getRootElement(), Weapon2 ) بالنسبة لك اذا تبغاها تكون بفلوس استعمل : getPlayerMoney takePlayerMoney يتعدل من ملف سيرفر اسلحة ولا Link to comment
iPrestege Posted October 13, 2016 Share Posted October 13, 2016 الحين مسوي الكود ولاتدري وين الاسلحة؟ ايه سيرفر giveWeapon Link to comment
mahmod3 Posted October 13, 2016 Share Posted October 13, 2016 1 minute ago, FaHaD said: الحين مسوي الكود ولاتدري وين الاسلحة؟ ايه سيرفر giveWeapon شكله مش هوا مدايره عموما تقدر تغيره من هني giveWeapon(source, 48, 100) giveWeapon(source, 48, 100) هني 48 تغيرها الايدي الي تبيه 100 الرصاص او الكميبة Link to comment
Abdul KariM Posted October 13, 2016 Share Posted October 13, 2016 لو انه قاري ردي زين كان عرف Link to comment
Mohamed_king Posted October 13, 2016 Author Share Posted October 13, 2016 Just now, Abdul KariM said: لو انه قاري ردي زين كان عرف انا عملت اخطاء كتيرا ف ملف سيرفر Link to comment
mahmod3 Posted October 13, 2016 Share Posted October 13, 2016 6 minutes ago, Abdul KariM said: لو انه قاري ردي زين كان عرف انا متأكد انه ما عبر ردك حتى واخد نسخ ولصق Link to comment
Mohamed_king Posted October 13, 2016 Author Share Posted October 13, 2016 52 minutes ago, Abdul KariM said: من سطر 25 الى سطر 35 احذفه واستبدله بهذا local aId = 46 local xId = 48 function onGuiClick () if (source == GUIEditor_Button[1]) then triggerServerEvent ("Weapon", getLocalPlayer() , aId ) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("Weapon", getLocalPlayer() , xId ) elseif (source == GUIEditor_Button[3]) then guiSetVisible (GUIEditor_Window[1],false) showCursor ( false ) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) والسيرفر سايد استبدله بهذا function Weapon1 ( theId ) giveWeapon(source, theId, 100,true) giveWeapon(source, theId, 100,true) setElementHealth ( source, 100 ) setPedArmor( source, 0 ) outputChatBox ( "سكيرا هنيئا", source, 255, 0, 0 ) end addEvent( "Weapon", true ) addEventHandler ( "Weapon", getRootElement(), Weapon1 ) ولاتنسى تغير الايدي في سطر الاول والسطر الثالث لـ الايدي الي تبيه هنا فيه جميع الاسلحة شوف السلاح الي يناسبك وحط ايديه https://wiki.multitheftauto.com/wiki/Weapons بالتوفيق اول كود لل client وتاني للسيرفر ؟ Link to comment
Mohamed_king Posted October 13, 2016 Author Share Posted October 13, 2016 مشكلة الان هي خيار امتع بافرة لما اضغط عليه مايعطيني سلاح Link to comment
iPrestege Posted October 13, 2016 Share Posted October 13, 2016 والله مدري وش لغتك اللي تتكلم فيها لكن امتع بافرة اشوفها طلامس 1 Link to comment
Mohamed_king Posted October 13, 2016 Author Share Posted October 13, 2016 5 hours ago, FaHaD said: والله مدري وش لغتك اللي تتكلم فيها لكن امتع بافرة اشوفها طلامس لغة عربية شن ندوي امازيغي (: 5 hours ago, FaHaD said: والله مدري وش لغتك اللي تتكلم فيها لكن امتع بافرة اشوفها طلامس قصدي اني زر بافرة يلي عامله اني لما اضغط عليه ما يعطيني سلاح Link to comment
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