Jump to content

Eth

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by Eth

  1. Have you changed the model of weapon 22 and 4? if so then there maybe a bug in weapon mod that makes you unable to see each other's weapon. and about the onehit , try that: also I made a debug string to tells you the weapon ID function oneHit (attacker, weapon) if (attacker) then outPutDebugString(" weapon id is "..weapon.." ") if (weapon == 22 or weapon == 4) then killPed (source) else outputChatBox("[ERROR] 2: No valid weapon!") end else outputChatBox("[ERROR] 1: No valid attacker!") end end
  2. Can you try this and tell me if you saw "ss" and "ss2" in debug? addEventHandler("onResourceStart", root, function (resource) if (enableCompile) and (compileres[resource]) then --setResourceInfo(resource, "laststart", date) local resourceName = getResourceName(resource) for indox, script in ipairs (getResourceScripts(resource)) do local localFile = ":"..resourceName.."/"..script.."" local theScript = fileExists(localFile) and fileOpen(localFile, true) outPutDebugString("ss") if (theScript) then outPutDebugString("ss2") local code = fileRead(theScript, fileGetSize(theScript)) fileClose(theScript) if not (string.byte(code) == 28) then disableJoinonSetup = true fetchRemote("https://luac.multitheftauto.com/?compile=1&debug=1&obfuscate=1", function(responseData, error) if (error == 0) and (responseData) then if (string.find(responseData, "ERROR")) then --outputDebugString(localFile..": "..responseData.."", 1) else fileDelete(localFile) local theScriptC = fileCreate(localFile) fileWrite(theScriptC, responseData) fileClose(theScriptC) outputDebugString(localFile..": Successfully compiled", 3) end else outputDebugString(localFile..": Failed to compiled", 1) end end, code, true) if (indox == #getResourceScripts(resource)) then disableJoinonSetup = false restartResource(resource) end else --outputDebugString(localFile..": Already compiled", 3) end end end end end)
  3. Eth

    spawn problem.

    try set this: local tR , tG , tB = getTeamColor(spawnTeam) to this: local tR , tG , tB = getTeamColor(getPlayerTeam(player)) change this: local r = sR or tR local g = sG or tG local b = sB or tB to: if(sR) then local r = sR else local r = tR end if(sG) then local g = sG else local g = tG end if(sB) then local b = sB else local b = tB end
  4. سيتم فعل ذلك عند انتهائي من بعض الاشياء
  5. try to change spawnPlayer( source, spX, spY, spZ, spA, skin, spI) to spawnPlayer( source, 0, 0, 0, 0, 0) if it worked then there is something wrong. or you can just do: setElementPosition(source,spX,spY,spZ) setPedRotation(source,spA) setElementModel(source,skin) setElementInterior(source,spI) also do in setPlayerToSpawn: outPutDebugString("SpawnPlayer "..getPlayerName(source)".. ") so we can make sure that everything works fine
  6. After you downloaded it, extract it to: MTA San Andreas 1.4\server\mods\deathmatch\resources\ then open MTA Server and type: start filename so for example if I have a file called Eth then: start Eth
  7. اشكرك يا اخي اللعبه ستنشر قريبا
  8. spawnyPojazdow={ {601, 122.98459625244,2066.1225585938,16.934089660645, 2, 0, 50}, } for i,v in ipairs(spawnyPojazdow) do veh = createVehicle(v[1], v[2], v[3], v[4]) vehCol = createColSphere(v[2], v[3], v[4], 1.5) attachElements (vehCol, veh, 0, 0, 0 ) setElementData(vehCol,"parent",veh) setElementData(veh,"parent",vehCol) setElementData(vehCol,"vehicle",true) setElementData(vehCol,"MAX_Slots",80) --Engine + Tires local tires,engine,parts = getVehicleAddonInfos (getElementModel(veh)) setElementData(veh,"Tire_inVehicle",math.random(v[5],tires)) setElementData(veh,"Engine_inVehicle",math.random(v[6],engine)) setElementData(veh,"Parts_inVehicle",math.random(v[7],parts)) --vehicle_indentifikation setElementData(veh,"spawn",{v[1], v[2], v[3], v[4]}) --others setElementData(veh, "fuel",60) end try it
  9. تم الحل شكرا اصدقاء
  10. الله يخليك يا اخي شكرا جزيلا
  11. بسم الله الرحمان الرحيم اليوم يا رفاق قررت ان انشر بلاغ السيرفر الخاص بي الزي سيفتح بعد شهرين او اقل انشاء الله اللعبه خاصتي تسمي "هذا معناها الحرب" او "That Means War" باللغه الانجليزيه السيرفر الخاص بي سيكون لديه الكثير من التجديدات و الاشياء الرائعه مثل: *اللغه العربيه و الانجليزيه لي ال كوماندز * اكثر من 20 مكان للاستيلاء عليه *اسلحه متنوعه و فريده و جديده من نوعها * اكثر من 5 فرق للاختيار بينها * الامكانيه لتغير خصائص الاسلحه الخاصه بك مثل ضررها و شكلها و الكثير *خدمة ال IRC و التي يمكنك التكلم من خلالها عن طريق الموقع ثم ستاتي الي السيرفر *مضاد للهاك و ذلك لحماية اللاعبين *محل اسلحه لشراء اسلحه عديده و هناك المزيد ايضا! و لكن كانت هذه الخصائص الاساسيه فقط و هناك المزيد! شكرا و اسف لتطويل الموضوع
  12. Too many nice people, Thank you everyone! already solved please /lock this topic
  13. Little help please thank you :0
  14. So hello everyone, My name is Eth and I have recently moved from SAMP to MTA [let's face it, MTA Is way better than SAMP] So when I joined MTA I started to script my own gamemode right away as I have Large experience in programming in different languages and everything works great! but I have a little problem here, I am trying to do an announce command for admins that will announce a text for 5 seconds then disappears again, I have searched in MTA wiki but I didn't find the best way to do it. here is my announce command: function Announce( sourcePlayer, commandname, ...) local message = table.concat({...}, " ") if(message ~= nil and message ~= "") then if(tonumber(getElementData(sourcePlayer,"Admin")) < 2) then outputChatBox("ERROR: you Can't use This CMD.",sourcePlayer) outputDebugString("WARNING: Player " .. getPlayerName(sourcePlayer) .. " has attempt to use An ADMIN command. [/"..commandname.."]") return end -- I want my code to be here to announce message else outputChatBox("Error Right Syntax: /announce [text] ",sourcePlayer) end end so how can I do that? thank you.
×
×
  • Create New...