Jump to content

Simple.

Members
  • Posts

    1,004
  • Joined

  • Days Won

    1

Everything posted by Simple.

  1. انت وش تبي تسوي بالضبط ؟ مو ارض احتلال؟
  2. جرب هذا local Groups = {} local GroupData = 'Group' function Turf ( marker ) for i,v in ipairs ( getElementsByType("player") ) do local Group = getElementData ( v, GroupData ) if isElementWithinMarker ( v, marker ) and Group then if not Groups[Group] then Groups[Group] = 0 end Groups[Group] = Groups[Group] + 1 end end end عاد إذا اشتغل معك لازم تعدل عشان تحسب لكل ماركر كم محتلينها وكذا
  3. make sure the db variable 'usedata' isn't local in some function
  4. ok try this addEventHandler("onPlayerLogin", root, function(_, account) outputChatBox(getPlayerName(source).." Giriş yapti.", root) local oyuncu = getPlayerName(source) local ip = getPlayerIP(source) local serial = getPlayerSerial(source) local username = getAccountName(account) local result = dbPoll( dbQuery( usedata_db, "SELECT * FROM masterdata WHERE username = ?", username ), -1 ) if type(result) == "table" and #result ~= 0 and result[1]["username"] == username then outputChatBox("#afafaf[#f9a52fSA:MP#afafaf] #f9a52fVeritabanina bir veri eklenmedi.",root, 255, 255, 255, true ) else dbQuery( userdata_db, "INSERT INTO masterdata VALUES (?,?,?,?,?)",username,serial,ip, '',oyuncu) end end)
  5. local sorgu = dbQuery( userdata_db, "INSERT INTO `masterdata`(`username`, `serial`, `ip` ,`puan` , `name`) VALUES (?,?,?,'',?)",username,serial,ip,oyuncu) what is `puan` for ?
  6. try this addEventHandler("onPlayerLogin", root, function() outputChatBox(getPlayerName(source).." Giriş yapti.", root) local oyuncu = getPlayerName(source) local ip = getPlayerIP(source) local serial = getPlayerSerial(source) local account = getPlayerAccount(source) local username = getAccountName(account) local result = dbPoll( dbQuery( usedata_db, "SELECT * FROM masterdata WHERE username = ?", username ), -1 ) if type(result) == "table" and #result ~= 0 and result[1]["username"] == username then outputChatBox("#afafaf[#f9a52fSA:MP#afafaf] #f9a52fVeritabanina bir veri eklenmedi.",getRootElement(), 255, 255, 255, true ) else local sorgu = dbQuery( userdata_db, "INSERT INTO masterdata VALUES (?,?,?,'',?)",username,serial,ip,oyuncu) dbFree( sorgu ) end end)
  7. use tonumber like this if ( tonumber ( data[1] ) == i ) then
  8. sry , try this function onPreFunction( sourceResource, functionName, isAllowedByACL, luaFilename, luaLineNumber, ... ) local args = { ... } if args[2] then local tR, tG, tB = getTeamColor ( args[2] ) setPlayerNametagColor ( args[1], tR, tG, tB ) else setPlayerNametagColor ( args[1], false ) end end addDebugHook( "preFunction", onPreFunction, { "setPlayerTeam" })
  9. try this function onPreFunction( sourceResource, functionName, isAllowedByACL, luaFilename, luaLineNumber, ... ) local args = { ... } if args[2] and getPlayerNametagColor ( args[1] ) ~= getTeamColor ( args[2] ) then local tR, tG, tB = getTeamColor ( args[2] ) setPlayerNametagColor ( args[1], tR, tG, tB ) end end addDebugHook( "preFunction", onPreFunction, { "setPlayerTeam" })
  10. Simple.

    Team System

    try this ------------------------------------------------ function Invitar (player) if (getTeamFromName("F.B.I")) then setElementData ( source,"F.B.I",true) outputChatBox ( "#00FF00To Join #2EFF9A*F.B.I* #FF0000/accept",source, 0, 255, 0, true ) end end addEvent( "FBI", true) addEventHandler( "FBI", getRootElement(), Invitar ) ------------------------------------------------------------- addCommandHandler( "accept", function(player) if getElementData(player,"Player") and getElementData(player,"F.B.I") then setPlayerTeam(player, getTeamFromName("F.B.I")) triggerClientEvent (player, "lainvitacion", player) else outputChatBox ( "#FF0000You Are Not Invited To Any Clan !!",player, 0, 255, 0, true ) end end)
  11. go to file dxscoreboard_client.lua in scoreboard script add this code after line 398 if #getPlayersInTeam ( team ) ~= 0 then and after line 443 after this code teamSortTableIndex = teamSortTableIndex + 1 add end
  12. السلام عليكم كيف حالكم عندي سكربت تفعيل للتيم سبيك ينفع للسيرفرات الي تستخدم التيم سبيك * يحتاج مساحة مواقع , او خادم مثبت عليه اباتشي + PHP * يحتاج يوزر كيوري - تقدر تسوي ايدنتي جديد وتحط فية خصائص التفعيل فقط وتسوي له يوزر عن طريق التيم سبيك السكربت غير مشفر السعر مو محدد كل واحد يشوف السعر الي يناسبة وياليت مايبخس حقه والتعب طريقة الدفع Paypal فقط السكربت له قاعدة بيانات خاصة وتقدر تتحكم بالمتفعلين وتشيل تفعيلهم عن طريق لوحة في MTA وتقدر تعدل عدد التفعيلات للسيريال وتقدر توقف التفعيل مؤقتا من المود + عند التفعيل يكون هناك قوانين يجب ان اللاعب يوافق عليها , لغات متعدده للقوانين تقدر تضيف وتحذف لغات وتعدل القوانين للتواصل او تجربة المود عن طريق الرسائل الخاصة
  13. Simple.

    mta crashing

    http://c.top4top.net/m_2708klj1.bmp
  14. Simple.

    mta crashing

    hey i have problem mta always crashing i try every thing in this forum and format http://f.top4top.net/m_266oyd61.bmp
  15. مشكلة التحديث حليتها يغلق لاهنتم
  16. إنحلت المشكلة , بفرمته وتركيب من جديد يمكن المشكلة من احد الخطوات نسيتها او شيء
  17. طفيت الـ agent وغيرتها وشغلته
  18. غيرتها وجربت وماضبطت من قبل لاطرح الموضوع ، وجربت اغلب الحلول الي في الموقع حق اللوحه للاسف مانفع شيء
  19. ماضبط ياعبادي , وياليت الي عنده حل ينزله هنا لايقول سكايب وماسكايب , ياخي فيه ناس تبي تستفيد زيي انا قبل لانزل الموضوع بحثت وماحصلت الا موضوعين وكلها تعال سكايب لو انحلت في نفس الموضوع كان مانزل موضوعي هذا
  20. روح لملف update.php وخل الاونر حقها يوزر الاوبن قيم بانل
  21. السلام عليكم ورحمة الله وبركاته كيف حالكم عندي مشكلة باوبن قيم بانل إذا جيت بسوي Add New Remote Host احط الاي بي وكل شيء , تمام لما اضغط Add تطلع لي هالرساله The agent that is controlling this server is offline. Could not add server xx.xxx.xxx.xxx دورت حلول مالقيت ومع العلم اني محدث اللوحه لاخر اصدار
×
×
  • Create New...