Jump to content

AHMAD1234

Members
  • Posts

    485
  • Joined

  • Last visited

Everything posted by AHMAD1234

  1. اسمع يالطيب خذ ذا الكود احسن واسهل من حق سعد ---client--- GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(312,152,165,339,"skins",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,19,147,274,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"skin ID",60) GUIEditor_Button[1] = guiCreateButton(9,296,69,34,"ok",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(86,296,70,34,"close",false,GUIEditor_Window[1]) local skins = {{0},{1},{2},{7},{8},{9},{10},{13},{14},{15},{16},{17},{18},{19},{20},{21},{22},{23},{24},{25},{26},{27},{28},{29},{30},{31},{32},{33},{34}} for i,v in ipairs (skins) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1], row, 1, v[1], false, true) end function onClientClick (button, state, absoluteX, absoluteYe) if (source == GUIEditor_Button[1]) then if (guiGridListGetSelectedItem (GUIEditor_Grid[1])) then local skin = guiGridListGetItemText (GUIEditor_Grid[1], guiGridListGetSelectedItem (GUIEditor_Grid[1]), 1) triggerServerEvent ("skins", getLocalPlayer(), skin) end end end addEventHandler ("onClientGUIClick", GUIEditor_Button[1], onClientClick) function onClientClick (button, state, absoluteX, absoluteYe) if (source == GUIEditor_Button[2]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler ("onClientGUIClick", GUIEditor_Button[2], onClientClick) function window() if (guiGetVisible(GUIEditor_Window[1]) == true) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) else guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end bindKey("F4","down",window) ---server--- addEvent ("skins", true) addEventHandler ("skins", getRootElement(), function(skin) setPedSkin(source, skin) end ) النافذة تفتح وتقفل بزر اف4 بالعافية
  2. تحتلف الطريقة اخوي من كود لثاني الطريقه يبالها ويكي لحالها ض1
  3. addEvent ("Alpha", true) addEventHandler ("Alpha", getRootElement(), function() setElementAlpha(source, 0) end )
  4. والثانيه خطأ الصح هو function onClientClick (button, state, absoluteX, absoluteYe) if (source == ButtonName) then triggerServerEvent ("JetPack", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", ButtonName, onClientClick)
  5. تم التعريب لول -- تحقق اذا ماكان اللاعب يمتلك الحقيبة النفاثة اعطيه او خذه من اللاعب function consoleJetPack ( thePlayer, commandName ) if not doesPedHaveJetPack ( thePlayer ) then -- اذا لم يكن اللاعب يمتلك حقيبة نفاثة local status = givePedJetPack ( thePlayer ) -- اعطيه واحده if not status then -- ما عرفت وشي ذي لول outputConsole ( "Failed to give jetpack.", thePlayer ) -- اخبره اذا فشلة العملية end else local status = removePedJetPack ( thePlayer ) -- خذ الحقيبة النفاثة خاصته if ( not status ) then outputConsole ( "Failed to remove jetpack.", thePlayer ) -- اخبره اذا فشلة العملية end end end -- قم باضافة خاصية الامر في اف8 addCommandHandler ( "jetpack", consoleJetPack )
  6. اوكي قلي المود اللي انت تبى تسويه وانا راح اساعدك
  7. يب وحنى راح نساعدك
  8. طيب يالغالي كان ممكن تحطها عشوائي باضافة local money = math.random(500,1000)-------الرقم يصير عشوائي بين 500 الى 1000 تصير كذا marker = createMarker(x,y,z,"cylinder",1,0,255,0,255) function money(hit,m) local money = math.random(500,1000) givePlayerMoney(hit,money) end addEventHandler("onMarkerHit",marker,money) اسف على التدخل بس حبيت اساعد اكثر
×
×
  • Create New...