Jump to content

Rakan#

Members
  • Posts

    451
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Rakan#

  1. function dxDrawImageOnElement(TheElement,Image,distance,height,width,R,G,B,alpha) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local width = width or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawMaterialLine3D(x, y, z+1+height-(distanceBetweenPoints/distance), x, y, z+height, Image, width-(distanceBetweenPoints/distance), tocolor(R or 255, G or 255, B or 255, alpha or 255)) end end end end addEventHandler( "onClientGUIClick", root, function( ) if source == EmF1 then setElementData ( localPlayer , "showImg" , not getElementData ( localPlayer , "showImg" ) ) end end ) local myImage1 = dxCreateTexture( "Emoticons/EM1.png" ) addEventHandler ( "onClientRender" , root , function ( ) for _ ,v in ipairs ( getElementsByType ( "player" ) ) do if getElementData ( v , "showImg" ) == true then dxDrawImageOnElement( v, myImage1 ) end end end )
  2. اذا انت صامل وماتسحب زي كل مره اعتبرني معك
  3. ي الله اللي يحب يدور مشاكل @Abdo Nour سكربت جميل، واصل
  4. لا مازعلت بس مافهمت وش تبي ردة فعل
  5. وش تبي ردة فعل يعني تبي نقول واو جلدنا ولا وش اللي فكرت به ورع وعرف يضيف كم تعديل على فيديو وما اعصب من ورعان اسف لو كنت متوقع مني انفعال ومضاربه
  6. حط حسابك بسيرفرك اسم حسابك والباسورد وغالبا لازم معك رتبه
  7. جرب موقع اخر مثل موقع اللعبه لو نفع معناها الشخص مانع موقع اليوتيوب من الاعدادات
  8. هو يبي يوصلك ان بإمكانك اختصاره كذا وتزود المعلومات زي ماتبي انت هو يبي يوضح لك الفكره
  9. Rakan#

    string

    وضح . تقصد تمسح الرقم من السترنق استعمل string.gsub واذا ماكان قصدك كذا وضح اكثر , حط كودك ووضح
  10. local AdminSerials = { ["dai"] = "D46516DC5E6FDDFF9D58BEF643086E42", ["x"] = "1D6F76CF8D7193792D13789849498452", ["test2"] = "D46516DC5E6FDDFF9D58BEF643086E42", ["test1"] = "1D6F76CF8D7193792D13789849498455" } addEventHandler("onPlayerLogin", root, function() local serial = getPlayerSerial( source ) local check = getAccountName(getPlayerAccount( source )) for k, v in pairs ( AdminSerials ) do if v == serial then outputChatBox("check 1 passed",getRootElement()) if k == check then adminName = getPlayerName( source ) outputChatBox("#000000[#FF0000Server#000000]#FF0000 Admin "..adminName.." #FF0000Has Logged In!",getRootElement(),nil,nil,nil,true) else cancelEvent( true,"unauthorised login!") end end outputChatBox("check 1 failed",getRootElement()) end outputChatBox("check 2 failed",getRootElement()) end
  11. لانك حاط نص كود السيرفر م عطيتنا كودك بالكامل ركز على اللي حطيته انت انا اخذته وعدلته بس .
  12. @Default#^ تبوني أوصف الاسطوره ذا بكلمه ؟ ما اقدر لو افكر من هنا لبكرا . أفضل خوي عرفته باللعبه
  13. command = "ok" ---- هنا الكلمة الي تفتح بيها اللوحة حقة الاسل command2 = "formate" --- هذه الكلمة تكتبها بأف8 مسافة اسم الرتبة ( تفرمت كل الي فيها (( تسحب كل االحسابات الي فيها )) ) group = "Manager" ---- هنا الرتبة الي تفتح لها اللوحة حقة الاسل group2 = "Console" ---- ( الجروب الذي يمكنه الفرمتة (( formate )) ) Table = {} setElementData(resourceRoot,"log","")---- الكلمة الي تفتح اللوحة حقة مراقبة الاسل يظهر فيها من رقى من وهاكذا الكلمة ( log ))) Days = { [1] = "الأحد", [2] = "الاثنين", [3] = "الثلاثاء", [4] = "الأربعاء", [5] = "الخميس", [6] = "الجمعة", [7] = "السبت" } Months = { [1] = "يناير", [2] = "فبراير", [3] = "مارس", [4] = "أبريل", [5] = "ماي", [6] = "يونيو", [7] = "يوليوز", [8] = "غشت", [9] = "شتنبر", [10] = "أكتوبر", [11] = "نونبر", [12] = "دجنبر" } addCommandHandler(command2,function(thePlayer,cmd,name) if isObjectInACLGroup ("user.".. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup (group2) ) then if aclGetGroup(name) then for i,object in pairs(aclGroupListObjects(aclGetGroup(name)))do aclGroupRemoveObject(aclGetGroup(name),object) end outputChatBox("Action executed!",thePlayer,255,255,0,true) else outputChatBox("Group not exists!",thePlayer) end end end) addCommandHandler("log",function(thePlayer) if isObjectInACLGroup ("user.".. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup (group2) ) then triggerClientEvent(thePlayer,"returnACLLog",thePlayer) end end) addCommandHandler(command,function(thePlayer) if isObjectInACLGroup ("user.".. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup (group) ) then triggerClientEvent(thePlayer,"onOpenACLWindow",thePlayer) groups = {} for i,g in ipairs(aclGroupList()) do if aclGroupGetName(g) ~= "Console" and aclGroupGetName(g) ~= "Admin" then table.insert(groups,aclGroupGetName(g)) end end triggerClientEvent(thePlayer,"returnGROUPSNAMES",thePlayer,groups) end end) addEvent("getGroupObjects",true) addEventHandler("getGroupObjects",getRootElement(),function(name) for i,obj in pairs(aclGroupListObjects(aclGetGroup(name)))do exists = "no" if string.find(obj,"user.",1) then nick,last = getAccountPlayerData(string.gsub(obj,"user.","")) if getPlayerFromAccount(string.gsub(obj,"user.","")) then exists = "yes" end else nick,last = "NONE","NONE" end triggerClientEvent(source,"returnObjects",source,obj,nick,last,exists) end end) function getAccountPlayerData(name) if Table[name] then nick,last = Table[name]["nick"],Table[name]["lastTime"] else nick,last = "NONE","NONE" end return nick,last end addEventHandler("onPlayerLogin",getRootElement(),function() name = getAccountName(getPlayerAccount(source)) nick = getPlayerName(source) time = getRealTime() num = tonumber(time.weekday)+1 day = Days[num] num = tonumber(time.month)+1 month = Months[num] if string.len(time.minute) == 1 then minute = tostring("0" .. time.minute .. "") else minute = time.minute end theTime = tostring("" .. day .. " " .. time.monthday .. "-" .. month .. "-" .. tonumber(time.year)+1900 .. "[" .. time.hour .. ":" .. minute .. "]") if Table[name] then Table[name]["nick"] = nick Table[name]["lastTime"] = theTime else Table[name] = { ["nick"] = nick, ["lastTime"] = theTime } end end) function getPlayerFromAccount(acc) for i,p in pairs(getElementsByType("player"))do if tostring(getAccountName(getPlayerAccount(p))) == tostring(acc) then return true end end end addEvent("onManageACL",true) addEventHandler("onManageACL",getRootElement(),function(action,obj,group) if action == "remove" then aclGroupRemoveObject(aclGetGroup(group),obj) setElementData(resourceRoot,"log",tostring("" .. getElementData(resourceRoot,"log") .. "\n-" .. getPlayerName(source) .. "(" .. getAccountName(getPlayerAccount(source)) .. ") removed object " .. obj .. " from group:" .. group .. "")) elseif action == "add" then aclGroupAddObject(aclGetGroup(group),obj) setElementData(resourceRoot,"log",tostring("" .. getElementData(resourceRoot,"log") .. "\n-" .. getPlayerName(source) .. "(" .. getAccountName(getPlayerAccount(source)) .. ") added object " ..
  14. مود جميل والله من واحد مبدع مو غريب منك الحصريات لكن ورا مانشوفك تنزل عرض/بيع مودات زي قبل موداتك رهيبه لآزم تكثر منها .
  15. جميل لكن لو تسوي تحقق أن اللاعب حي مب ميت + تخليه جدول أفضل .
×
×
  • Create New...