Jump to content

bebo1king

Members
  • Posts

    91
  • Joined

  • Last visited

Everything posted by bebo1king

  1. Hello , My name is Abdelrahman Ahmed As the topic says we need admins for our server which will open soon and currently open like : GangsWar : mtasa://185.38.151.131:22003 BattleGround : mtasa://185.38.151.131:22004 Hajwala (Drift) : Soon Zombie : Soon
  2. driveInAndGo = {596, 597, 598, 416, 533} function borderMarkerHit(client) --if driveInAndGo[getElementModel(client)]? if getElementType (client) == "player" then local Vehicle = getPedOccupiedVehicle(client) if Vehicle then outputDebugString ("the hit element was a vehicle") else outputDebugString ("the hit element was not a vehicle") end end --getVehicleSirensOn end addEventHandler ("onMarkerHit", borderMarkerLeaveLS, borderMarkerHit) addEventHandler ("onMarkerHit", borderMarkerLeaveSF, borderMarkerHit)
  3. https://wiki.multitheftauto.com/wiki/SetPlayerBlurLevel bool setPlayerBlurLevel ( player thePlayer, int level )
  4. i made it , close the topic please
  5. Hello , I was asking how can i check if the objects in loop was being looped from file with name "Map1" addEventHandler("onClientResourceStart",root, function() local Objects = getElementsByType("object", getResourceRootElement(getThisResource())) for i , ob in pairs (Objects) do -- Complete the code end end)
  6. تسلم على الاقتراح , وذا كانت مشكلة المصمم انه قلد نفس تصميم جراند و ان شاء الله راح نغيره قبل الافتتاح
  7. بسم الله الرحمن الرحيم السلام عليكم ورحمة الله و بركاتة .. بعد طوووووووووول انتظار و شهرين من البرمجة في السيرفر ! رجعنا بقيم مود حرب العصابات بـ اضافات جديدهه * نظام القروبات * نظام اللفل * حرب الكلانات / سبار * تهكير بطريقة جديده ! و الكثثيييير ... المقطع : الادارة #المبرمجين : مجرم / بيبو #المانجر : نيسان / مكاكا#متى الافتتاح؟ :-غير محدد ولاكن بالايام القادمة بأذن الله .# الحصريات .الحصريات بالمقطع غير كاملة .. 92%
  8. function (ZoneElement) if ZoneElement and getElementType(ZoneElement) == "Collision shape" then local Count = 0 for i , v in pairs (getElementsByType("player") ) do if isElementWithinColShape(v,ZoneElement) then Count = Count + 1 end end return Count end end I didn't test it but i think it will run well
  9. i edited the code to do it , i had just removed the clamp function from the function so it looks like this : function dxDrawCircle( posX, posY, radius, width, angleAmount, startAngle, stopAngle, color, postGUI ) if ( type( posX ) ~= "number" ) or ( type( posY ) ~= "number" ) then return false end radius = type( radius ) == "number" and radius or 50 width = type( width ) == "number" and width or 5 angleAmount = type( angleAmount ) == "number" and angleAmount or 1 color = color or tocolor( 255, 255, 255, 200 ) postGUI = type( postGUI ) == "boolean" and postGUI or false if ( stopAngle < startAngle ) then local tempAngle = stopAngle stopAngle = startAngle startAngle = tempAngle end for i = startAngle, stopAngle, angleAmount do local startX = math.cos( math.rad( i ) ) * ( radius + width ) local startY = math.sin( math.rad( i ) ) * ( radius + width ) local endX = math.cos( math.rad( i ) ) * ( radius - width ) local endY = math.sin( math.rad( i ) ) * ( radius - width ) dxDrawLine( startX + posX, startY + posY, endX + posX, endY + posY, color, width, postGUI ) end return true end
  10. Hello , I am trying to edit this function https://wiki.multitheftauto.com/wiki/DxDrawCircle to make it instead of makeing the circle drawn from right instead of left ex ( dxDrawCircle( 50, 50, 110, 7, 1, 0 , 90 ) -- Drawn from midel to left dxDrawCircle( 50, 50, 110, 7, 1, 0 , -90 ) -- Drawn from midel to right (but it don't work ) )
  11. addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function () for i, team in ipairs(getElementsByType("team")) do local name = getTeamName(team) local data = getTeamData(name) if data ~= false then outputChatBox(tostring(false)) setElementData(team, "Kills", data) end end end ) function getTeamData(team) local results = dbPoll( dbQuery( connection, "SELECT * FROM claninfo WHERE teamname = ?", team), -1 ) if type(results) == "table" and #results == 0 or not results then return false else return results[2]["Kills"] end end
  12. Because there is command in mta that have the same name Proof : http://imgur.com/a/reWuN
  13. i tested your code , the problem not in the marker interior the problem in when player hit marker he still in interior 10 he should go interior 9
  14. The problem is here addEventHandler("onMarkerHit",resourceRoot, function(player) local Data = ExitTrainingData[source] if ( Data ) then if not isPedInVehicle(player) and getElementData (player,"Group") == Data[1] then setElementDimension(player,Data[5]) setElementPosition(player,Data[2],Data[3],Data[4]) setElementInterior(player,9) setElementData (source,"BaseTraining",false) end end end) That line don't work that's the real problem setElementInterior(player,9)
  15. count the table right there is 9 argument
  16. as the topic name says , the setElementPosition and dimnesions work 100% , but interior don't work Code : ExitTrainingData = {} local ExitTrainingTable = { {"[Gh|DZ]",-1129,1066.199,1347,2325.61,-1022,1050.2,1,9}, {"X.I.I",-1129,1066.199,1347,2325.61,-1022,1050.2,2,9}, {".:[shNp]:.",-1129,1066.199,1347,2325.61,-1022,1050.2,3,9}, {"DGH",-1129,1066.199,1347,2325.61,-1022,1050.2,4,9}, {"None1",-1129,1066.199,1347,2325.61,-1022,1050.2,5,9}, {"None2",-1129,1066.199,1347,2325.61,-1022,1050.2,6,9} } for i ,v in pairs (ExitTrainingTable) do ExitTraining = createMarker(v[2],v[3],v[4],"arrow",2,0,77,136,150) setElementDimension(ExitTraining,v[8]) setElementInterior(ExitTraining,10) EnterTrainingData[ExitTraining] = {v[1],v[5],v[6],v[7],v[8],v[9]} end addEventHandler("onMarkerHit",resourceRoot, function(player) local Data = ExitTrainingData[source] if ( Data ) then if not isPedInVehicle(player) and getElementData (player,"Group") == Data[1] then setElementDimension(player,Data[5]) setElementPosition(player,Data[2],Data[3],Data[4]) setElementInterior(player,Data[6]) end end end)
  17. اتفق معك فى موضوع التنسيق الصراحا , اشكرك على رائيك
  18. السلام عليكم و رحمة الله و بركته الادارة Borkan Mojrim BeBo1 صور http://imgur.com/a/KLaVd يوجد 10 مهمات حصرية 3 تميات 7 شرطى و حرامية IIP TS3 : 91.134.217.242 Server IP : mtasa://91.134.217.242:22003 يتميز سيرفرنا بالحصريات و التطور المستمر و التصليح السريع !!
  19. addEventHandler("onClientGUIClick", SoyguncuButon, Soygun, function Soygun() if not getPedWeapon(localPlayer,getSlotFromWeapon(31)) then givePedWeapon(localPlayer,31,200,true) end end)
  20. Hello , i am trying to make when player die he spawns to the nearest place from his death place so i created peds in made editor and take the file map to the mod folder and put in the meta ofc the problem which i got is : when i get peds position i get there (x) position only , idk how to get the (y) and (z) Server : addEventHandler("onResourceStart",getResourceRootElement(), function() for i,v in pairs (getElementsByType("ped")) do setTimer ( function () local x,y,z = getElementPosition(v) --outputChatBox (x..","..y..","..z,root) local location = getZoneName ( x,y,z ) local city = getZoneName ( x,y,z, true ) WorldSpawn = {x,y,z,location,city} destroyElement(v) end,500,1) end end) addEventHandler("onPlayerWasted", root, function() for i,positions in ipairs (WorldSpawn) do local x,y,z = getElementPosition (source) local Dist = getDistanceBetweenPoints3D (positions[1],positions[2],positions[3],x,y,z) if Dist < 100 then spawnPlayer (source,positions[1],positions[2],positions[3]) setCameraTarget(source,source) fadeCamera(source,true) end end end) i hope someone explain my problem
  21. addEventHandler ("onResourceStart",root, function () for i,v in ipairs (getAccounts ()) do if getAccountData (v,"FilteredAlready") == false then if getAccountData (v,"Whatever") then setAccountData(v, "Whatever", 0) setAccountData(v,"FilteredAlready",true) end end end end) ما يحتاج يدخل علشان يتحط له داتا
×
×
  • Create New...