Mr-Kartha Posted August 24, 2012 Share Posted August 24, 2012 السلام عليكم ورحمة الله وبركاته انا سويت شوب ريس بس ما شتغل هاذ ملف الكلنت GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Scrollpane = {} GUIEditor_Window[1] = guiCreateWindow(414,125,327,392,"شوب ريس/مستر الكارثه الاصدار الاول",false) GUIEditor_Image[1] = guiCreateStaticImage(0.052,0.1046,0.3609,0.2066,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Scrollpane[1] = guiCreateScrollPane(247,-563,0,0,false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(0.0581,0.4184,0.37,0.2066,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(0.5688,0.2959,0.3639,0,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.5229,0.1046,0.4281,0.1888,"اصلاح السياره",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.5291,0.4158,0.422,0.1888,"نيترو",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.5413,0.7347,0.419,0.1862,"تعديل",true,GUIEditor_Window[1]) GUIEditor_Image[4] = guiCreateStaticImage(0.0734,0.7117,0.367,0.2117,"images/mtalogo.png",true,GUIEditor_Window[1]) guiSetVisible (GUIEditor_Window[1], false) ------------------------------------------------------انهاء النافذه-------------------------------------------------- addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == buyNitro ) then triggerServerEvent("1",getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == buyRepair ) then triggerServerEvent("2",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == buyFlip ) then triggerServerEvent("3",getLocalPlayer()) end end ) ------بدايه زر النافذه------- bindKey ( "F7" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) ------نهاية زر النافذه------- وهاذ ملف السيرفر function nitro() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) end end addEvent("buyNitro", true) addEventHandler( "buyNitro",getRootElement(),nitro ) function fix() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ 3,000 ]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) end end addEvent("buyRepair", true) addEventHandler( "buyRepair",getRootElement(),fix ) function flip() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source)) setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ 3,000 ]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) end end addEvent("buyFlip", true) addEventHandler( "buyFlip",getRootElement(),flip ) وش اسوي حتا اربط الازارا واصلا انافذه ما تفتح الزبده اعبروني سويت كلنت بس ملف سيرفر !!! ما عرف اربط الازرار صراح اول مره اصمم شوب وابي اتعلم من الاخوه الاعرب انا صممت نوافذ وربط الارار فيها بس اما الشوب لنعتمد عليكم شوي ونشاء الله اذا تعلمت بعتمد على نفسي وشكرا Link to comment
Tete omar Posted August 24, 2012 Share Posted August 24, 2012 Client GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Scrollpane = {} GUIEditor_Window[1] = guiCreateWindow(414,125,327,392,"شوب ريس/مستر الكارثه الاصدار الاول",false) GUIEditor_Image[1] = guiCreateStaticImage(0.052,0.1046,0.3609,0.2066,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Scrollpane[1] = guiCreateScrollPane(247,-563,0,0,false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(0.0581,0.4184,0.37,0.2066,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(0.5688,0.2959,0.3639,0,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.5229,0.1046,0.4281,0.1888,"اصلاح السياره",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.5291,0.4158,0.422,0.1888,"نيترو",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.5413,0.7347,0.419,0.1862,"تعديل",true,GUIEditor_Window[1]) GUIEditor_Image[4] = guiCreateStaticImage(0.0734,0.7117,0.367,0.2117,"images/mtalogo.png",true,GUIEditor_Window[1]) guiSetVisible (GUIEditor_Window[1], false) ------------------------------------------------------انهاء النافذه-------------------------------------------------- addEventHandler ("onClientGUIClick", root, function( ) if ( source == buyNitro ) then triggerServerEvent("1",getLocalPlayer()) elseif( source == buyRepair ) then triggerServerEvent("2",getLocalPlayer()) elseif( source == buyFlip ) then triggerServerEvent("3",getLocalPlayer()) end end bindKey("F7","down",function( ) if guiGetVisible ( GUIEditor_Window[1] ) == false then guiSetVisible ( GUIEditor_Window[1] , true ) showCursor ( true ) else guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) guiSetInputEnabled ( false ) end end) server addEvent("1", true) addEventHandler("1", root, function( ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) end end) addEvent("2", true) addEventHandler( "2", root, function( ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ 3,000 ]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) end end addEvent("3", true) addEventHandler( "3", root, function( ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source)) setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ 3,000 ]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) end end ملاحظة : انا لقيتك تسوي افراق كبييييييرة بين كل سطر وسطر هذا احياناً ما يكون مضبوط if source == ... then triggerServerEvent يا ليت تخليه منظم ثاني مرة Link to comment
hassan.k.s.a Posted August 24, 2012 Share Posted August 24, 2012 Client GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Scrollpane = {} GUIEditor_Window[1] = guiCreateWindow(414,125,327,392,"شوب ريس/مستر الكارثه الاصدار الاول",false) GUIEditor_Image[1] = guiCreateStaticImage(0.052,0.1046,0.3609,0.2066,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Scrollpane[1] = guiCreateScrollPane(247,-563,0,0,false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(0.0581,0.4184,0.37,0.2066,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(0.5688,0.2959,0.3639,0,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.5229,0.1046,0.4281,0.1888,"اصلاح السياره",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.5291,0.4158,0.422,0.1888,"نيترو",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.5413,0.7347,0.419,0.1862,"تعديل",true,GUIEditor_Window[1]) GUIEditor_Image[4] = guiCreateStaticImage(0.0734,0.7117,0.367,0.2117,"images/mtalogo.png",true,GUIEditor_Window[1]) guiSetVisible (GUIEditor_Window[1], false) ------------------------------------------------------انهاء النافذه-------------------------------------------------- addEventHandler ("onClientGUIClick", root, function( ) if ( source == buyNitro ) then triggerServerEvent("1",getLocalPlayer()) elseif( source == buyRepair ) then triggerServerEvent("2",getLocalPlayer()) elseif( source == buyFlip ) then triggerServerEvent("3",getLocalPlayer()) end end bindKey("F7","down",function( ) if guiGetVisible ( GUIEditor_Window[1] ) == false then guiSetVisible ( GUIEditor_Window[1] , true ) showCursor ( true ) else guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) guiSetInputEnabled ( false ) end end) server addEvent("1", true) addEventHandler("1", root, function( ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) end end) addEvent("2", true) addEventHandler( "2", root, function( ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ 3,000 ]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) end end addEvent("3", true) addEventHandler( "3", root, function( ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source)) setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ 3,000 ]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) end end ملاحظة : انا لقيتك تسوي افراق كبييييييرة بين كل سطر وسطر هذا احياناً ما يكون مضبوط if source == ... then triggerServerEvent يا ليت تخليه منظم ثاني مرة ض1 كنت مثله آول انا ض1 الحيين موداتي الجديده (اكوادي) ولا سطر فاضي ض1 Link to comment
Mr-Kartha Posted August 25, 2012 Author Share Posted August 25, 2012 يعطيكم العافيه يا حلوين جاري الجرب بعد الابداعات حقتكم ض1 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