Jump to content

Mr-Demo

Members
  • Posts

    5
  • Joined

  • Last visited

Details

  • Gang
    S.B-Aci

Mr-Demo's Achievements

Vic

Vic (3/54)

0

Reputation

  1. مشكورين ثنينكم المهم انكم ساعدتو واشكرك خاص طلال
  2. GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0.1852,0.1393,0.6303,0.6719,"شوب مستر ديمو",true) GUIEditor_Button[1] = guiCreateButton(831,19,19,20,"x",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,42,843,465,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[1]) GUIEditor_Image[1] = guiCreateStaticImage(21,20,172,134,"deagle.png",false,GUIEditor_Tab[1]) GUIEditor_Image[2] = guiCreateStaticImage(210,23,168,127,"ak47.png",false,GUIEditor_Tab[1]) GUIEditor_Image[3] = guiCreateStaticImage(400,19,185,135,"m4.png",false,GUIEditor_Tab[1]) GUIEditor_Image[4] = guiCreateStaticImage(609,19,186,134,"mp5.png",false,GUIEditor_Tab[1]) GUIEditor_Button[2] = guiCreateButton(34,157,146,36,"150",false,GUIEditor_Tab[1]) GUIEditor_Button[3] = guiCreateButton(216,158,146,36,"230",false,GUIEditor_Tab[1]) GUIEditor_Button[4] = guiCreateButton(416,159,146,36,"200",false,GUIEditor_Tab[1]) GUIEditor_Button[5] = guiCreateButton(628,159,146,36,"170",false,GUIEditor_Tab[1]) GUIEditor_Image[5] = guiCreateStaticImage(215,228,180,150,"pistol-s.png",false,GUIEditor_Tab[1]) GUIEditor_Image[6] = guiCreateStaticImage(9,229,188,149,"pistol.png",false,GUIEditor_Tab[1]) GUIEditor_Image[7] = guiCreateStaticImage(404,230,187,142,"shotgun.png",false,GUIEditor_Tab[1]) GUIEditor_Image[8] = guiCreateStaticImage(623,229,172,144,"sniper.png",false,GUIEditor_Tab[1]) GUIEditor_Button[6] = guiCreateButton(635,381,146,36,"300",false,GUIEditor_Tab[1]) GUIEditor_Button[7] = guiCreateButton(420,380,146,36,"100",false,GUIEditor_Tab[1]) GUIEditor_Button[8] = guiCreateButton(27,379,146,36,"50",false,GUIEditor_Tab[1]) GUIEditor_Button[9] = guiCreateButton(220,379,146,36,"110",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[1]) GUIEditor_Image[9] = guiCreateStaticImage(35,13,176,158,"spaz-12.png",false,GUIEditor_Tab[2]) GUIEditor_Image[10] = guiCreateStaticImage(312,11,193,160,"tec-9.png",false,GUIEditor_Tab[2]) GUIEditor_Image[11] = guiCreateStaticImage(614,6,204,169,"uzi.png",false,GUIEditor_Tab[2]) GUIEditor_Image[12] = guiCreateStaticImage(318,208,199,172,"grenade.png",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(49,164,151,33,"300",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(331,166,151,33,"120",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(645,168,151,33,"105",false,GUIEditor_Tab[2]) GUIEditor_Button[13] = guiCreateButton(342,376,151,33,"1500",false,GUIEditor_Tab[2]) GUIEditor_Label[1] = guiCreateLabel(557,316,282,119,"7MoDy",false,GUIEditor_Tab[2]) guiSetFont(GUIEditor_Label[1],"sa-gothic") function BuyWeapon(money,id,ammo,name) local m1 = getPlayerMoney(getLocalPlayer()) if ( m1 >= money ) then takePlayerMoney(money) triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) outputChatBox("لقد اشترية " .. name .. "",0,255,0,true) else outputChatBox("ليس لديك مال",255,0,0,true) end end addEventHandler("onClientGUIClick",getRootElement(), function () if ( source == GUIEditor_Button[2] ) then BuyWeapon(150,24,300,"Deagle") elseif ( source == GUIEditor_Button[3] ) then BuyWeapon(230,30,500,"ak47") elseif ( source == GUIEditor_Button[4] ) then BuyWeapon(200,31,500,"m4") elseif ( source == GUIEditor_Button[5] ) then BuyWeapon(170,29,500,"mp5") elseif ( source == GUIEditor_Button[8] ) then BuyWeapon(50,22,300,"Pistol") elseif ( source == GUIEditor_Button[9] ) then BuyWeapon(110,23,300,"pistol-s") elseif ( source == GUIEditor_Button[7] ) then BuyWeapon(100,25,600,"Shotgun") elseif ( source == GUIEditor_Button[6] ) then BuyWeapon(300,34,500,"Sniper") elseif ( source == GUIEditor_Button[10] ) then BuyWeapon(300,27,300,"SPAZ-12") elseif ( source == GUIEditor_Button[11] ) then BuyWeapon(120,32,500,"tec-9") elseif ( source == GUIEditor_Button[12] ) then BuyWeapon(105,28,500,"uzi") elseif ( source == GUIEditor_Button[13] ) then BuyWeapon(1500,16,15,"Grenade") end end ) addEvent("onBuy",true) addEventHandler("onBuy",getRootElement(), function (id,ammo) giveWeapon(source,id,ammo) end ) bindKey ( "F2" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) guiSetInputEnabled ( false ) else guiSetVisible ( GUIEditor_Window[1] , true ) showCursor ( false ) guiSetInputEnabled ( true ) playSound ("other/open.wav") end end )
  3. نفس المشكله حطيت اسم النافذ ولاتغير شيء
  4. السلام عليكم مشكله بسيط هي سويت شوب لمن اشغله يطلع في الشاشه لمن اضغط اف2 يروح انا ابي العكس لمن اضغط اف2 يشتغل لمن اضغط اف 2 مره ثانيه يختفي ممكن تساعدوني
×
×
  • Create New...