Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/08/17 in all areas

  1. عاا انا انقذك منه لأن اذا جربه وما اشتغل يجي ليك ويصير الموضوع 3 صفحات صدقني
    3 points
  2. سلام عليكم ورحمة الله وبركاته كيف الاحوال ان شاء الله تكونو بخير المهم اليوم ما اطول عليكم مسويلكم سكربت ايديتور كيف يعني يعني تجي في لوحة فيها memo + 2button تمام زر client وزر server الميومو تضع في اكوادك اي كان نوعه وبيشتغل وافتح الدي بق عشان تشوف الاخطاء لو كودك في خطا وتضغط زر server او client على حسب نوع كودك تبيه بكلنت او سيرفر طبعا بمجرد عمل رستارت للمود بيروح الكود المهم هذا سكربت تجريبي واشوفه موفر للوقت وللجهد زي guieditor طبعا انا استخدمه حاليا مع المكتبة حقتي وفعلا يوفر وقت وجهد جدا تقدر تفتح اللوحه من اف 5 +المود غير مشفر للي حاب يعدل عليه او يسوي اللي يبي على العموم الاصدار ذا اصدار اولي وعلى حسب الدعم بيكون في اصدار قادم افضل واوفر للجهد والوقت بس بيكون مدفوع طبعا بسعر بسيط ما بيتعدى 20-30 ج او ريال او 10 دولار على العموم باذن الله التحديث الجاي بيكون فيه خاصية اكمال تلقائي للاكواد وتقدر تفعلها او تطفيها وفوق كل ذا بيكون في اقتراحات لاكواد مشابهه يعني مثلا تكتب set يجيك ثلاث اقتراحات setPlayerMoney -setPlayerName-setPlayerHealth بمجرد الضغط على وحده يعدل الميمو حتى تتناسب معها وفوق هذا بيكون في اغلب الفنكشنات بيكون مكتوب الرقمنتات حقتها وطريقة استخدامها وكذا في ميمو اضافي على اليسار لاني صراحة مب متخيل كيف بكتبها بكل فنكشن فعشان كذا قلت اغلب الفنكشنات لك تتخيل الجهد اللي ببذله وبالمقابل 20-30 ريال بيكون شي صراحه مب معقول طبعا ببعيه لاكثر من واحد باذن الله على العموم طولت عليكم اسف التحميل https://up.top4top.net/downloadf-5783bzeq2-zip.html للمهتمين المكتبة اللي شغال عليها بعض الصور لها طبعا الصوره تحتوي على صوره لي زر-نافذه-اديت بوكس https://f.top4top.net/p_57816jms1.png
    2 points
  3. ساكون مشكور subscribe على فكره ده السيرفر الهو كانوا طلبين سكريبترز وانا بعد التجربة طلع سيرفر رائع وفى مودات جميله جدا و لو ينفع تعملوه انا كنت صورت المود و سالت فى صفحه ثانيه عن الاراء بس مفيش تفاعل ارجو تشاهده الفيديو و تقيموه و لو فى اقتراحات تعديل المود
    1 point
  4. مافهمت عليك لكن لو تقصد يضغط زر او زرين من الكبيورد تقدر عن طريق "onClientKey" triggerServerEvent -- banPlayer or kickPlayer
    1 point
  5. I think he wants the image to scale down with distance, so that it's the same size compared to the car at any given distance.
    1 point
  6. @iMr.WiFi..! مفروض تضيف تحقق ان اللوكال بلاير ينافي الاعبين باللوب if ( v ~= getLocalPlayer ( ) ) then لانه راح يضيف اسمه بالقريد ليست وناقصك فنكشن guiGridListClear راح يكرر الاسماء بكل مره يفتح فيها النافذة
    1 point
  7. بالزبط لكن هذا اصدار اولي لكن الاصدار القادم بيكون مدفوع بيكون محرر مثل النوت باد ++ كذا مثلا عرفت كيف اقرا الخواص فوق وجاتلي فكره افضل ليش ما اسوي سكربت من داخل المود باذن بظيف الخاصيه بالاصدار القادم لو لقيت اقبال عليه يعني اكثر من شخص بيشتريه
    1 point
  8. Perform a check for the player's slot and weapon and fire up your function only if m4 equipped. I think it's getPedWeapon, if memory serves.
    1 point
  9. You can use a script which is called boneattach or create it yourself.
    1 point
  10. use this: https://community.multitheftauto.com/index.php?p=resources&s=details&id=2540
    1 point
  11. Replace all weapons with invisible models. Then add all the new weapon models by replacing some useless objects (the pool balls for instance). Equip the new weapons as objects attached to your player's hands. The drawback: all assault rifle variations, for example, will have the same stats. Damage and clip size, maybe range also can be changed with further scripting, however other weapon attributes like rate of fire are shared.
    1 point
  12. Not my server but a server called "Mini-Missions" manages to get 150 euro + per month, around 50 -90 players online everyday
    1 point
  13. Hey thanks about it i'll try but i fix the problem. Script starts with 'destruction derby' race mode. I change race mode to 'freeroam' race mode and fixed. I'll try this for fix code. Thanks again. And vehicle turf wars looks soo cool
    1 point
  14. setElementData(theElement, "checkpoint", (tonumber(playerKOTHPoints) and playerKOTHPoints+1 or 1)) ok try this instead
    1 point
  15. addEvent( "BuyWareInmarket", true ) addEventHandler( "BuyWareInmarket", root, function ( name, ID, Ammo, Money, TotalAmmo, statr ) if (getElementData(source, "Money") or 0) >= tonumber(Money) then local Player = getPlayerFromName ( name ) local accName = getAccountName(getPlayerAccount(Player)) setElementData(Player, "Money", (getElementData(Player, "Money")or 0 ) + tonumber(Money) if localPlayer == getPlayerFromName ( name ) then outputChatBox("You can not buy from yourself !",255,0,0) return end if statr == "Weapon" then giveWeapon(source,ID,Ammo) outputChat("You Have Bought a weapon "..getWeaponNameFromID ( ID ).." and "..Ammo.." Ammo By $"..Money.." From "..name,source,0,255,0) outputChat(getPlayerName(source).." Has bought a "..getWeaponNameFromID ( ID ).." and "..Ammo.." Ammo By $"..Money,Player,0,255,0) else setElementData(source,ID,(getElementData(source,ID) or 0 ) + tonumber ( Ammo )) outputChat("You Have Bought ( "..Ammo.." "..ID.." ) By $"..Money.." From"..name,source,0,255,0) outputChat(getPlayerName(source).." Has bought From you a ( "..Ammo.." "..ID.." ) By $"..Money.."",Player,0,255,0) end getAllWareInShop( source ) getAllWareInShop( Player ) local NewAmmo = tonumber ( TotalAmmo ) - tonumber ( Ammo ) dbExec( ModerMarketDB, "UPDATE Market_Trading SET amount=? WHERE ware = ? AND PlayerAccName = ?",NewAmmo, ID, accName ) else outputChat("You Don't Have Enough Money .",source,255,0,0) end end ); addEventHandler("onPlayerLogin", root, function () local accName = getAccountName(getPlayerAccount(source)) local Market = dbPoll( dbQuery(ModerMarketDB, "SELECT * FROM Market_Trading "), -1) setElementData(source, "Money", (getElementData(source, "Money")or 0 ) + 150) if (type(Market) == "table" and #Market == 0) or not Market then return end for i,v in ipairs(Market) do if v.PlayerAccName == accName then dbExec( ModerMarketDB, "UPDATE Market_Trading SET player=? WHERE PlayerAccName=?", getPlayerName(source), accName ) getAllWareInShop( source ) end end end );
    1 point
  16. اتوقع الجيم مود حقك حرب عصابات صح . معظمهم يستخدمون الفلوس بالداتا . قول عشان استبدلك الأكواد
    1 point
  17. player غير معرفة
    1 point
  18. ^ addEvent ( "ree", true ) addEventHandler ( "ree", root,function ( ) redirectPlayer ( source, '46.105.250.205', 25011 ); end );
    1 point
  19. ^ function setSerialData(serial,key,value) if( value and type(serial) == "string") then setElementData(root,serial.."&"..key,value) end end function getSerialData(serial,key) if ( key and type(serial) == "string") then value = getElementData(root,serial.."&"..key) end return value end
    1 point
  20. setElementData(theElement, "checkpoint", playerKOTHPoints+1 or 1) Try that.
    1 point
  21. Please refer to what the wiki states, more info https://wiki.multitheftauto.com/wiki/EngineReplaceCOL
    1 point
  22. I assume you get the error message on line 3 since you never said where, if so to avoid the error message just change line 2 to this local radio_title = getElementData(resourceRoot, "radio.title") or "" the reason you get that error message is because whenever "radio.title" doesn't exist it returns it as false, and you're trying to get the length of a string in which it gives you that error message. I hope it helps, I can't confirm this solves the problem, as I've run into very weird problems with Lua lately, however, it should work script-wise.
    1 point
  23. Me encanta demasiado, entrare con gusto de probar tus sistemas ¡Suerte en todo!
    1 point
  24. you said : Error at client line 44: atttempt to perform aritmethic on global 'playerKOTHPoints' <a string value> but at line 44 : addEventHandler("onClientRender", rootElement, displayResults) don't give us worng line :v
    1 point
  25. guiGridListGetSelectedItem guiGridListGetItemText getPlayerFromName triggerServerEvent setElementData
    1 point
  26. client addEventHandler("onClientGUIClick",root, function ( ) if( source == GUIEditor.button[2] ) then if guiGetText ( GUIEditor.edit[1] ) ~= '' then setElementData (localPlayer,'tag',guiGetText (GUIEditor.edit[1])) setElementData (localPlayer,'colour',guiGetText (GUIEditor.edit[2])) end elseif( source == GUIEditor.button[1] ) then triggerServerEvent("DelTag",localPlayer) end end ) server function DeletePlayerTag ( player ) if ( getPlayerTag ( player ) == false ) then return false end local playerSerial = getPlayerSerial ( player ) executeSQLQuery("DELETE FROM PlayersTag WHERE serial=?", playerSerial ) setElementData ( player , "tag" , false ) setElementData ( player , "colour" , false ) return true end addEvent("DelTag",true) addEventHandler("DelTag", root, function ( ) DeletePlayerTag ( source ) end )
    1 point
  27. DOWNLOAD: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14669 This is a newly made Zombies script to offer alternative for the Zday zombie infestation script by slothman. It's far from the final version so if you notice any bugs please let me know in this topic, just wanted to get this thing outta here already. Afaik the performance (resource mem and CPU usage on server/client) is way better and more optimized than the original zday script. Video demonstration: It was tested on servers with playercounts ranging from moderate to more than hundred. But if your server has quite some players you might need to raise the max zombies variable in serverside. Also if your server has permanent spawnpoints, zombies may be attracted to many AFK/non moving players in those spots, and quickly use up the max zombies count due to zombie heaping around those spots.
    1 point
  28. executeSQLQuery("CREATE TABLE IF NOT EXISTS PlayersTag (player, serial, tag, colour)") addEventHandler("onPlayerChat",root,function (msg) local tag = getElementData(source,"tag") or 'player' local colour = getElementData(source,"colour") or '#FFFFFF' outputChatBox("#FF0000 # #FFFFFF[ #CD0000"..tag .."#FFFFFF ]x #A5A5A5".. getPlayerName(source) .. ""..colour.." : ".. msg.."",root, 255, 255, 255, true) return cancelEvent() end) function getPlayerTag ( player ) local playerSerial = player and getPlayerSerial ( player ) local playerResult = executeSQLQuery("SELECT * FROM PlayersTag WHERE serial = ? ", playerSerial ) if ( #playerResult ~= 0 and type ( playerResult ) == "table" ) then return playerResult [ 1 ] [ "tag" ] , playerResult [ 1 ] [ "colour" ] end return false end function savePlayerTag ( player ) local playerSerial = player and getPlayerSerial ( player ) local playerTag = getElementData ( player , "tag" ) or false local playerColor = getElementData ( player , "colour" ) or false local playerName = getPlayerName ( player ) if ( not playerTag or not playerColor ) then return false end if ( getPlayerTag ( player ) ~= false ) then executeSQLQuery("UPDATE PlayersTag SET player=?,tag=?,colour=? WHERE serial=?", playerName, playerTag, playerColor,playerSerial) else executeSQLQuery("INSERT INTO PlayersTag(player, serial, tag, colour) VALUES(?,?,?,?)", playerName, playerSerial, playerTag, playerColor) return true end return false end addEventHandler("onPlayerQuit", root, function ( ) savePlayerTag ( source ) end ) addEventHandler("onPlayerLogin", root, function ( ) local playerTag , playerColor = getPlayerTag ( source ) if ( playerTag and playerColor ) then setElementData ( source , "tag" , playerTag ) setElementData ( source , "colour" , playerColor ) end end )
    1 point
  29. لايمكنك تشغيل سيرفر ام تي اي على استضافة مواقع
    1 point
  30. i need help guys , why nobody answers ? Hey it's working now
    1 point
  31. Me encanta. Muchísima suerte con esto @Sergioks!
    1 point
  32. You can always try renaming your MTA San Andreas 1.5/mods/deathmatch/resources folder name to something else temporarily and have it download everything again. That'll clear the local cache. As for it downloading everytime even if you manage to get on the server, it might mean caching is disabled.
    1 point
  33. Maybe for the same reason, since your network its unstable then some files downloaded get corrupted so MTA tries to download them again.
    1 point
  34. السلام عليكم شباب اليوم عندي لكم طريقة تمنع الاوتو والماكروس وتلعبو طبيعي اول شيء روح لملف mtaserver.conf الموجود في mods - deathmatch ادخله وروح ابحث عن <enablesd></enablesd> عن طريق crtl + f واكتب بالوسط 31,32 مثل كذا <enablesd>31,32</enablesd> ملاحضة : لازم تطفي السيرفر قبل ماتسوي الطريقة
    1 point
  35. local diffTimer, paydayTimer local lastPayDay = false addEventHandler("onResourceStart", resourceRoot, function() diffTimer = setTimer(function() local time = getRealTime() local hours = time.hour local minutes = time.minute paydayTimer = setTimer(payDay, 60 * 60000, 0) if hours == 7 then -- in case you were lucky enough to start the resource between 6 and 7 payDay() end end, (60 - minutes) * 60000, 1) -- timer that will start the actual payday timer exactly at hour:00 minutes -- 60 - currentMinutes; if the time is 12:44 |-> 60 - 44 = 12 -> 12 * 60000ms = 12 mins so the timer will start in 12 minutes end) function payDay() local time = getRealTime() local hours = time.hour local minutes = time.minute if hours == 7 and not lastPayDay then outputChatBox("payday...") lastPayDay = true -- just to be safe and make sure it cannot run twice else lastPayDay = false end end Make sure you are using getRealTime server side.. it will use the client PC's timer on client side.. not tested, but should work.
    1 point
  36. حاليا قيد التطوير النظام الاساسي بالسيرفر والشات الخاص والاحداث الجماعية والمجموعات صورة للشات الخاص
    1 point
  37. function skindonator(thePlayer) local account = getPlayerAccount (thePlayer) if isGuestAccount(account) then return end if getAccountData(account,"donatorEnabled") == 1 then setElementModel(thePlayer, 150 ) outputChatBox ("Enjoy your premuim skin") else setElementModel(thePlayer, 189 ) end end end addEventHandler("onPlayerLogin",getRootElement(),skindonator) You forgot to define theplayer account
    1 point
  38. Hi, Today I found that on steam there is GTA:SA for MacOS / OSX so i decided to write this topic. Can you compile MTA source code for MacOS also?
    1 point
  39. Заканчивайте оффтопить. P.S. fabervox, краткость - сестра таланта. Тебя очень трудно читать, и это не только моё мнение.
    1 point
  40. Thanks for everything, I gave up.
    0 points
  41. same 15: attempt to concatenate local 'targetPlayerName' (a boolean / userdata value) addCommandHandler("sendmoney",function(player,cmd,targetPlayer,money) money = tonumber(money) and math.floor(tonumber(money)) or nil if not (targetPlayer) or not (money) then outputChatBox("use /" .. cmd .. " [Player] [Amount]",player,255,0,0,true) else local targetPlayerName = getPlayerFromName (targetPlayer) if targetPlayer then if (targetPlayer==player) then outputChatBox(" You cant give money to yourself.",player,255,0,0,true) elseif money <= 0 then outputChatBox(" Minimum ammount is 0.",player,255,0,0,true) elseif getPlayerMoney(player) >= money then takePlayerMoney(player,money) givePlayerMoney(targetPlayerName,money) outputChatBox ( "You gave " .. targetPlayerName .. " " .. money .. "$", player, 0, 255, 0, true) -- THIS LINE outputChatBox ( "" .. player .. "gave you " .. money .. "$", targetPlayer, 0, 255, 0, true ) -- THIS LINE else outputChatBox(" You dont have enough money.",player,177,9,45,true) end end end end)
    0 points
  42. يخوي ممكن تجمعلي الكود يخوي سريع عطني الكود كامل لاهنت لانه ابيه
    0 points
  43. Nope. The MTA client is currently written for Windows. Trying to make it compatible with macOS's version of GTA SA is a whole other beast in itself. This question has been asked multitudes of times and has received the same response every time.
    0 points
×
×
  • Create New...