Jump to content

Bssol

Members
  • Posts

    265
  • Joined

  • Last visited

Everything posted by Bssol

  1. لان الفنكشنات هذي مصممة انها تستقبل الزاوية بالراديان اذا عوضت فيها زاوية بالدرجات، راح تطلع لك قيم خاطئة
  2. executeSQLQuery( 'CREATE TABLE IF NOT EXISTS `weaponAmmo` (account TEXT, weapon NUMERIC, ammo NUMERIC)' ) function onPlayerQuit( ) local playerAccount = getPlayerAccount(source) if ( playerAccount ) and ( not isGuestAccount(playerAccount) ) then local accountName = getAccountName(playerAccount) local checkData = executeSQLQuery( 'SELECT * FROM `weaponAmmo` WHERE account=?', accountName ) local ammoo = getPedTotalAmmo ( source ) local weaponn = getPedWeapon ( source ) if ( #checkData == 0 ) then executeSQLQuery( 'INSERT INTO `weaponAmmo` (account,weapon,ammo) VALUES(?,?,?)', accountName, weaponn, ammoo ) else executeSQLQuery( 'UPDATE `weaponAmmo` SET weapon=?,ammo=? WHERE account=?', weaponn, ammoo, accountName ) end end end addEventHandler ( "onPlayerQuit", root , onPlayerQuit ) function onPlayerLogin() local playerAccount = getPlayerAccount(source) local accountName = getAccountName(playerAccount) local weaponn1 = executeSQLQuery( 'SELECT * FROM `weaponAmmo` WHERE account=?', accountName ) if ( #weaponn1 ~= 0 ) then local wp = weaponn1[1]['weapon'] local am = weaponn1[1]['ammo'] giveWeapon ( source, wp, am ) end end addEventHandler("onPlayerLogin", root, onPlayerLogin ) الكود غير مجرب، جربه ورد لنا خبر
  3. local vehicle = getPedOccupiedVehicle(source) local x,y,z = getElementPosition(vehicle) local _,_,rz = getElementRotation(vehicle) x = 10 * math.cos(math.rad(rz+90)) + x y = 10 * math.sin(math.rad(rz+90)) + y markers[source] = createMarker(x,y,z-1,'cylinder',4,255,255,255,255)
  4. التايمر ماله داعي مادامك مستخدم onClientRender + لازم الدم والفلوس تكون داخل عشان تتحدث على العموم، الكود بعد التعديل function dxo() local hp = math.ceil ( getElementHealth(localPlayer) ) local money = (getElementData(localPlayer,"Money") or 0) dxDrawText("%"..hp, 879 - 1, 54 - 1, 965 - 1, 82 - 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879 + 1, 54 - 1, 965 + 1, 82 - 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879 - 1, 54 + 1, 965 - 1, 82 + 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879 + 1, 54 + 1, 965 + 1, 82 + 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879, 54, 965, 82, tocolor(51, 169, 203, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("$"..money, 838 - 1, 657 - 1, 1004 - 1, 683 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838 + 1, 657 - 1, 1004 + 1, 683 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838 - 1, 657 + 1, 1004 - 1, 683 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838 + 1, 657 + 1, 1004 + 1, 683 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838, 657, 1004, 683, tocolor(37, 225, 28, 255), 2.00, "default", "left", "top", true, true, false, true, false) end addEventHandler("onClientRender",root,dxo)
  5. Bssol

    تعديل

    هذا الكود الي تقول انك عدلته، ما اشوف تعريف حق الـ name
  6. Bssol

    تعديل

    الكود الي حطيته انت غلط القيمة name مو معرفة في كود السيرفر + guiGridListGetSelectedItem ( gridlist2 ) ~= "" هذي بعد غلط، لان الفنشكشن هذا دايم يرجع قيمة رقم، وانت جالس تقارنه بنص فاضي، معناها المقارنة دائما صحيحة وراح يسوي تريقر ويروح للسيرفر
  7. Bssol

    تعديل

    Client function onClickToRemoveTeam ( ) if ( source == deletem ) then local row = guiGridListGetSelectedItem ( gridlist2 ) if ( row ~= -1 ) then local teamName = guiGridListGetItemText ( gridlist2, row, 1 ) triggerServerEvent( "Server;CreateTeam", localPlayer, "Delete", teamName ) end end end addEventHandler ( 'onClientGUIClick' ,root, onClickToRemoveTeam ) Server function deleteTeamFun( text, teamName ) if ( text == "Delete" ) then local team = getTeamFromName ( teamName ) if ( team ) then destroyElement ( team ) end end end addEvent( "Server;CreateTeam", true ) addEventHandler ( "Server;CreateTeam", root, deleteTeamFun )
  8. Hello, The problem is that the screen goes black (tring to enter) when starting MTA and then quits. No logo appears no nothing, just black screen and then quits. However, when I restart my device, the problem is solved but I have to stay in the game. If I closed the game, the problem may comes again or may not, but after a while, the problem is %100 there and I have to restart my device again. MTADiag http://pastebin.mtasa.com/647583023
  9. مشكورين يا اخوان على الرد، خصوصا الوحش ومجنون فيك، اشتقنا لكم ذذ اتمنى نشوف تواجدكم في السيرفر مثل السابق بالتوفيق لكم
  10. مشكورين يا شباب على الردود الحلوة اتمنى نشوف زيارتكم للسيرفر
  11. بالعكس، انا ارد على اي شخص يرد على مواضيعي، تقدر تشوف الموضيع الي هنا، راح تلاحظ اني ارد باستمرار على الردود .:[ الان، احصل على عضوية خاصة في سيرفر محترفين الالعاب ]:. .:[ قمبلة محترفين الالعاب الحصرية، شراء المقرات المطور ]:. .:[ احصائيات محترفين الالعاب متوفرة الان على الموقع ]:. .:[ موقع محترفين الالعاب بحلته الجديدة + منتدى ]:. لكني المره هذي نسيت الموضوع بكبره، ويوم خشيت انصدمت بـ 30 رد خخخخخ + ان شاء الله، راح احاول اسوي اللي قلته وبالتوفيق لك انت بعد شرفتنا بمرورك على الموضوع
  12. طيب اذا السيرفر كله يتكلم معك، وين تلحق ترد عليهم كلهم ذذ اذا ردينا على واحد وما ردينا على الثاني، وبعدين تقول تكبر، اعتقد مالك حق فيها لاني ما اقدر ارد على الجميع اعتقد انك ما تنكر ان الكل يناديني في الشات، ولا تنكر؟
  13. هذا انا ارد عليك الحين ذذ بدون تكبر بدون خرابيط
  14. اشكر الجميع على الردود الطيبة، خاصة فيس بوك ومبدع ومصري وزاحف، وبقية الشباب والله وقفتكم كانت وقفة رجال الله يعطيكم الف عافية بالنسبة للاخ G.Mix اتقبل رايك، لكن انك تقول ان برمجتي مو احترافية، اجل مدري على اي اساس يكون الاحتراف عندك ذذ اذا كانت برمجتي مو احترافية انا اتحداك انك تسوي عملية رفع المقرات من الموقع مثل ماهو موجود في سيرفري الي تقول عنه فاشل واتحداك تسوي نظام عضوية خاصة التفعيل مباشر بعد عملية الدفع بدون ما تنتظر يوم او يومين مثل بقية السيرفرات ومن متى انا اعرفك عشان اطلب موافقتك انك تخش عندي وتجي انت حضرتك لا توافق خخخخخخخخ هذي يبيلها دليل، صورة من السكايب او اي حاجة تثبتها ذذ
  15. طبعا السيرفر هو نفسه سيرفري السابق، ولكن تم تغيير الاسم ***مالك السيرفر*** Bssol ***مطورين السيرفر*** Bssol N9.38L B[e]SHR_ ***مسؤول الادمنية*** JaSsOm ***مسؤول السبورت*** Youssef_bjbr ***مسؤولين المقرات*** S![M]NnD~ Me[M]a[T]e ***مميزات السيرفر *** 1) مود قروبات مطور 2) وظائف كثيرة ( الزراعة، الراعي، مسخرج حديد، زبال، وغيرها الكثير )1 3) مود الاحتلالات الحصري للسيرفر 4) مود اعلام العصابة 5) مود العضوية الخاصة الحصري، يتم التفعيل مباشرة بعد الدفع!!0 6) امكانية رفع مقر لعصابتك مباشرة الى السيرفر، لمزيد من التفاصيل اضغط هنا 7) مود التجارة اف7 امكانية مشاهدة خريطة السيرفر عن طريق الموقع، اضغط هنا 9) مود احصائيات السيرفر عن طريق الموقع، مع مميزات حصرية، اضغط هنا وغيرها الكثير من المودات والحصريات تفضلو بزيارتنا من هنا mtasa://37.187.199.31:22003 موقع السيرفر http://www.mgp1.net مواضيع ذات صلة .:[ الان، احصل على عضوية خاصة في سيرفر محترفين الالعاب ]:. .:[ قمبلة محترفين الالعاب الحصرية، شراء المقرات المطور ]:. .:[ احصائيات محترفين الالعاب متوفرة الان على الموقع ]:. .:[ موقع محترفين الالعاب بحلته الجديدة + منتدى ]:.
  16. Because it's clear that the variable 'thePlayer' is recived from another place in your code. Your posted code is fine, so the problem is coming from the caller of this function.
  17. function getPlayersInZone ( ZoneName ) local Players = { }; if ( ZoneName ) and ( type(ZoneName) == "string" ) then for _,p in ipairs ( getElementsByType ( "player" ) ) do local x, y, z = getElementPosition ( p ) local Zname = getZoneName ( x, y, z, true ) if ( Zname == ZoneName ) then table.insert ( Players, p ) end end end return Players end function getLargestCityInPopulation ( ) local LS = #getPlayersInZone ( "Los Santos" ) local SF = #getPlayersInZone ( "San Fierro" ) local LV = #getPlayersInZone ( "Las Venturas" ) local city = "Los Santos" -- This is the default city, you can change it to any city. if ( LS > SF ) and ( LS > LV ) then city = "Los Santos" elseif ( SF > LS ) and ( SF > LV ) then city = "San Fierro" elseif ( LV > LS ) and ( LV > SF ) then city = "Las Venturas" end return city end
  18. The problem is in the 'thePlayer' variable, it's a 'nil' value You have to post your whole code so we can fix your problem
  19. بالنسبة لطلبك الاول Client function onButtonClick () if ( source == button ) then -- حط الزر الي تبيه محل كلمة button if ( isTimer(theTimer) ) then return end -- نشيك اذا كان في تايمر عشان ما يسوي فلود theTimer = setTimer ( function() end, 1000, 1 ) -- تايمر منع الفلود triggerServerEvent ( "triggerForClickingButton", localPlayer ) end end addEventHandler('onClientGUIClick',root, onButtonClick ) server local clicks = 0 local playerT = {} function clickFun ( ) if ( clicks ~= 3 ) then if not ( playerT[client] ) then playerT[client] = true clicks = clicks + 1 -- code end end end addEvent ( "triggerForClickingButton", true ) addEventHandler ( "triggerForClickingButton", root, clickFun ) بالنسبة للطلب الثاني، وضح اكثر
  20. يا صاحب الموضوع انت قصدك اللاعب نفسه حده يضغط الزر 3 مرات ولا الزر حده ينضغط 3 مرات من اكثر من لاعب يعني اللاعب الاول يضغط الزر واللاعب الثاني يضغط واللاعب الثالث يضغط بعدها الزر ما ينضغط هذا قصدك ولا كيف؟
  21. مبروك يا اماراتي، تستحق اكثر والله عقبال بقية الاعضاء الي يشاركون ويساعدون
  22. It works fine! Make sure you put it server side, not client!
  23. function engineOffLeave() local vehicle = getPedOccupiedVehicle(source) if ( vehicle ) then if ( getVehicleEngineState(vehicle) ) then setVehicleEngineState(vehicle, false) end end end addEventHandler("onPlayerQuit", root, engineOffLeave)
×
×
  • Create New...