Jump to content

bebo1king

Members
  • Posts

    91
  • Joined

  • Last visited

1 Follower

Details

  • Gang
    TITANS
  • Location
    Egypt

Recent Profile Visitors

1,446 profile views

bebo1king's Achievements

Punk-@ss B*tch

Punk-@ss B*tch (12/54)

6

Reputation

  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)
×
×
  • Create New...