Jump to content

Mr.Mostafa

Members
  • Posts

    1,377
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Mr.Mostafa

  1. وآلله آنك شنب تسلم وآلله مآ تقصر دآيمآ <3 + شوف نظرة بآلخآص @Default#^
  2. تسلم آخوي مآ قصرت <3 + يآريت لو ترد خآص @Default#^
  3. آلسلام عليكم في صورة بآلسيرفر تحت علي آليسآر ذآ آلكود يخلي آلصورة تنور وتطفي في نفس آلثآنية كآنهآ فلشر سريع لكن للآسف جربت آلكود مآ آشتغل ممكن آحد يقولي آلخطآ آو يصلح آلكود # وشكرآ مقدمآ addEventHandler ( "onClientRender", root, function ( ) local id = getElementID ( v ) if id then if string.find(id,"flasher") then local speed = string.gsub(id,"flasher","") local tick = getTickCount()/tonumber(speed)/1000 local color = math.abs(math.sin(-tick)) guiSetAlpha(v, color) end end end ) function setFlasherLabel ( label, speed ) if label then if not isElement ( label ) then return end if not tonumber(speed) then speed = 1 end setElementID ( label, "flasher"..speed ) end end GUIEditor = { staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.staticimage[1] = guiCreateStaticImage(1191, 621, 185, 121, "tara.png", false) setFlasherLabel ( GUIEditor.staticimage[1] ) end ) آلكود من آلآخ ميزو#
  4. آلسلام عليكم آبي مود لمآ شخص يكتب في آف 8 admins يظهر في لوحة كل آلآشخآص آلي معهم رتبة + جمبهم آلرتب آلي معهم آبي آحد يسويلي آلمود بمقآبل سوآ
  5. آللوحة حقتي فيهآ صورة بآلخلفية آبي آلصورة تروح وتيجي في نفس آلثآنية كآنهآ فلشر حق سيآرة @Abu-Solo GUIEditor = { staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.staticimage[1] = guiCreateStaticImage(1191, 621, 185, 121, "tara.png", false) setFlasherLabel ( GUIEditor.staticimage[1] ) end ) هآدي صورة تكون بآلسيرفر آبيك تعدل علي آلكود دآ تخلي آلصورة تيجي وتروح في نفس آلثآنية كآنهآ فلشر ويآريت لو تسويلي آلكود كآمل وتسلم @Abu-Solo
  6. شكرآ علي تعبك لكن للآسف مآ آشتغل هل آلخطآ مني ولآ منك ؟ @Me[Z]oO
  7. مآ بعرف آنآ كل آلي آقدر آسويه آعدل علي مودآت لكن آسوي آكوآد مآ آعرف يآريت تسويه لي آنت @Me[Z]oO
  8. للآسف مآ بعرف آسويه لو تقدر تسويه لي يآريت
  9. غيرته مكآن آلمود وشغلت مود للآسف مآ جآ شي @#BrosS
  10. لو شآت كآن سهل لكن آنآ آبي بس يجي تحت علي آلشآشة
  11. آلسلام عليكم دآ كود يجي صورة بآلسيرفر من تحت علي آليمين آبي آلصورة تنطفي وتنور تنطفي وتنور كآنهآ تروح وتيجي بس في نفس آلثآنية ممكن آحد يعدلي آلكود ويسويهآ؟ --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.staticimage[1] = guiCreateStaticImage(1191, 621, 185, 121, "tara.png", false) end ) وشكرآ له آكيد
  12. آلسلام عليكم آبي مود آو كود بآختصآر يجي رسآلة علي آلشآشة تحت كل شوي بكلآم معين آنآ آحطه من آلكود وشكرآ
  13. آلسلام عليكملو آبي آعدل آلمكآن آلي يطلع في آلي مآتو ( آلكيل مسج )هل آقدر ؟+ آلآحدآثيآت بآي ملف وكيف آعدلهآ وشكرآ ؟
  14. آلسلام عليكم آبي مبرمج لوحآت محترف مرة يعدلي بعض آللوحآت بمقآبل سوآ وشكرآ
  15. مآ تعرف تسويه لي لآني مآ بعرف آسويه للآسف addEvent ( "aResource", true ) addEventHandler ( "aResource", _root, function ( name, action ) if checkClient( "command."..action, source, 'aResource', action ) then return end local pname = getPlayerName ( source ) if ( hasObjectPermissionTo ( source, "command."..action ) ) then local text = "" if ( action == "start" ) then if ( startResource ( getResourceFromName ( name ), true ) ) then text = "started" end elseif ( action == "restart" ) then if ( restartResource ( getResourceFromName ( name ) ) ) then text = "restarted" end elseif ( action == "stop" ) then if ( stopResource ( getResourceFromName ( name ) ) ) then text = "stopped" end elseif ( action == "delete" ) then if ( deleteResource ( getResourceFromName ( name ) ) ) then text = "deleted" end elseif ( action == "stopall" ) then if ( stopAllResources ( ) ) then text = "All Stopped" end else action = nil end if ( text ~= "" ) then outputServerLog ( "ADMIN: Resource \'" .. name .. "\' " .. text .. " by " .. getAdminNameForLog ( source ) ) for id, player in ipairs(getElementsByType("player")) do triggerClientEvent ( player, "aClientLog", _root, text ) end end return true end outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 ) return false end ) @Default#^
  16. مآفي كل آلكلآم دآ في كود صغير يسوي لو معه رتبة فيب - وسجل آلدخول للسيرفر يجي كلمة بآلشآت بس دآ آنآ آلي آبيه
  17. طيب آعدل بآي ملف؟ @Default#^
  18. معلش طيب مآ آبي آلرسآلة تظهر غير لو معه رتبة vip وشكرآ لك @MARIY
  19. client : local sX, sY = guiGetScreenSize () addEventHandler("onClientRender", root, function () if ( getElementData ( resourceRoot, "Have_" ) == true ) then local Lines = getChatboxLayout ()["chat_lines"] if ( Lines <= 10 ) then Lines = Lines + 1 elseif ( Lines >= 20 ) then Lines = Lines - 1 else Lines = Lines end if ( getElementData ( resourceRoot, "Msg_" ) == "delete" ) then setElementData ( resourceRoot, "Have_", false ) else dxDrawText("[", 37 - 1, 214 - 1, 51 - 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("[", 37 + 1, 214 - 1, 51 + 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("[", 37 - 1, 214 + 1, 51 - 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("[", 37 + 1, 214 + 1, 51 + 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("[", 37, 214, 51, 226, tocolor(254, 191, 92, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Admin", 47 - 1, 214 - 1, 96 - 1, 228 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Admin", 47 + 1, 214 - 1, 96 + 1, 228 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Admin", 47 - 1, 214 + 1, 96 - 1, 228 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Admin", 47 + 1, 214 + 1, 96 + 1, 228 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Admin", 47, 214, 96, 228, tocolor(249, 118, 78, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("] :", 89 - 1, 214 - 1, 103 - 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("] :", 89 + 1, 214 - 1, 103 + 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("] :", 89 - 1, 214 + 1, 103 - 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("] :", 89 + 1, 214 + 1, 103 + 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("] :", 89, 214, 103, 226, tocolor(254, 191, 92, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 - 1, 214 - 1, 129 - 1, 230 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 + 1, 214 - 1, 129 + 1, 230 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 - 1, 214 + 1, 129 - 1, 230 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 + 1, 214 + 1, 129 + 1, 230 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106, 214, 129, 230, tocolor(254, 254, 254, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18 - 1, 230 - 1, 79 - 1, 236 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18 + 1, 230 - 1, 79 + 1, 236 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18 - 1, 230 + 1, 79 - 1, 236 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18 + 1, 230 + 1, 79 + 1, 236 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18, 230, 79, 236, tocolor(192, 189, 189, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(resourceRoot,"By_"), 18, 230, 79, 236, tocolor(192, 189, 189, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) --dxDrawText ( "#999999 - [ #00FFFFConsoLe#999999 ] : [ ".. getElementData ( resourceRoot, "By_" ) .." #999999] #FFFFFF: " .. getElementData ( resourceRoot, "Msg_" ).. "", sX * 0.02, sY * 0.03 * Lines , sX, sY, tocolor ( 0,100,255,255,1 ), 1, "default-bold", "left", "top", false, false, false, true, false ) if ( getElementData ( resourceRoot, "Have_" ) == true ) then playSound("chat.mp3",false) outputChatBox ( "@@@@@@",250, 0, 0, false ) end end end end ) bindKey("i", "down", "chatbox","AM") server : local Groups = { "AdminMsg", "AdminMsj" } function isPlayerAdmin(player) for k,v in ipairs ( Groups ) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup(v)) ) then return true end end end addCommandHandler("AM", function ( player, cmd, ... ) if not ( isGuestAccount ( getPlayerAccount ( player ) ) ) then if ( isPlayerAdmin ( player ) ) then local msg = {...} local message = table.concat(msg, " ") setElementData ( resourceRoot, "Have_", true ) setElementData ( resourceRoot, "Msg_", message ) if ( getElementData ( player, "Name" ) and getElementData ( player, "Name" ) ~= false ) then setElementData ( resourceRoot, "By_", getElementData ( player, "Name" )) else setElementData ( resourceRoot, "By_", getPlayerName ( player )) end else outputChatBox("* You Are Not Admin !", player, 255, 0, 0, true) end else outputChatBox("* Please Login !", player, 255, 0, 0, true) end end) @MARIY #up
×
×
  • Create New...