Jump to content

Max+

Members
  • Posts

    1,363
  • Joined

  • Last visited

Everything posted by Max+

  1. جرب مره ثانية تو عدلت الكود + استخدم الديبق عشان نعرف وش السالفة . .
  2. --- جرب , Wzn = { {"مسرع بشويش بلس","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"مسرع بشويش","1601.0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية هتلر العتبان","1400 2800 2 0 -0.2 -0.24 70 0.75 0.86 0.48 5 8000 8000 5 4 d 8 0.52 false 45 1 0.2 0 0.25 -0.1 0.5 0.3 0.4 0 105000 40002004 208000 0 0 1"}, {"وزنية جنرال","5500 33187.9 5 0 0 -0.2 90 0.6 0.9 0.5 4 110 20 30 R D 3.5 0.4 0 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 5000 4008 200 0 1 0"}, {"وزنية تنطيل","5500 49187.898 5 -0.25 0 -0.25 90 0.6 0.9 0.5 4 509 15 99 r p 3.5 0.4 false 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 35000 4008 200 1 1 1"}, {"وزنية هجولة الدائري","1601 2200 1.8 0 0 -0.05 70 0.5 0.8 0.7 5 220 33 16 4 p 5.4 0.9 false 40 0.85 0.14 0 0.4 -0.14 0.5 0 0.26 0 105000 0 0 0 0 1"}, {"وزنية كنق التطويف","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية كنق البحري","2600 3000 0 0 0.2 -0.7 70 2 2 0.4 5 200000 1000 9.9 4 e 52 0.52 false 30 1.2 0.7 0 0.31 -0.15 0.5 0.3 0.24 0 45000 0 C00000 1 1 1"}, {"وزنية رفع 1","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية رفع 2","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية نصب","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تفجير","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية هجولة","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية دفع امامي","6500 36670.8 3 0 0 0 90 0.55 0.8 0.5 5 170 27 10 R D 10 0.45 0 27 1.2 0.08 0 0.47 -0.17 0.5 0 0.2 0.26 15000 4098 0 0 1 2"}, {"وزنية كسر الدرفت على البحر","1450 4056.4 2.2 0 0.3 -0.25 75 0.8 0.75 0.45 5 180 19 10 F P 9.1 0.6 0 35 1.4 0.1 0 0.25 -0.15 0.54 0 0.2 0.51 20000 0 200000 0 1 0"}, {"وزنية تهبيط","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تنكيـس","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية كنق الكامري","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية كنق الياباني","2000.0 4400.0 1.2 0.0 0.24 -0.15 75 0.734 0.734 0.509 5 210.0 24.3 5.8 R P 18.0 0.54 1 33.5 0.935 0.08 2.0 0.285 -0.147 0.5 0.09 0.2 0.51 35000 110000 1000000 0 1 0"}, } ------------------------ --Window ------------------------ GUIEditor = { label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(335, 136, 234, 387, "Script Handling | Server Daoran", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible( wnd, false ) guiSetProperty(wnd, "CaptionColour", "FFF2E407") btn = guiCreateButton(10, 297, 215, 35, "إختيار الوزنية", false, wnd) guiSetProperty(btn, "NormalTextColour", "FF0AF473") grd = guiCreateGridList ( 9, 26, 215, 251, true, wnd ) col = guiGridListAddColumn(grd, "قائمة الوزنيات", 0.9) GUIEditor.label[1] = guiCreateLabel(33, 364, 108, 18, "By General10", false, wnd) guiLabelSetColor(GUIEditor.label[1], 245, 114, 8 ) GUIEditor.label[2] = guiCreateLabel(118, 364, 129, 26, "| Server Daoran", false, wnd) guiLabelSetColor(GUIEditor.label[2], 241, 157, 11) GUIEditor.label[3] = guiCreateLabel(7, 316, 228, 44, "~~~~~~~~~~~~~~~~~~~~~~~~~", false, wnd) guiSetFont(GUIEditor.label[3], "sa-header") guiLabelSetColor(GUIEditor.label[3], 32, 241, 10) end ) for _,v in ipairs ( Wzn ) do row = guiGridListAddRow(grd) guiGridListSetItemText(grd,row,col,v[1],false,false) guiGridListSetItemColor(grd,row,col,0,255,255) end addEventHandler("onClientGUIClick",resourceRoot, function () if source == btn then local row, col = guiGridListGetSelectedItem( grd ) if row and col and row ~= -1 and col ~= -1 then local ge = guiGridListGetItemText( grd, row, col ) if not isPedInVehicle(localPlayer) then return outputChatBox("ماتقدر تسوي وزنيه لرجليك خذ موتر اول",255,0,0,true) end setTimer(function() guiSetVisible (wnd, false) end,1000,1,true) outputChatBox(" لقـد تم اختيار الوزنية بنجاح ",0,255,0) else outputChatBox(" فضلا اختر وزنية قبل الضغط على اختيار الوزنيه ",255,255,0) end end end )
  3. صدقني يازاحف نظام " جاهز ماينفع معه " انا كنت اول زيه .. ماعرف شي نسخ ولصق . .وعلى الله وعلى فكرة كان معي لغة انجليزية مستوى عالي بس ماكان لي خلق في البرمجة شفتها صعبه وكذا والحين مستواي مره احسن من اول وعندي مواضيع اول لي شفتها غبيه هههههههههههههههههههه خليه يحاول ونشوف لعله يضبطه من نفسه
  4. بالضبط , فيه اكثر من طريقة عشان تسوي ذا , , + انا خلصت له نص من السكربت نبي الرجال يحاول يكمل الباقي ويصحح الاخطاْء . .
  5. ليه مسوي كل ذا .. ومداك تسويه ماركر بجانب كلنت وكول شيب بجانب كلنت وعندكـ اخطاء ومنها .. : isElementWithinColShape مسوي يوم يخش كول شيب ومتحقق انه بالكول شيب لـ تريقر باسم الحدث ما يصير triggerClientEvent بعدين مسوي اي والله صح بالنسبة للتحقق معك حق , لاني تحققت . , اما بالنسبة للتريقر , شفت اكثر من موضوع مسوي التريقر كذا واتوقع يضبط . . لاني ماسويت addEvent ...
  6. غير button لاسم الزر , , addEventHandler ( 'onClientGUIClick', button , function ( ) local uSound = playSound( 'http://193.34.51.25:80' ) setSoundMaxDistance( uSound, 100 ) end )
  7. - --- جرب ذا اذا ماضبط بسوي لك طريقة ثانية ----ServerSide local greenzone = createColRectangle ( 1844.5594482422, 1375.3376464844, 284, 312.22 ) local greenzonemaparea = createRadarArea (1844.5594482422, 1375.3376464844, 284, 312.22, 0, 255, 0, 120) addEventHandler( "onColShapeHit", greenzone, function ( player ) if ( getElementType ( player ) == "player" ) then if isElementWithinColShape ( player, greenzone ) then setElementData ( player, 'Max', true ) triggerClientEvent ( player, 'onClientPlayerDamage', player ) outputChatBox ( ' * Warning You , Cant Kill other Players Here * ',player, 255, 0 , 0 ) end end end ) addEventHandler( "onColShapeLeave", greenzone, function ( player ) if ( getElementType ( player ) == "player" ) then removeElementData ( player, 'Max' ) end end ) ------------------------------------- ---ClientSide addEventHandler( "onClientPlayerDamage", root, function ( player ) if getElementData( player , "Max" == true ) then cancelEvent ( ) end end ) غير الاحداثيات لاحداثيات المنطقة اللي عندك ,
  8. 100% وين صح ؟ خش كل كود وشوف كيف مسوى بالويكي ,. . واقرا كل كود وش وظيفته . .
  9. Max+

    Help, Thanks

    Change the 1.7 to 1.0 marker = createMarker(2088.07031, -1629.89954, 13.54688, "cylinder", 1.0, 0, 0, 255)
  10. Max+

    Help, Thanks

    and are you the owner of the website ? [ i dont think so ] also i'm sure my code will work just forgot to fix the createVehicle remove the d ,
  11. Max+

    Help, Thanks

    marker = createMarker(2088.07031, -1629.89954, 13.54688, "cylinder", 1.7, 0, 0, 255) addEventHandler("onMarkerHit", marker, function ( ) local nx, ny, nz = getElementPosition ( source ) vehicle = createVehicle(468,nx, ny, nz ) warpPedIntoVehicle ( source, vehicle ) outputChatBox (' * your in the vehicle Now, Drive *', source, 255, 255, 0 ) end )
  12. بأيش تستخدمها انت يازاحف .؟ + فيه فرق بينها وبين الالمنت داتا ؟
  13. انت تعرف الفرق بينهم ؟ ليه اغلبهم يستخدمون SQL? لانه يخزن البيانات " احجام كبيرة " ماينفع مع الجيسون والداتا .. بس والله ودي اتعلمها ذي بس ماحتاجها . كل الاكواد اللي اعمل بها بيانات محدودة ..
  14. Max+

    about map

    i think he want to save stuff on his website and get the names , and data to the server from the website .
  15. Max+

    Private Car

    https://community.multitheftauto.com/index.php?p= ... ls&id=3793
  16. well i guess you can't but if you want the text Only , why don't you use this , guiCreateLabel it Only Show 'Text' but you can't change it, unless you use functions , or somthing to change it any time ..
  17. Ok ,there is another way , try setting the alpha until it's hidden , guiSetAlpha
  18. well , iam not sure about this , but try this and see if it's working or not , --Example editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, "", true ) guiSetVisible (editBox, false )
  19. طيب ابيك تروح وتجرب الكود حقك وتشوف اذا طلعت الصورة ولا لا ياخي انت جبت الاحداثيات ليه تكررها 4 مرات ؟ المفروض 2 احدااثيات الاعب 2 للصورة 1- مسار الصورة . .
  20. هههههههه انا اخرف؟ ياخي اول مره اشوف كود صنع صورة بدون طول وعرض الصورة ؟ . .. Required Arguments posX: the absolute X coordinate of the top left corner of the image posY: the absolute Y coordinate of the top left corner of the image width: the absolute width of the image height: the absolute height of the image image: + جرب تشغل كودك وتشوف اذا طلعت ولا لا + جرب تضيف طول وعرض الصورة وتشوف وين اللي يضبط . . dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY والله عاد ماضبط الا بعد ماحطيت طول وعرض الصورة 256 * 256 وطلعت . .
  21. هههههههه انا اخرف؟ ياخي اول مره اشوف كود صنع صورة بدون طول وعرض الصورة ؟ . .. Required Arguments posX: the absolute X coordinate of the top left corner of the image posY: the absolute Y coordinate of the top left corner of the image width: the absolute width of the image height: the absolute height of the image image: + جرب تشغل كودك وتشوف اذا طلعت ولا لا + جرب تضيف طول وعرض الصورة وتشوف وين اللي يضبط . .
  22. https://forum.multitheftauto.com/viewtopic.php?f=91&t=53920 you can have a look at it ..
  23. c.lua --- GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_gridlist = {} windowjob = guiCreateWindow(114,203,460,573, "Medic", false) guiWindowSetSizable(windowjob, false) guiSetVisible(windowjob, false) GUIEditor_Memo[1] = guiCreateMemo(76,39,338,250, "Medic-Job", false, windowjob) guiMemoSetReadOnly(GUIEditor_Memo[1], true) GUIEditor_gridlist[1] = guiCreateGridList(63,295,363,207, false, windowjob) guiGridListAddColumn(GUIEditor_gridlist[1], "ID", 0.5) guiGridListAddColumn(GUIEditor_gridlist[1], "Skin Name", 0.5) for i = 1, 5 do end guiGridListAddRow(GUIEditor_gridlist[1]) guiGridListSetItemText(GUIEditor_gridlist[1], 0, 1, "274", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 0, 2, "Medic1", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 1, 1, "275", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 1, 2, "Medic2", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 2, 1, "276", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 2, 2, "Medic3", false, false) GUIEditor_Button[1] = guiCreateButton(62,530,120,34, "Have Job", false, windowjob) GUIEditor_Button[2] = guiCreateButton(276,530,120,34, "Cancel", false, windowjob) local marker = createMarker( 1606.48792,1818.65527,9.82031, "Cylinder", 1.5, 0, 255, 255, 255) createBlip (1606.48792,1818.65527,10.82031, 56 ,2 ) outputChatBox( "Medic Job-By [Mr.alkmasha]",0, 255, 255, true ) addEventHandler("onClientMarkerHit", marker, function ( hitElement ) if getElementType(hitElement) == "player" and (hitElement == localPlayer) and not guiGetVisible(windowjob) then setElementData ( localPlayer, "ownskin", getElementModel (localPlayer)) guiSetVisible(windowjob, true) showCursor(true) end end ) addEventHandler ('onClientMarkerLeave', marker, function (leaveElement ) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) and not guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end ) addEventHandler("onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor_Button[1] ) then triggerServerEvent("gov",localPlayer) local skin = guiGridListGetItemText ( GUIEditor_gridlist[1], guiGridListGetSelectedItem ( GUIEditor_gridlist[1] ), 1 ) if skin ~= 0 or getElementData(localPlayer, "ownskin") then guiSetVisible(windowjob, false) showCursor(false) setElementModel ( localPlayer, skin ) else exports["TopBarChat"]:sendClientMessage ("You didn't select a Skin", 255, 0, 0 ) end end end ) addEventHandler("onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor_Button[2] ) then guiSetVisible(windowjob, false) showCursor(false) setElementModel(localPlayer, getElementData(localPlayer, "ownskin")) end end ) addEventHandler("onClientPlayerDamage", resourceRoot, function(attacker, weapon) if (attacker and getElementType(attacker) == "player" and weapon == 14 and getPlayerTeam(getTeamName(attacker) == "Medic")) then cancelEvent( ) pause = setTimer(function() end, 1000, 1) if (not isTimer(pause)) then local health = getElementHealth(localPlayer) if (health < 99) then triggerServerEvent("medic:healing", localPlayer, attacker) end end end end ) local Url = "alkmasha.png" addEventHandler( "onClientRender", root, function ( ) local x, y, z = getElementPosition( marker ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + 1, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawImage( WorldPositionX, WorldPositionY, 256, 256, Url ) end end end ) s.lua --- function createSAPDTeam () SAPDteam = createTeam ("Medic", 0, 255,255) end function joincriminal() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then local wlevel = getPlayerWantedLevel( source ) end end addEventHandler ("onResourceStart", resourceRoot, createSAPDTeam) function joinSAPD() setPlayerTeam(source, SAPDteam) giveWeapon ( source, 14 ) setElementData( source, "Occupation", "Government", true ) setElementData ( source, "Rank", "Federal Agent" ) end addCommandHandler("Medic",joinSAPD) addEvent("gov", true) addEventHandler("gov",root,joinSAPD) addEvent("medic:healing", true) addEventHandler("medic:healing", root, function (medic) if (getElementHealth(source) < 100) then local Heal = getElementHealth(source) + 5 setElementHealth(source, Heal) if (Heal > 100) then setElementHealth(source, 100) end givePlayerMoney(medic, 100) takePlayerMoney(source, 100) end end) عدل على ارتفاع الصورة رقم 1 غيره الى 10 -15 حسب الارتفاع اللي يضبط معك لانها طلعت معي الصورة بالارض x, y, z + 1, 0.07 ) + ياليت ماشوف كلام ماله داعي مره ثانية بالاكواد . . # زاحف الكود حقك مضبوط بس كنت ناسي الطول والعرض حق الصورة شوف الارقمنتات حق dxdrawImage
  24. ياخي كودك حايس ابو ابوه . . جالس اضبطه لك صبر بس .
×
×
  • Create New...