Jump to content

SaedAmer

Members
  • Posts

    906
  • Joined

  • Last visited

Everything posted by SaedAmer

  1. مش فاهم يعني دلوقتي احظه ب مود لوحده و يكون سيرفر ؟
  2. اوك شكرا طيب و الكود التاني؟ "onPlayerMute" "onPlayerUnmute" exports["TopBarChat"]:sendClientMessage "onPlayerBan" هما فنكشات طيب احطه فين بظبط؟
  3. اوك شكرا طيب و الكود التاني؟
  4. طيب و غير اسمو ؟؟
  5. السلام عليكم و رحمة الله و بركاته انا معي مود التوب بار شات بس يظهر من اسفل الشاشة انا عاوز اعلي الشاشة الاكواد كلينت -- ------------------------------------------ -- 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 )
  6. ممكن الكود جاهز؟
  7. السلام عليكم و رحمة الله و بركاته الكود الاول -- انا معي مود دخل و خرج ابي المسج تطلع في الكيل مسج ------------ الكود الثاني ابي لما اصك حد موت او كيك او بان المسج تيجي في التوب بار شات و شكرا
  8. السلام عليكم و رحمة اله و بركاته انا معي مود مهمة ديس متش عاوز اخله بدل ما اكتب في الشاع عشان ادخل المهمة اخليه ب ماركر و الي يلمس الماركر يدخلو المهمة ---------------------------------------------- 2- انا معي مود السجن بس لما بسجن حد ف1 بتفتح عاوز كود يقفل ف1 طول ما العب مسجون و لما ينفك سجنه تفتح تاني مشكورين مقدما ----
  9. الكلام يظهر مرتين مع العلم انا قافل الفري روم function chatbox( text, type) cancelEvent() local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then outputChatBox("#2A6652* [ Deleverpoe ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then outputChatBox("#888888* [ Head Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", getRootElement(), chatbox) تم شكرا تعبتك مي
  10. الكلام يظهر مرتين مع العلم انا قافل الفري روم function chatbox( text, type) cancelEvent() local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox( "*".. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#b7b7b7 * [ Console ]" .. name ..":#04FB15 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-Ex")) then outputChatBox("#A5A5A5* [ Admin-Ex ] " .. name ..":#A5A5A5 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ACL-Manager")) then outputChatBox("#1A10D4* [ ACL-Manager ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL1")) then outputChatBox("#2ABAC1* [ Lv.1 ] " .. name ..":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL2")) then outputChatBox("#2ABAC1* [ Lv.2 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL3")) then outputChatBox("#23F50C* [ Lv.3 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL4")) then outputChatBox("#1A9F0B* [ Lv.4 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL5")) then outputChatBox("#6740B0* [ Lv.5 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL6")) then outputChatBox("#B2B22D* [ Lv.6 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL7")) then outputChatBox("#B2B22D* [ Lv.7 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL8")) then outputChatBox("#A63911* [ Lv.8 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("LVL9")) then outputChatBox("#A63911* [ Lv.9 ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("General-Admin")) then outputChatBox("#0EFE06* [ Boss Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help Console")) then outputChatBox("#2A6652* [ Deleverpoe ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Admin")) then outputChatBox("#888888* [ Head Admin ] " .. name .. ":#D0A20A " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#D0A20A* [ Player ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SaedAmer")) then outputChatBox("#a5a5a5*[Owner] sαєɒαмєя:#ff0055 " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", getRootElement(), chatbox) تم شكرا تعبتك مي
  11. خلاص حليت المشكلة ------ الكلام يظهر مرتين مع العلم انا قافل الفري روم
  12. خلاص حليت المشكلة ------ الكلام يظهر مرتين مع العلم انا قافل الفري روم
  13. انا اعاوز اعرف الخطا فين مش اكتر outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,0,0,true) local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#660000 * [ Console ] " .. name .. ": #ffFFff" .. text, root, 255, 255, 255, true) else outputChatBox("#A2AB07 #Chat Loked By Console", root, 255, 255, 255, true) end function GRAND() outputChatBox ( "#Chat Loked By Console", source, 0, 0, 0, true ) end addEventHandler("onPlayerJoin", getRootElement(), GRAND) end
  14. انا اعاوز اعرف الخطا فين مش اكتر outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,0,0,true) local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#660000 * [ Console ] " .. name .. ": #ffFFff" .. text, root, 255, 255, 255, true) else outputChatBox("#A2AB07 #Chat Loked By Console", root, 255, 255, 255, true) end function GRAND() outputChatBox ( "#Chat Loked By Console", source, 0, 0, 0, true ) end addEventHandler("onPlayerJoin", getRootElement(), GRAND) end
  15. اخلي الكونسول يتكلم فقط و يكون للكونسول تاج زي اي ده #b7b7b7 * [ Console ] و الي يجي يتكلم يكتبلو #Chat Loked By Console
  16. اخلي الكونسول يتكلم فقط و يكون للكونسول تاج زي اي ده #b7b7b7 * [ Console ] و الي يجي يتكلم يكتبلو #Chat Loked By Console
  17. طيب و ده الكود سليم و شغال بس التاح مش بيظهر outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,0,0,true) local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#660000 * [ Console ] " .. name .. ": #ffFFff" .. text, root, 255, 255, 255, true) else outputChatBox("#A2AB07 #Chat Loked By Console", root, 255, 255, 255, true) end function GRAND() outputChatBox ( "#Chat Loked By Console", source, 0, 0, 0, true ) end addEventHandler("onPlayerJoin", getRootElement(), GRAND) end
  18. طيب و ده الكود سليم و شغال بس التاح مش بيظهر outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,0,0,true) local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#660000 * [ Console ] " .. name .. ": #ffFFff" .. text, root, 255, 255, 255, true) else outputChatBox("#A2AB07 #Chat Loked By Console", root, 255, 255, 255, true) end function GRAND() outputChatBox ( "#Chat Loked By Console", source, 0, 0, 0, true ) end addEventHandler("onPlayerJoin", getRootElement(), GRAND) end
  19. طيب و لو عاوز اضيفلو كود اول ما شتغلو يظهر كالم في الشات بالون الاصفر
  20. طيب و لو عاوز اضيفلو كود اول ما شتغلو يظهر كالم في الشات بالون الاصفر
×
×
  • Create New...