Jump to content

#BrosS

Members
  • Posts

    2,102
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by #BrosS

  1. جرب ذا function Hit() if isPedInVehicle(localPlayer) then givePlayerMoney(localPlayer, 50000) outputChatBox (" لقد انهيت المهمة وحصلت على 5000 ") destroyElement(car[source]) end end addEventHandler("onClientMarkerHit",Marker,Hit)
  2. اي جزء اللي ماظبط مايعطيك فلوس ولا وش ؟
  3. حطه مع حدث onPlayerWasted نسيت
  4. Table = {} function cr(source) health = getElementHealth(source) if health == 10 then setPedAnimation( source, "CRACK", "crckidle1") setElementFrozen ( source, true) local x, y, z = getElementPosition ( source ) Table[source] = createMarker (x, y + 10, z , "cylinder",1.5,0,255,0, 80) end end function onmarkerHit(hitElement,player) if hitElement == player then outputChatBox("you gonna help that guy", player, 255, 0, 0) takePlayerMoney(player,200) setElementHealth(source,100) destroyElement(Table[source]) setElementFrozen(source,false) end end addEventHandler( "onMarkerHit", Table[source], onmarkerHit )
  5. 'onMarkerHit' destroyElement moveObject setTimer
  6. عندنا الرموز الغريبة دي ض ، ض1 ، ض2 ه1 , ق1 من مخترعها أصلا
  7. طلبك طويل جدا شوف مود احتلال منشور أحسن من مايصير هذا الموضوع 3 صفحات ههه
  8. عدل حقتك الى ذا addCommandHandler("vip", function() if isPlayerGroupName("VIP") then if (guiGetVisible (vip_system) == false) then guiSetVisible(vip_system,true) showCursor(true) show = true else guiSetVisible(vip_system,false) showCursor(false) show = false end VipFix() else outputChatBox("You Dont Have VIP",255,0,0) end end); وتأكد انك ضايف سورس الكود isPlayerGroupName اذا لا
  9. كيف رح يغلق اللوحة باذن الله
  10. دائما تخترع أكواد جديدة مشاء الله local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170) GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientMarkerHit", Marker, function() GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد ", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[2] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) elseif ( source == GUIEditor.button[1] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) end end )
  11. ايوة الحين غيرت الطريقة addEventHandler('onResourceStop',resourceRoot, function() for i, v in ipairs(getElementsByType("player")) do if not ( isGuestAccount ( getPlayerAccount ( v ) ) ) then local SqlTable = dbPoll(dbQuery(DataBase, "SELECT * FROM Diamonds-System WHERE AccName = ?", getAccountName(getPlayerAccount(v))), -1) if SqlTable and type(SqlTable) == "table" and #SqlTable > 0 then local diam = tonumber( getElementData( v, 'Diamond') or 0 ) dbExec(DataBase, "UPDATE Diamonds-System SET Diamond = ? WHERE AccName = ?", diam, getAccountName(getPlayerAccount(v)) ) end end end end ) وسالفة الشرطة لسه مافهمت لها يقولي dbPoll Failed near "-" synthax error #Edit: تمام حليتها تسلم عبد الكريم
  12. السلام عليكم ساويت مود مجوهرات حق الأطفال اللي مثلي , وربطته بقواعد البيانات مو السكل , عشان يتحفظ والخ المشكلة لما أطلع وادخل عادي المجوهرات تبقى ولما اطفي المود تتصفر مع اني مسويها مع انطفاء المود المهم هذا كود لما أطلع تمام شغال addEventHandler('onPlayerQuit',root, function() for i, v in ipairs(getElementsByType("player")) do if not ( isGuestAccount ( getPlayerAccount ( v ) ) ) then local SqlTable = dbPoll(dbQuery(DataBase, "SELECT * FROM Diamonds-System WHERE AccName = ?", getAccountName(getPlayerAccount(v))), -1) if SqlTable and type(SqlTable) == "table" and #SqlTable > 0 then dbExec(DataBase, "UPDATE Diamonds-System SET Diamond = ? WHERE AccName = ?",( getElementData( v, 'Diamond') or 0 ) , getAccountName(getPlayerAccount(v))) else dbExec(DataBase, "INSERT INTO Diamonds-System ( Diamond,AccName ) VALUES(?,?,?)", 1, 0, getAccountName(getPlayerAccount(source))) end end local account = getPlayerAccount (v) if not (isGuestAccount (account)) then local playerDiamond = getElementData(v, "Diamond") or 0 if playerDiamond then setAccountData(account,"Diamond",tonumber(playerDiamond)) end end end end ) وهذا حق لما يتطفى المود addEventHandler('onResourceStop',resourceRoot, function() for i, v in ipairs(getElementsByType("player")) do if not ( isGuestAccount ( getPlayerAccount ( v ) ) ) then local SqlTable = dbPoll(dbQuery(DataBase, "SELECT * FROM Diamonds-System WHERE AccName = ?", getAccountName(getPlayerAccount(v))), -1) if SqlTable and type(SqlTable) == "table" and #SqlTable > 0 then dbExec(DataBase, "UPDATE Diamonds-System SET Diamond = ? WHERE AccName = ?",( getElementData( v, 'Diamond') or 0 ) , getAccountName(getPlayerAccount(v))) else dbExec(DataBase, "INSERT INTO Diamonds-System ( Diamond,AccName ) VALUES(?,?,?)", 1, 0, getAccountName(getPlayerAccount(source))) end end local account = getPlayerAccount (v) if not (isGuestAccount (account)) then local playerDiamond = getElementData(v, "Diamond") or 0 if playerDiamond then setAccountData(account,"Diamond",tonumber(playerDiamond)) end end end end ) مع اني جربت اذا الحساب موجود بالأصل وجربت عدة طرق والديبق يعطيني اشياء غريبة مثل Synthax Error near (-) وشكرا مسبقا
  13. هذي مجرد كتابة كيف اعطر فمي
  14. "onClientRender" getDistanceBetweenPoints3D getElementPosition getScreenFromWorldPosition dxDrawText dxDrawRectangle Try and i fix
  15. شرح خطأ اعذرني بالتوفيق
  16. لول سوري ، جوال يعمي @#Soking setTimer(function() setBlipColor(bb,math.random ( 0, 255 ), math.random ( 0, 255 ), math.random ( 0, 255 ),255) end,100,0 )
×
×
  • Create New...