Mohamed_king Posted October 14, 2016 Share Posted October 14, 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 ) السلام عليكم عندي مشكلة بسيطة انا عامل زر السكير لما اضغط عليه يشتغل طبيعي مشكلة اهنئ لما اضغط علي زر بافرة مايعطيني سلاح ممكن مساعدة للخبراء فقط انا سويت ماركر للكشك دخان بس ف مشكلة زر اول امتع سكير انرص علي زر يعطيني سلاح اما زر تاني فيه خلل انرص علي زر بافرة مايعطيني سلاح Link to comment
mahmod3 Posted October 14, 2016 Share Posted October 14, 2016 13 minutes ago, Mohamed_king 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 ) السلام عليكم عندي مشكلة بسيطة انا عامل زر السكير لما اضغط عليه يشتغل طبيعي مشكلة اهنئ لما اضغط علي زر بافرة مايعطيني سلاح ممكن مساعدة للخبراء فقط انا سويت ماركر للكشك دخان بس ف مشكلة زر اول امتع سكير انرص علي زر يعطيني سلاح اما زر تاني فيه خلل انرص علي زر بافرة مايعطيني سلاح على اعتقادي مافي سلاح الايدي الخاص فيه 48 Link to comment
Mohamed_king Posted October 14, 2016 Author Share Posted October 14, 2016 24 minutes ago, mahmod3 said: على اعتقادي مافي سلاح الايدي الخاص فيه 48 اهـا. شكرا Link to comment
mahmod3 Posted October 14, 2016 Share Posted October 14, 2016 Just now, Mohamed_king said: اهـا. شكرا العفو حياك الله Link to comment
Mohamed_king Posted October 14, 2016 Author Share Posted October 14, 2016 6 minutes ago, mahmod3 said: العفو حياك الله كلامك صحيح مافي سلاح ب اي دي 48 شكرا اخي محمود سررت بتعامل معاك Link to comment
mahmod3 Posted October 14, 2016 Share Posted October 14, 2016 14 minutes ago, Mohamed_king said: كلامك صحيح مافي سلاح ب اي دي 48 شكرا اخي محمود سررت بتعامل معاك العفو 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