-
Posts
265 -
Joined
-
Last visited
Everything posted by Bssol
-
وضع اسم للفنكشن افضل بكثير من انك تحطه بدون اسم ومدموج بالايفنت لانه يسهل عليك فهم الكود + يصير يمديك تستخدم الفنكشن نفسه بدون ما تكتبه مره ثانية لكن للاسف كثير من المبرمجين العرب يستخدمون طريقة الدمج مع الايفنت
-
[Q.1] سيرفر طارات الهجولة [KSA] للهجولة والححرب [Q.1]
Bssol replied to ALKiNGabo0de's topic in Arabic / العربية
+1 صاحب الموضوع كاتب حصريات، كثير من المذكور مو حصري، موجودين من قبل ذذ تحتاج يا صاحب الموضوع انك تفهم كلمة "حصري" قبل ما تستخدمها على العموم، بالتوفيق لكم وان شاء الله من افضل السيرفرات تقبل مروري -
.:[ انطلاق الموقع الخاص بسيرفر محترفين الالعاب ]:.
Bssol replied to Bssol's topic in Arabic / العربية
تسلم يا اماراتي، نورت الموضوع بردك اتمنى يعجبك الموقع -
.:[ انطلاق الموقع الخاص بسيرفر محترفين الالعاب ]:.
Bssol replied to Bssol's topic in Arabic / العربية
يعطيكم العافية على المرور اتمنى يعجبكم الموقع -
function onShowButtonClick() if ( source == Conan1 ) then local state = not guiGetVisible(wnd) guiSetVisible(wnd, state) if ( state ) then guiSetText(Conan1, "اغلاق" ) else guiSetText(Conan1, "فتح") end end end addEventHandler("onClientGUIClick", root, onShowButtonClick )
-
local Object = createObject ( 980, -2485.599609375, -615.2998046875, 134.30000305176, 0, 0, 259.99694824219 ) local Marker = createMarker ( -2484.5, -615.5, 131.48368835449, "cylinder", size, 0, 0, 0, 0 ) local group = ".:[MSN]:." function countPlayersInMarker ( marker ) local players = 0 if marker and getElementType(marker) == "marker" then for i,player in ipairs(getElementsByType("player")) do if isElementWithinMarker(player,marker) and ( getElementData(player,"Group") == group ) then players = players + 1 end end end return players end function MoveObject ( theElm ) if ( getElementType ( theElm ) == "player" ) then if ( eventName == "onMarkerHit" ) then if ( countPlayersInMarker ( Marker ) ~= 0 ) then moveObject ( Object, 1500, -2485.599609375, -615.2998046875, 137.30000305176 + 3 ) end else if ( countPlayersInMarker ( Marker ) == 0 ) then moveObject ( Object, 1500, -2485.599609375, -615.2998046875, 134.30000305176 ) end end end end addEventHandler ( "onMarkerHit", Marker, MoveObject ) addEventHandler ( "onMarkerLeave", Marker, MoveObject ) function onPlayerQuit ( ) if ( isElementWithinMarker ( source, Marker ) ) then if ( getElementData(source,"Group") == group ) and ( countPlayersInMarker ( Marker ) == 1 ) then moveObject ( Object, 1500, -2485.599609375, -615.2998046875, 134.30000305176 ) end end end addEventHandler ( "onPlayerQuit", root, onPlayerQuit ) حط اسم القروب في السطر رقم 3 جرب الكود ورد لي خبر
-
اخوي انا عدلت على اكواده بس، ولو تلاحظ في اشياء كثيرة ما عدلتها لانه هو ما وضع الكود كامل ما تدري يمكن يستخدمها مع الاكواد الي ما حطها لكذا انا ما حذفت شي من اكواده، فقط صلحت الاكواد
-
marker1 = createMarker(815.57086,-1093.02063,24,"cylinder",1.5,0,0,0,0) marker2 = createMarker(1961.6999511719,2322.3999023438,15.800000190735,"cylinder",1.5,0,0,0,0) marker3 = createMarker(-2189.8000488281,-245.30000305176,35.5,"cylinder",1.5,0,0,0,0) createBlipAttachedTo(marker1,56) createBlipAttachedTo(marker2,56) createBlipAttachedTo(marker3,56) local ped1 = createPed(293,815.57086,-1093.02063,25.79006,180) local ped2 = createPed(293,1961.8000488281,2321.8000488281,16.5,0.00274658) local ped3 = createPed(293,-2189.8000488281,-245.39999389648,36.5,270.001373) setElementFrozen(ped1,true) setElementFrozen(ped2,true) setElementFrozen(ped3,true) function onPedDamage () if (source == ped1) or (source == ped2) or (source == ped3) then cancelEvent() end end addEventHandler("onClientPedDamage", resourceRoot, onPedDamage ) local x,y = guiGetScreenSize() local oldSkin = getElementModel(localPlayer) function onHitMarker (hit) if (source == marker1) or (source == marker2) or (source == marker3) then if ( hit == localPlayer ) then if isPedInVehicle(localPlayer) then return end guiSetVisible(GUIEditor.window[1],true) showCursor(true) local oldSkin = getElementModel(localPlayer) guiGridListSetSelectedItem ( GUIEditor.gridlist[1], 0, 0) end end end addEventHandler("onClientMarkerHit", resourceRoot, onHitMarker ) addEvent("ShowMessage",true)
-
حياكم الله يا شباب، واتمنى تعجبكم الحركة ذذ ومشكورين على مروروكم الحلووو
-
عالم البرمجة عالم كبير، وكل يوم نتعلم شي جديد ونزيد خبرة تم بحمد الله الانتهاء من فكرة كانت تدور براسي من فترة هذه الفكرة عبارة عن خريطة لاعبين سيرفري على شكل صورة قابلة للتحديث تلقائيا لكي استطيع استخدامها كتوقيع في المنتديات وقد نجحت في هذه المهمة وتم عملها لسيرفري، وهذه خريطة اللاعبين الخاصة بسيرفري ويتم تحديثها تلقائيا *** مــفــــــــاجــــــأة *** الان تستطيع عمل خريطة لسيرفرك وجعلها توقيع لك في المنتديات عن طريق تركيب المود التالي في سيرفرك يجب اعطاء المود صلاحية ادمن لكي يستطيع استخدام كود callRemote السكربت امن وغير ملغم، وليس لي صلاح في اختراق السيرفرات لان ذلك سيأدي الى تشويه سمعتي جديد بحيث يحتوي على صلاحية هذا الكود فقط!1 ACL ولكي تكونوا اكثر اطمئنان، يمكنك عمل رابط تحميل المود http://bssol.ueuo.com/createWebMap.zip بعد تركيب المود على السيرفر، قم بتشغيله، وسوف يظهر لك رابط الصورة الخاصة بسيرفرك في الشات. يتم تحديث الصورة مره كل دقيقة تحياتي للجميع اخوكم Bssol
-
فككره انشاء موقع خاص للعرب ( بدل هذا الموقع ) اقتراح
Bssol replied to ' ρяofзśŝoя 亗's topic in القسم العام
هي حلوة في حالة وحدة مثل هنا lua انك تسوي كود + يكون فيه خصائص قوية مو موجودة هنا -
marker = createMarker(2497.0,-1683.5,13.3,"cylinder",2,0,255,0) local vehicles = {411,506} local vehicleT = {} function onMarkerHit(player) if ( getElementType(player) == "player" ) then if not( isPedInVehicle(player) ) then if ( isElement(vehicleT[player]) ) then destroyElement(vehicleT[player]) end local model = vehicles[math.random(#vehicles)] local x,y,z = getElementPosition(source) vehicleT[player] = createVehicle(model, x,y,z) warpPedIntoVehicle ( player, vehicleT[player] ) end end end addEventHandler("onMarkerHit",marker,onMarkerHit) طبعا المود ناقص، تحتاج تكمله، مثلا اذا طلع اللاعب من السيرفر يحذف السيارة
-
اخوي انت تبيه ماركر حق اعطاء سيارات؟؟ الي فهمته من كودك الاول انك تبي تغير نوع اي سيارة تمر بالماركر الى النوعين الي بالجدول
-
--- Server Side marker = createMarker(2497.0,-1683.5,13.3,"cylinder",2,0,255,0) function onMarkerHit(vh) if ( getElementType(vh) == "vehicle" ) then local vehicles = {411,506} local nm = math.random( #vehicles ) setElementModel ( vh, vehicles[nm] ) end end addEventHandler("onMarkerHit",marker,onMarkerHit)
-
عمل ممتاز، كبداية تعتبر حلوة بالتوفيق
-
.:[ انطلاق الموقع الخاص بسيرفر محترفين الالعاب ]:.
Bssol replied to Bssol's topic in Arabic / العربية
يسلمووو جميعا على الردود حسن + طلال، نورتوا الموضوع اتمنى يعجبكم الموقع ذذذ ------- ***مـــعــــلـــومــــــة*** في بعض الناس سألوني عن سبب تصميم الموقع، احد الاسباب كان لتطوير السيرفر لكن راح اقول لكم السبب الحقيقي، ولو اني ما بغيت اقولها، لكن عشان ما احس اني كذبت عليكم السبب الحقيقي وراء انشاء الموقع هو اســكـــات كل الي يشككون فيني!!1 -
اخوي اطرح فكرة السيرفر الي تبي تسويه، هذا اولا اطرح لنا اسماء المودات الي تبيها او فكرة عنها كذا تكون معنا فكرة كاملة عن الي تبيه
-
.:[ انطلاق الموقع الخاص بسيرفر محترفين الالعاب ]:.
Bssol replied to Bssol's topic in Arabic / العربية
يسلموووا جميعا على المرور، وبالتوفيق لنا ولكم في مشاريعكم ذذ -
.:[ انطلاق الموقع الخاص بسيرفر محترفين الالعاب ]:.
Bssol replied to Bssol's topic in Arabic / العربية
مشكورين يا شباب على المرور، اتمنى يعجبكم ويعجب الجميع -
.:[ انطلاق الموقع الخاص بسيرفر محترفين الالعاب ]:.
Bssol replied to Bssol's topic in Arabic / العربية
يعطيكم العافية شباب على المرور والردود الحلوة -
تم بحمد الله الانتهاء من الموقع الخاص بسيرفر محترفين الالعاب الموقع عبارة عن احصائيات السيرفر، مثل اماكن اللاعبين في الخريطة واعلى النقاط مع امكانية التحكم بيوزرك ** مميزات الموقع 1- معرفة اماكن اللاعبين في السيرفر 2- معرفة اعلى 30 نقطة في السيرفر 3- امكانية تسجيل دخولك للسيرفر عن طريق الموقع والتحكم بيوزرك! ** مميزات التحكم باليوزر 1- يمكنك معرفة لفلاتك في جميع الوظائف 2- امكانية التحكم ببيوتك ( بيع والغاء البيع - تغيير السعر)ة الموقع قابل للتغيير، ان شاء الله راح اضيف مميزات اكثر للموقع لتسهيل عملية التحكم باليوزر تمت برمجة الموقع من قبل Bssol الرابط http://www.mgp1.net اتمنى اشوف تعليقاتكم على الموقع هنا
-
#[9MoD] مود القروب سيستم 1.3 by ahmedfef هدية العيد للجميع ^
Bssol replied to Al-Ha[J]aRii's topic in المساهمات
يعطيك العافية اخ احمد على المود وكل عام والمسلمين بخير تقبل مروري -
I made it as you wanted, It stopped at 100 if the player's max health is 100, and the same with 200. OGF, I know that and i'm sorry lol
-
-- Server Side local timersT = {} function relax (theplayer) if not ( isPedDead(theplayer) ) and not ( isTimer(timersT[theplayer]) ) then -- checking wheather the player is die or not setPedAnimation (theplayer, "BEACH", "Lay_Bac_Loop") -- you missed to put the 'block' timersT[theplayer] = setTimer (health, 10000, 0, theplayer) -- making the player first argument of 'health' fun bindKey ( theplayer, "space", "down", endHealing ) end end addCommandHandler ("relax", relax) function health (theplayer) if ( isElement(theplayer) ) then -- make sure the player didn't quit local is200health = false if ( getPedStat(theplayer,24) > 990 ) then is200health = true end local newHealth = getElementHealth ( theplayer ) + 10 if ( is200health ) then if ( newHealth >= 200 ) then setElementHealth ( theplayer, 200 ) return endHealing(theplayer) end else if ( newHealth >= 100 ) then setElementHealth ( theplayer, 100 ) return endHealing(theplayer) end end setElementHealth ( theplayer, newHealth ) else killTimer(timersT[theplayer]) timersT[theplayer] = nil end end function endHealing(theplayer) setPedAnimation(theplayer) killTimer(timersT[theplayer]) timersT[theplayer] = nil unbindKey ( theplayer, "space", "down", endHealing ) end function onPlayerQuit ( ) if ( isTimer(timersT[source]) ) then killTimer(timersT[source]) timersT[source] = nil end end addEventHandler ( "onPlayerQuit", root, onPlayerQuit ) function onPlayerWasted ( ) if ( isTimer(timersT[source]) ) then endHealing(source) end end addEventHandler( "onPlayerWasted", root, onPlayerWasted )