кιηg-αвα∂у
Members-
Posts
396 -
Joined
-
Last visited
Everything posted by кιηg-αвα∂у
-
+1 الجيم مود لما يشتغل يطفي الجيم مود الي قبل عند كل الاعبيين اتوقع صاحب الموضوع قصده يسوي جيم مود هجولة و ديث ماتش مو يشغلهم
-
Handling كل موضوعه عن السرعة مو عن setVehicleHandling ( getPedOccupiedVehicle ( element ), "maxVelocity", tonumber( 100 ) ) -- اتوقع هذي تحدد السرعة
-
الي حاطها انت لما تتضرر السيارة اذا تبي لما تنفجر addEventHandler ( "onVehicleExplode", stolenVehicle, onStolenVehicleDamage )
-
source -- لسيرفر فقط + حط الأحداثيات مثلاً x,y,z = getElementVelocity( localPlayer ) -- هذه مثال فقط setElementVelocity (localPlayer, x, y, z+3) -- هذه مثال فقط
-
elseif احذف اند + خلي الثانية يعني يكون كذا addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor.button[1] ) then setElementAlpha(getLocalPlayer(), 0) elseif ( source == GUIEditor.button[2] ) then setElementAlpha(getLocalPlayer(), 255) end end )
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} car = { {579}, {400}, {404}, {489}, {505}, {487}, } local GangName = "اسم القروب" -- حط اسم القروب local marker = createMarker(1537.4278564453, -1683.8894042969, 13.546875, "cylinder", 1.5, 255 ,255, 255, 155) local blip = createBlip ( 1537.4278564453 , -1683.8894042969 , 13.546875 , 55 ) local marker2 = createMarker(2480.1962890625, -1751.3967285156, 13.546875, "cylinder", 1.5, 255 ,255, 255, 155) local blip2 = createBlip ( 2480.1962890625 , -1751.3967285156 , 13.546875 , 55 ) local marker3 = createMarker(288.95376586914, -1516.1473388672, 24.59375, "cylinder", 1.5, 255 ,255, 255, 155) local blip3 = createBlip ( 288.95376586914 , -1516.1473388672 , 24.59375 , 55 ) GUIEditor_Window[1] = guiCreateWindow(312,152,165,339,"vehicle",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],"vehicle name",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]) for i,v in ipairs (car) do local carName = getVehicleNameFromModel (v[1]) local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1], row, 1, carName, false, true) end function onClientClick (button, state, absoluteX, absoluteYe) if (source == GUIEditor_Button[1]) then if (guiGridListGetSelectedItem (GUIEditor_Grid[1])) then local car = guiGridListGetItemText (GUIEditor_Grid[1], guiGridListGetSelectedItem (GUIEditor_Grid[1]), 1) triggerServerEvent ("cars", getLocalPlayer(), car) end end end addEventHandler ("onClientGUIClick", GUIEditor_Button[1], onClientClick) function onClientClick2 (button, state, absoluteX, absoluteYe) if (source == GUIEditor_Button[2]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler ("onClientGUIClick", GUIEditor_Button[2], onClientClick2) addEventHandler("onClientMarkerHit", marker, function ( hitPlayer, matchingDimension ) if ( isElementWithinMarker(hitPlayer, marker) ) then if ( getElementData ( hitPlayer, "gang" ) == GangName ) then if getElementType(hitPlayer) == "player" then guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) end else outputChatBox ( "you not in the Gang team", player, 255, 0, 0, true ) end end end) addEventHandler("onClientMarkerHit", marker2, function ( hitPlayer, matchingDimension ) if ( isElementWithinMarker(hitPlayer, marker2) ) then if ( getElementData ( hitPlayer, "gang" ) == GangName ) then if getElementType(hitPlayer) == "player" then guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) end else outputChatBox ( "you not in the Gang team", player, 255, 0, 0, true ) end end end) addEventHandler("onClientMarkerHit", marker3, function ( hitPlayer, matchingDimension ) if ( isElementWithinMarker(hitPlayer, marker3) ) then if ( getElementData ( hitPlayer, "gang" ) == GangName ) then if getElementType(hitPlayer) == "player" then guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) end else outputChatBox ( "you not in the Gang team", player, 255, 0, 0, true ) end end end)
-
setElementVelocity هذه للجاذبية
-
مبروك الخدمة الجديدة وعمل رائع بس عندك مشكلة , مايدعم الغة العربية بالتوفيق @
-
يب meta انت اكيد حطيت الأصدار والأسم في ملف بس غير ألأصدار وارفعه
-
upload ارفعه بنفس الأسم من خيار meta.xml بس غير الأصدار من ملف
-
الوقت ينحفض في حساب الاعب يعني لما تشغل المود سجل خروج بعدها سجل دخول واتوقع يرجع الوقت
-
addEventHandler ( "onClientMarkerHit", اسم الماركر, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then if ( isElement ( sound ) ) then -- اذا كان الصوت شغال destroyElement( sound ) -- يطفيه end -- يقفل شرط التحقق من الصوت اذا كان شغال ولآ sound = playSound ( "اسم الصوت" ) -- يشغل الصوت من جديد end end, false )
-
Booo ناقص قوس في كودك addEventHandler("onVehicleDamage", getRootElement(), function () local vehicleHealth = getElementHealth ( source ) if vehicleHealth < 278 then setVehicleEngineState ( source, false ) setVehicleDamageProof(source true) setElementHealth( source,273 ) setElementFrozen (source,true) end end)
-
قصدك لوحة التحكم لنسخة المنتدى ؟
-
php دور لك كود تحويل او سو لك صفحة رئيسية واكتب الي تبي وحط زر يحولك للمنتدى يعني مثلاً تحط اميلك او زر يدخل سيرفرك وزر ثاني يدخلك المنتدى وبالنسبة للملفات الي حذفتها لآزم ترجعها واذا ماقدرت ترجعها فرمت
-
جرب tM = createMarker( ..... ) addEventHandler('onMarkerHit', tM, function( tV ) if getElementType( tV ) == 'vehicle' then setElementSpeed( tV, 'kph', 30 ) end end ) function setElementSpeed(element, unit, speed) -- only work if element is moving! if (unit == nil) then unit = 0 end if (speed == nil) then speed = 0 end speed = tonumber(speed) local acSpeed = getElementSpeed(element, unit) if (acSpeed~=false) then -- if true - element is valid, no need to check again local diff = speed/acSpeed local x,y,z = getElementVelocity(element) setElementVelocity(element,x*diff,y*diff,z*diff) return true end return false end function getElementSpeed(element,unit) if (unit == nil) then unit = 0 end if (isElement(element)) then local x,y,z = getElementVelocity(element) if (unit=="mph" or unit==1 or unit =='1') then return (x^2 + y^2 + z^2) ^ 0.5 * 100 else return (x^2 + y^2 + z^2) ^ 0.5 * 1.61 * 100 end else outputDebugString("Not an element. Can't get speed") return false end end
-
تم التعديل ^^ مانتبهت لها
-
tM = createMarker( ..... ) addEventHandler('onMarkerHit', tM, function( tV ) if getElementType( tV ) == 'vehicle' then setElementSpeed( tV, 'kph', 30 ) end end ) function setElementSpeed(element, unit, speed) -- only work if element is moving! if (unit == nil) then unit = 0 end if (speed == nil) then speed = 0 end speed = tonumber(speed) local acSpeed = getElementSpeed(element, unit) if (acSpeed~=false) then -- if true - element is valid, no need to check again local diff = speed/acSpeed local x,y,z = getElementVelocity(element) setElementVelocity(element,x*diff,y*diff,z*diff) return true end return false end function getElementSpeed(element,unit) if (unit == nil) then unit = 0 end if (isElement(element)) then local x,y,z = getElementVelocity(element) if (unit=="mph" or unit==1 or unit =='1') then return (x^2 + y^2 + z^2) ^ 0.5 * 100 else return (x^2 + y^2 + z^2) ^ 0.5 * 1.61 * 100 end else outputDebugString("Not an element. Can't get speed") return false end end او
-
The Arabic Multi Theft Auto | MTA بـ اللغة العربية
кιηg-αвα∂у replied to iPrestege's topic in Arabic / العربية
كلمة سيرفر اوضح من خادم -
The Arabic Multi Theft Auto | MTA بـ اللغة العربية
кιηg-αвα∂у replied to iPrestege's topic in Arabic / العربية
وش معنى هاذي الكلمات Console Hud Axis -
الحدث سيرفر يعني للسيرفر كله + getRootElement() -- للكل