Jump to content

SaedAmer

Members
  • Posts

    906
  • Joined

  • Last visited

Everything posted by SaedAmer

  1. كده ؟؟ addEventHandler ( "onPlayerUnmute", root, cancelEvent ( ) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Level 1", "Level 2", "Level 3", "Level 4", "Level 5" ) ) end )
  2. كده صح ؟ addEventHandler ( "onPlayerUnmute", root, cancelEvent ( ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Level 1","Level 2","Level 3","Level 4","Level 5" ) ) then
  3. طيب دلوقتي انا حركت dxDrawRectangle بس الكلام مش عارف احركه يمين و يسار !! dxDrawText
  4. استخدمت ال apm و بردو لفل 1 يقدر يفك الميوت !!
  5. كيف اتحكم فيهم !؟
  6. خلاص عملتها اخي خليتها تظهر في التوب بار شات من admin_server.lua شوف ده
  7. ملف السيرفر !! ----
  8. تمام دلوقتي ده التوب بار شات ازاي اتحكم في حجمه و مكانه ؟ عاوز يكون اخر يمين الشاشة و يصغر شوي ------------------------------------------ -- TopBarChat -- ------------------------------------------ -- Developer: Braydon Davis -- -- File: c.lua -- -- Copyright 2013 (C) Braydon Davis -- -- All rights reserved. -- ------------------------------------------ -- Script Version: 1.4 -- ------------------------------------------ local maxMessages = 5; -- The max messages that will show (on each bar) local DefaultTime = 8; -- The max time each message will show if time isn't defined. ------------------------------------------ -- For scripters only -- ------------------------------------------ local sx_, sy_ = guiGetScreenSize ( ) local sx, sy = sx_/1280, sy_/720 -- you got xXMADEXx's resolution :3 plz no hak mi local DefaultPos = true; local messages_top = { } local messages_btm = { } function sendClientMessage ( msg, r, g, b, pos, time ) -- Msg: String -- R: Int (0-255) -- G: Int (0-255) -- B: Int (0-255) -- Pos: Boolean -- Time: Int if ( not msg ) then return false end if ( pos == nil ) then pos = DefaultPos end local r, g, b = r or 255, g or 255, b or 255 local time = tonumber ( time ) or DefaultTime local data = { message = msg, r = r, g = g, b = b, alpha=0, locked=true, rTick = getTickCount ( ) + (time*1000) } --> Scripters note: --> The remove and intro fades are handled in the render event if ( pos == true or pos == "top" ) then table.insert ( messages_top, data ) return true elseif ( pos == false or pos == "bottom" ) then table.insert ( messages_btm, data ) return true end return false end addEvent ( getResourceName ( getThisResource ( ) )..":sendClientMessage", true ) addEventHandler ( getResourceName ( getThisResource ( ) )..":sendClientMessage", root, sendClientMessage ) function dxDrawNotificationBar ( ) local doRemove = { top = { }, bottom = { } } -- This is used so it prevents the next message from flashing -- Top Message Bar for i, v in pairs ( messages_top ) do local i = i - 1 if ( not v.locked ) then v.alpha = v.alpha - 3 if ( v.alpha <= 20 ) then table.insert ( doRemove.top, i+1 ) end messages_top[i+1].alpha = v.alpha else if ( v.alpha < 160 ) then v.alpha = v.alpha + 1 messages_top[i+1].alpha = v.alpha end if ( v.rTick <= getTickCount ( ) ) then v.locked = false messages_top[i+1].locked=false end end dxDrawRectangle ( (sx_/2-530/2), i*25, 530, 25, tocolor ( 0, 0, 0, v.alpha ) ) dxDrawText ( tostring ( v.message ), 0, i*25, sx_, (i+1)*25, tocolor ( v.r, v.g, v.b, v.alpha*1.59375 ), sy*1, "default-bold", "center", "center") end if ( #messages_top > maxMessages and messages_top[1].locked ) then messages_top[1].locked = false end -- Bottom Message Bar for i, v in pairs ( messages_btm ) do if ( not v.locked ) then v.alpha = v.alpha - 3 if ( v.alpha <= 20 ) then table.insert ( doRemove.bottom, i ) end messages_btm[i].alpha = v.alpha else if ( v.alpha < 160 ) then v.alpha = v.alpha + 1 messages_btm[i].alpha = v.alpha end if ( v.rTick <= getTickCount ( ) ) then v.locked = false messages_btm[i].locked=false end end dxDrawRectangle ( (sx_/2-530/2), sy_-(i*25), 530, 25, tocolor ( 0, 0, 0, v.alpha ) ) dxDrawText ( tostring ( v.message ), 0, sy_-(i*25), sx_, sy_-((i-1)*25), tocolor ( v.r, v.g, v.b, v.alpha*1.59375 ), sy*1, "default-bold", "center", "center") end if ( #messages_btm > maxMessages and messages_btm[1].locked ) then messages_btm[1].locked = false end -- handle message removes if ( #doRemove.top > 0 )then for i, v in pairs ( doRemove.top ) do table.remove ( messages_top, v ) end end if ( #doRemove.bottom > 0 ) then for i, v in pairs ( doRemove.bottom ) do table.remove ( messages_btm, v ) end end end addEventHandler ( "onClientRender", root, dxDrawNotificationBar ) ------------------------------ -- For development -- ------------------------------ addCommandHandler ( 'rt', function ( ) for i=1, 5 do sendClientMessage ( "Testing - Index ".. tostring ( i ), 255, 255, 255, false ) sendClientMessage ( "Testing - Index ".. tostring ( i ), 255, 255, 255, true ) end end ) ------------------------------------------ -- TopBarChat -- ------------------------------------------ -- Developer: Braydon Davis -- -- File: s.lua -- -- Copyright 2013 (C) Braydon Davis -- -- All rights reserved. -- ------------------------------------------ local rName = getResourceName ( getThisResource ( ) ) function sendClientMessage ( msg, who, r, g, b, pos, time ) if ( msg and who ) then if ( isElement ( who ) ) then triggerClientEvent ( who, rName..":sendClientMessage", who, msg, r, g, b, pos, time ) return true else return false end else return false end end addEventHandler ( "onPlayerJoin", root, function ( ) sendClientMessage ( '* '..getPlayerName ( source )..' has joined!', root, 255, 100, 100, false ) end ) addEventHandler ( 'onPlayerQuit', root, function ( tp, reason, respons ) if ( tp == 'Kicked' or tp == 'Banned' ) then msg = '['..tp..' - '..respons..'] ('..reason..')' else msg = '['..tp..']' end sendClientMessage ( "* "..getPlayerName ( source ).." has quit. "..msg, root, 255, 100, 100, false ) end )
  9. السلام عليكم ايه الخطأ هنا ؟ exports.topbarchat:sendClientMessage(ADMIN: $admin has muted $player $data $data2)
  10. المود حملتو و ضفتو لجروب الادمن و ما فتح
  11. هات الفكشانات اني اضفبه لوكال !!!
  12. خلصتو !!!!!! علي فكرة انا ما طلبت جاهز انتم الي تعطوني الجاهز عمر حد دخل و عطاني فكشانات!!!!!!!!! لا تحكو بدون سبب!!! انا لما بسوي موضوع بقول طلب كود ما قصدي كود جاهز و لما اقول ابي فكشن ما طلبت كود جاهز و لما اقول استفسار ما طلبت كود اصلا !!!!!!
  13. ما شتغل اساسا الاول لما كان كلنت الي اشتغل تغير الاسم
  14. السلام عليكم معي مود البيوت لما اجي اسوي بيت و اجي ادخل يدخلني عالم وهمي ايه الحل ؟
  15. ما شتغل خخخخ
  16. السلام عليكم فين الخطأ ؟؟ addEventHandler('onClientPlayerJoin', root, function() outputChatBox('* ' .. getPlayerName(source) .. ' has joined the game', 255, 100, 100) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('* ' .. oldNick .. ' is now known as ' .. newNick, 255, 100, 100) end ) addEventHandler('onClientPlayerQuit', root, function(reason) exports.killmessages:outputMessage('* ' .. getPlayerName(source) .. '#0091FF has left Server AL MLOok [' .. reason .. ']', 255, 100, 100) end )
  17. نفس الكلام ما شتغل
  18. السلام عليكم عاوز الكود الصحيح للكسبورت للتوب بار شات
  19. السلام عليكم انا عاوز لفل 1 يصك ميوت بس ما يقدر يفكه جربت اعملها في الاسل ما نفعت
  20. السلام عليكم كيف اغير عليم اسيرفر الي هو امريكي بالعلم الي عاوزو
  21. ولا واحد اشتغل
×
×
  • Create New...