Jump to content

Mr.T9

Members
  • Posts

    559
  • Joined

  • Last visited

Everything posted by Mr.T9

  1. addEventHandler ("onClientGUIClick",root, function () if (source == اسم الزر) then playSound("مسار الصوت") end end )
  2. جرب GUIEditor = { tab = {}, tabpanel = {}, edit = {}, button = {}, window = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(201, 143, 425, 427, "|Z.M|: كمبيوتر السيرفر", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible (GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 27, 405, 390, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("قوانين الزوار", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(9, 14, 386, 25, "|Z.M|: القوانين", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 60, 255, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.label[2] = guiCreateLabel(55, 65, 340, 19, "1- عدم طلب ترقيه ( لفل 1 ) = تحذير ثم ميوت 10 دقايق.", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 255, 11, 11) guiLabelSetHorizontalAlign(GUIEditor.label[2], "right", false) GUIEditor.label[3] = guiCreateLabel(55, 152, 340, 19, "4- سب الاهل =ميوت ساعه .", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 162, 172, 91) guiLabelSetHorizontalAlign(GUIEditor.label[3], "right", false) GUIEditor.label[4] = guiCreateLabel(55, 181, 340, 19, "5- النشر = ميوت أسبوع", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 143, 198, 200) guiLabelSetHorizontalAlign(GUIEditor.label[4], "right", false) GUIEditor.label[5] = guiCreateLabel(31, 210, 364, 21, "6- عدم طلب المال او الفلوس او الاسلحه او السيارت= ميوت 10 دقائق.", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 210, 125, 217) GUIEditor.label[6] = guiCreateLabel(55, 94, 340, 19, "2-التخريب امام البدايه = سلاب لو كررها سجن 5 دقايق", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 242, 167, 23) guiLabelSetHorizontalAlign(GUIEditor.label[6], "right", false) GUIEditor.label[7] = guiCreateLabel(55, 123, 340, 19, "3- السب بسيط = ميوت 5 دقايق", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 26, 238, 146) guiLabelSetHorizontalAlign(GUIEditor.label[7], "right", false) GUIEditor.label[8] = guiCreateLabel(1, 39, 394, 16, "================================================================================", false, GUIEditor.tab[1]) guiLabelSetColor(GUIEditor.label[8], 203, 164, 27) GUIEditor.tab[2] = guiCreateTab("قوانين الادمنية", GUIEditor.tabpanel[1]) GUIEditor.label[9] = guiCreateLabel(6, 16, 389, 28, "|Z.M|: قوانين الادمنية ", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetColor(GUIEditor.label[9], 78, 231, 31) guiLabelSetHorizontalAlign(GUIEditor.label[9], "center", false) GUIEditor.label[10] = guiCreateLabel(8, 33, 392, 16, "========================================================", false, GUIEditor.tab[2]) guiLabelSetColor(GUIEditor.label[10], 238, 180, 23) GUIEditor.label[11] = guiCreateLabel(43, 59, 357, 23, "1- احترام الجميع من الزائر إلى الهيد ادمن", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[11], "default-bold-small") guiLabelSetColor(GUIEditor.label[11], 81, 159, 247) guiLabelSetHorizontalAlign(GUIEditor.label[11], "right", false) GUIEditor.label[12] = guiCreateLabel(43, 92, 357, 23, "2- عدم السب و الشتم أو التلفظ بشكل عام وانت من الطاقم الإداري.", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetColor(GUIEditor.label[12], 255, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[12], "right", false) GUIEditor.label[13] = guiCreateLabel(43, 191, 357, 23, "5- صك سلاب بدون سبب سحب ( يومين).", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[13], "default-bold-small") guiLabelSetColor(GUIEditor.label[13], 1, 230, 251) guiLabelSetHorizontalAlign(GUIEditor.label[13], "right", false) GUIEditor.label[14] = guiCreateLabel(43, 158, 357, 23, "4- عدم طلبات الترقيه او التلميح .", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[14], "default-bold-small") guiLabelSetColor(GUIEditor.label[14], 107, 225, 29) guiLabelSetHorizontalAlign(GUIEditor.label[14], "right", false) GUIEditor.label[15] = guiCreateLabel(43, 125, 357, 23, "3- عدم استعمال لوحة الاداره للشؤون الخاصة", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[15], "default-bold-small") guiLabelSetColor(GUIEditor.label[15], 212, 3, 250) guiLabelSetHorizontalAlign(GUIEditor.label[15], "right", false) GUIEditor.label[16] = guiCreateLabel(43, 224, 357, 23, "6 - عدم التواجد لمده 3 ايام فما فوق تؤدي إلى سحب الرتبه.", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[16], "default-bold-small") guiLabelSetColor(GUIEditor.label[16], 155, 234, 17) guiLabelSetHorizontalAlign(GUIEditor.label[16], "right", false) GUIEditor.label[17] = guiCreateLabel(43, 257, 357, 23, "7 - وضع الشعار بكل الاحوال ( إزالته تؤدي إلى سحب رتبه ).", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[17], "default-bold-small") guiLabelSetColor(GUIEditor.label[17], 231, 109, 19) guiLabelSetHorizontalAlign(GUIEditor.label[17], "right", false) GUIEditor.label[18] = guiCreateLabel(43, 290, 357, 23, "8- صك ادمن ادمن ثاني باند = سحب رتبه . ", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[18], "default-bold-small") guiLabelSetColor(GUIEditor.label[18], 157, 136, 92) guiLabelSetHorizontalAlign(GUIEditor.label[18], "right", false) GUIEditor.tab[3] = guiCreateTab("شروط الادمنية", GUIEditor.tabpanel[1]) GUIEditor.button[1] = guiCreateButton(219, 10, 176, 67, "رتبة مرشح للفل =15 ساعه", false, GUIEditor.tab[3]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF89CE10") GUIEditor.button[2] = guiCreateButton(15, 10, 176, 67, "رتبة لفل =20 ساعه", false, GUIEditor.tab[3]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF184DC5") GUIEditor.memo[1] = guiCreateMemo(10, 90, 181, 159, "يجب وضع الشعار \n============\nيجب عدم ازعاج الادمن بالترقيه\n==============\nالهيد ادمن يرقيك بدون ماتطلب\n=================\nكل ماتطلب الادمن يزيد مدة حصولك على الرتبة", false, GUIEditor.tab[3]) GUIEditor.edit[1] = guiCreateEdit(197, 9, 12, 342, "", false, GUIEditor.tab[3]) GUIEditor.memo[2] = guiCreateMemo(214, 89, 181, 92, "يجب وضع الشعار بكل الاوقات\n=================\nيجب عدم طلبات الترقيه\nالادمن يشوف ويختار بدون ازعاج", false, GUIEditor.tab[3]) GUIEditor.tab[4] = guiCreateTab("شروط ادارة السيرفر", GUIEditor.tabpanel[1]) GUIEditor.button[3] = guiCreateButton(12, 12, 376, 47, "1- احترام ادمن السيرفر .", false, GUIEditor.tab[4]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(12, 69, 386, 92, "2- عدم التدخل في قرارات الإداره عن سحب رتبه او التبنيد ( لكن لديك الحق بتقديم شكوى ). ", false, GUIEditor.tab[4]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") end ) function OpenWindow() getVisible = guiGetVisible (GUIEditor.window[1]) if (getVisible == true) then guiSetVisible (GUIEditor.window[1], false) showCursor (false) end if (getVisible == false) then guiSetVisible (GUIEditor.window[1], true) showCursor (true) end end bindKey("F9", "down", OpenWindow) --------------------------------------------------------- setTimer(function() guiSetProperty(GUIEditor.button[3], 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 250, 0) -------------------------------------- setTimer(function() guiSetProperty(GUIEditor.button[4], 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 250, 0) ----------------------------------------------------------
  3. use engineImportTXD engineLoadTXD engineReplaceModel engineLoadDFF
  4. --client addEventHandler ("onClientGUIClick",root, function () if (source == اسم الزر) then triggerServerEvent("wep",localPlayer) end end ) --- server local id = ?? addEvent ("wep", true) addEventHandler ("wep", getRootElement(), function () giveWeapon(source,id) end) استبدل ؟؟ بايدي السلاح خذه من هنا https://wiki.multitheftauto.com/wiki/Weapons
  5. اسم الصورة test المسار test.png
  6. local skins = { "Skin Jobs 1 (skin: 271)", "Skin Jobs 2 (skin: 298)" } GUIEditor = { --label = {}, button = {}, window = {}, memo = {}, gridlist = {}, img = {} } GUIEditor.window = guiCreateWindow(256, 98, 294, 435, "baba", false) guiWindowSetSizable(GUIEditor.window, false) GUIEditor.img guiCreateStaticImage(0, 0, 150, 300, "test.png", false, GUIEditor.window) GUIEditor.memo = guiCreateMemo(9, 27, 275, 219, " \"{SMILIES_PATH}/icon_razz.gif\" alt=\"\" title=\"Razz\" /> ", false, GUIEditor.window) guiMemoSetReadOnly(GUIEditor.memo, true) GUIEditor.aceptar = guiCreateButton(9, 397, 127, 28, "Take Skin Jop", false, GUIEditor.window) GUIEditor.cancelar = guiCreateButton(157, 397, 127, 28, "Exit", false, GUIEditor.window) GUIEditor.gridlist = guiCreateGridList(9, 256, 275, 131, false, GUIEditor.window) guiGridListSetSelectionMode(GUIEditor.gridlist,2) _skins = guiGridListAddColumn(GUIEditor.gridlist, "اختار شخصياتك", 0.9) guiSetVisible(GUIEditor.window, false) for index, skin in ipairs ( skins ) do local row = guiGridListAddRow ( GUIEditor.gridlist ) guiGridListSetItemText ( GUIEditor.gridlist, row, _skins, tostring ( skin ), false, false ) end addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.aceptar ) then local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist ) if ( row and col and row ~= -1 and col ~= -1 ) then local skinName = guiGridListGetItemText ( GUIEditor.gridlist, row, 1 ) if ( skinName == "Skin Jobs 1 (skin: 271)" ) then triggerServerEvent ( "setBarco", localPlayer, 271 ) elseif ( skinName == "Skin Jobs 2 (skin: 298)" ) then triggerServerEvent ( "setBarco", localPlayer, 298 ) end guiSetVisible ( GUIEditor.window, false ) showCursor ( false ) else outputChatBox ( "اخترا شخصيتك ", 255, 0, 0 ) end elseif ( source == GUIEditor.cancelar ) then guiSetVisible ( GUIEditor.window, false ) showCursor ( false ) end end ) function pe () if guiGetVisible (GUIEditor.window) == true then else showCursor (true) guiSetVisible (GUIEditor.window,true) end end addEvent ("baba", true) addEventHandler ("baba",root, pe) addEvent ( "barco_set_location", true ) addEventHandler ( "barco_set_location", root, function ( x, y, z ) marker = createMarker ( x, y, z - 1, "cylinder", 2.5, 235, 141, 19, 153 ) blip = createBlipAttachedTo ( marker, 41 ) addEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) end ) function onBarcoStopHit ( hitPlayer ) if ( getElementType ( hitPlayer ) == "player" ) and ( hitPlayer == localPlayer ) then triggerServerEvent ( "pizza_finish", localPlayer ) if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end addEventHandler ( "onClientVehicleExit", root, function ( thePlayer ) if ( thePlayer == localPlayer ) then if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end ) GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Marker = {} GUIEditor_Window = {} vehicleId = {535,600} GUIEditor_Marker[1] = createMarker(2473.52051, -1696.91187, 12.51631,"cylinder",3,255,255,0,255) GUIEditor_Marker[2] = createMarker(2459.45264, -1690.21484, 12.54478,"cylinder",3,255,0,0,0) local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(200,147,246,314,"baba",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,34,228,155,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column = guiGridListAddColumn(GUIEditor_Grid[1],"vehicle name",0.9) GUIEditor_Button[2] = guiCreateButton(20,208,210,41,"Select",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(20,252,210,41,"Close",false,GUIEditor_Window[1]) for i,id in ipairs ( vehicleId ) do guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromModel( id ), false, false ) end ------------------------------------------------------------------------------------------------------ addEventHandler ("onClientMarkerHit", GUIEditor_Marker[1], function( player ) if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'baba' and not isPedInVehicle( player ) and player == localPlayer then x999,y999,z999 = getElementPosition( localPlayer ) setElementFrozen ( localPlayer, true ) guiSetVisible(GUIEditor_Window[1],true) showCursor( true ) end end ) addEventHandler('onClientGUIClick', root, function() if ( source == GUIEditor_Button[1] ) then guiSetVisible(GUIEditor_Window[1],false) showCursor( false ) setElementFrozen ( localPlayer, false ) elseif ( source == GUIEditor_Button[2] ) then local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) triggerServerEvent('gvoa', getLocalPlayer(), name) guiSetVisible(GUIEditor_Window[1],false) setElementFrozen ( localPlayer, false ) showCursor( false ) end end ) ------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------- addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition (GUIEditor_Marker[2]) local x2, y2, z2 = getElementPosition(localPlayer) if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then local sx, sy = getScreenFromWorldPosition(x, y, z+2) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 100) then dxDrawText("baba", sx, sy, sx, sy, tocolor(255, 255, 0, 1000), 2-(distance/100), "arial", "center", "center") dxDrawText("baba", sx, sy, sx, sy, tocolor(255, 255, 0, 1000), 2-(distance/100), "arial", "center", "center") end end end end) غير مسار الصورة + الطول والعرض ومكانها
  7. local skins = { "Skin Jobs 1 (skin: 271)", "Skin Jobs 2 (skin: 298)" } GUIEditor = { --label = {}, button = {}, window = {}, memo = {}, gridlist = {}, img = {} } GUIEditor.window = guiCreateWindow(256, 98, 294, 435, "baba", false) guiWindowSetSizable(GUIEditor.window, false) GUIEditor.img guiCreateStaticImage(0, 0, 150, 300, "imagename.png", false, GUIEditor.window) GUIEditor.memo = guiCreateMemo(9, 27, 275, 219, " \"{SMILIES_PATH}/icon_razz.gif\" alt=\"\" title=\"Razz\" /> ", false, GUIEditor.window) guiMemoSetReadOnly(GUIEditor.memo, true) GUIEditor.aceptar = guiCreateButton(9, 397, 127, 28, "Take Skin Jop", false, GUIEditor.window) GUIEditor.cancelar = guiCreateButton(157, 397, 127, 28, "Exit", false, GUIEditor.window) GUIEditor.gridlist = guiCreateGridList(9, 256, 275, 131, false, GUIEditor.window) guiGridListSetSelectionMode(GUIEditor.gridlist,2) _skins = guiGridListAddColumn(GUIEditor.gridlist, "اختار شخصياتك", 0.9) guiSetVisible(GUIEditor.window, false) for index, skin in ipairs ( skins ) do local row = guiGridListAddRow ( GUIEditor.gridlist ) guiGridListSetItemText ( GUIEditor.gridlist, row, _skins, tostring ( skin ), false, false ) end addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.aceptar ) then local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist ) if ( row and col and row ~= -1 and col ~= -1 ) then local skinName = guiGridListGetItemText ( GUIEditor.gridlist, row, 1 ) if ( skinName == "Skin Jobs 1 (skin: 271)" ) then triggerServerEvent ( "setBarco", localPlayer, 271 ) elseif ( skinName == "Skin Jobs 2 (skin: 298)" ) then triggerServerEvent ( "setBarco", localPlayer, 298 ) end guiSetVisible ( GUIEditor.window, false ) showCursor ( false ) else outputChatBox ( "اخترا شخصيتك ", 255, 0, 0 ) end elseif ( source == GUIEditor.cancelar ) then guiSetVisible ( GUIEditor.window, false ) showCursor ( false ) end end ) function pe () if guiGetVisible (GUIEditor.window) == true then else showCursor (true) guiSetVisible (GUIEditor.window,true) end end addEvent ("baba", true) addEventHandler ("baba",root, pe) addEvent ( "barco_set_location", true ) addEventHandler ( "barco_set_location", root, function ( x, y, z ) marker = createMarker ( x, y, z - 1, "cylinder", 2.5, 235, 141, 19, 153 ) blip = createBlipAttachedTo ( marker, 41 ) addEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) end ) function onBarcoStopHit ( hitPlayer ) if ( getElementType ( hitPlayer ) == "player" ) and ( hitPlayer == localPlayer ) then triggerServerEvent ( "pizza_finish", localPlayer ) if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end addEventHandler ( "onClientVehicleExit", root, function ( thePlayer ) if ( thePlayer == localPlayer ) then if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end ) GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Marker = {} GUIEditor_Window = {} vehicleId = {535,600} GUIEditor_Marker[1] = createMarker(2473.52051, -1696.91187, 12.51631,"cylinder",3,255,255,0,255) GUIEditor_Marker[2] = createMarker(2459.45264, -1690.21484, 12.54478,"cylinder",3,255,0,0,0) local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(200,147,246,314,"baba",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,34,228,155,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column = guiGridListAddColumn(GUIEditor_Grid[1],"vehicle name",0.9) GUIEditor_Button[2] = guiCreateButton(20,208,210,41,"Select",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(20,252,210,41,"Close",false,GUIEditor_Window[1]) for i,id in ipairs ( vehicleId ) do guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromModel( id ), false, false ) end ------------------------------------------------------------------------------------------------------ addEventHandler ("onClientMarkerHit", GUIEditor_Marker[1], function( player ) if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'baba' and not isPedInVehicle( player ) and player == localPlayer then x999,y999,z999 = getElementPosition( localPlayer ) setElementFrozen ( localPlayer, true ) guiSetVisible(GUIEditor_Window[1],true) showCursor( true ) end end ) addEventHandler('onClientGUIClick', root, function() if ( source == GUIEditor_Button[1] ) then guiSetVisible(GUIEditor_Window[1],false) showCursor( false ) setElementFrozen ( localPlayer, false ) elseif ( source == GUIEditor_Button[2] ) then local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) triggerServerEvent('gvoa', getLocalPlayer(), name) guiSetVisible(GUIEditor_Window[1],false) setElementFrozen ( localPlayer, false ) showCursor( false ) end end ) ------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------- addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition (GUIEditor_Marker[2]) local x2, y2, z2 = getElementPosition(localPlayer) if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then local sx, sy = getScreenFromWorldPosition(x, y, z+2) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 100) then dxDrawText("baba", sx, sy, sx, sy, tocolor(255, 255, 0, 1000), 2-(distance/100), "arial", "center", "center") dxDrawText("baba", sx, sy, sx, sy, tocolor(255, 255, 0, 1000), 2-(distance/100), "arial", "center", "center") end end end end)
  8. اول سطر عندك خطا markerh = createMarker (x,y,z,"cylinder", 1.5, 255, 255, 0, 170 ) السطر الاخير خطا مهو طبيعي addEventHandler ( "onPlayerTarget", getRootElement(),root ) حاط getRootElement() وتروح تحط بعدها root ??
  9. addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() local Sound = playSound("NameSound.mp3") if (isSoundFinished(Sound)) then local Sound = playSound("NameSound.mp3") end end ) ماني مجرب لكن اتوقع انه بيشتغل مرتين بس
  10. ياذكي التايمر اللي هو حاطه اول مايشغل المود ينتظر ثانيتين وبعدين يشتغل الصوت
  11. حطه كلنت playSound3D("مسار الصوت", x, y, z, true) z,y,x الاحداثيات
  12. مافيه وظيفة زي كذا CreateBlip خلها createBlip
  13. شغلتك صعبه setCameraMatrix setTimer
  14. جرب حمل اخر اصدار من الزومبي https://community.multitheftauto.com/in ... ils&id=347
  15. bindKey setElementDimension
  16. "onClientGUIClick" setElementDimension
  17. function createPlayerList ( ) if ( name ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do local namer = guiGridListAddRow ( GUIEditor.gridlist[1] ) local r, g, b = getPlayerNametagColor ( player ) guiGridListSetItemText ( GUIEditor.gridlist[1], namer, name, color (getPlayerName ( player )), false, false ) guiGridListSetItemColor ( GUIEditor.gridlist[1], namer, name, r, g, b ) end end end addEventHandler ( "onClientResourceStart", resourceRoot, createPlayerList ) function color ( name ) return type(name)=='string' and string.gsub ( name, '#%x%x%x%x%x%x', '' ) or name end setElementData ( localPlayer, "Kills", 0 ) setElementData ( localPlayer, "Deaths", 0 ) addEventHandler ( "onClientPlayerWasted", root, function ( killer ) if ( killer and killer ~= source ) then local k = getElementData ( killer, "Kills" ) or 0 setElementData ( killer, "Kills", ( k + 1 ) ) end local d = getElementData ( source, "Deaths" ) or 0 setElementData ( source, "Deaths", ( d + 1 ) ) U ( ) end ) function U ( ) local players = { } local players = getPlayersSortByKills ( ) for index = 1, 10 do local kill = guiGridListAddRow ( GUIEditor.gridlist[1] ) local deat = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], kill,kills, 1, tostring ( players [ index ].kills ), false, false ) guiGridListSetItemText ( GUIEditor.gridlist[1], deat,deathss, 2, tostring ( players [ index ].deaths ), false, false ) end end addEventHandler ( "onClientResourceStart", resourceRoot, U ) function getPlayersSortByKills ( ) local players = { } for index, player in ipairs ( getElementsByType ( "player" ) ) do table.insert ( players, { element = player, kills = getElementData ( player, "Kills" ) or 0, deaths = getElementData ( player, "Deaths" ) or 0 } ) end table.sort ( players, function ( a, b ) return ( tonumber ( a.kills ) or 0 ) > ( tonumber ( b.kills ) or 0 ) end )
  18. جرب addEventHandler ("onClientGUIClick", root, function () if source == Close then guiSetVisible ( GUIEditor.window[1], false ) end end ) addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function ( ) setCameraMatrix ( 1560.1276855469, -1670.8175048828, 55.877300262451, 1559.6396484375, -1670.6237792969, 55.026256561279 ) guiSetVisible ( GUIEditor.window[1], false ) end ) addCommandHandler ( "Back", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( not isCursorShowing ( ) ) setCameraTarget ( getLocalPlayer ( ) ) end )
×
×
  • Create New...