Jump to content

MA[S]RIY

Members
  • Posts

    820
  • Joined

  • Last visited

Everything posted by MA[S]RIY

  1. م نفع اخي برضو اي مود تاني فيه الكود ذا م ينفع ارجوك ابي حل لذي المشكله
  2. كيف يعني اضفها مع التاج تقصد بعد التاج ؟ #Edit: يسطا انا عايز اعمل مود الاسم العربي والاسم ينحفظ علي الحساب وبرضو اقدر احذفو من علي الحساب فهمتني
  3. لا اخي انا م ابي اغير اسم الحساب انا ابي اغير اسم الاعب علي حساب معين يعني يكون اسم الاعب مسجل علي حساب معين وطبعا الاسم هجيبو من ايديت بوكس
  4. طيب معلش اخي اخر استفسار الحين اي مود فيه onPlayerChat م يشتغل كيف احل ذي المشكله
  5. وبعدان وش اسوي بعد استقبال الترايقر
  6. طيب اخي الحين هرسل في الترايقر الحساب الي هجيبو من الايديت و الاسم الي هجيبو من الليديت بيكون كذا triggerServerEvent(name ,"CHname" ,account) وبعدان استقبل الترايقر وبعدان وش اسووي ؟
  7. setAccountPassword ليش ؟ تقصد setPlayerName ?
  8. السلام عليكم انا مسوي لوحه فيها 2 ايديت بوكس الاولي اكتب فيها الحساب والثاني اكتب فيها الاسم ومسوي زر في اللوحه ابي لما اكتب الحساب والاسم واضغط علي الزر يخلي اسم الاعب المسجل ب الحساب الاسم الي انا كتبتو في الايدي علي الحساب الي انا كتبتو في الايديت وابي يحفظ الاسم علي الحساب م يضيع ابدا # ؟
  9. ؟ والله ي جماعه الموضوع سهل جدا طيب ابي لما اختار شئ من الجريد ليست واضغط ع زر يسوي شئ مثلا: لما اختار اول اختيار في الجريد ليست give واضغط ع زر يعطيني دم
  10. لقيت اخي الكود كنت مكرر انا كود تشكر اخي تعبتك معي ويشكر الجميع تسلمو
  11. كذا التاج ظهر لاكن الشات يكرر واحد بتاج والثاني بدون تاج ولما اقفل الشات يسوي كذا
  12. اخي اولا غلق الشات يطلع لي النص حق تم غلق الشات ويطلع النص ثانيا التاج م رضي يظهر وطلع لي بالدي بق هو ذا السكر outputChatBox(customTag.." " .. getPlayerName ( plr ) .. ":#ffFFff " .. text, root(), r, g, b, true )
  13. اخي صحيح التاج م يظهر زي م قولت + انا مسوي مود قفل الشات لما اقفله م يرضي يقفل الاكواد التاج + غلق الشات function chatbox( text, type) local acc = getPlayerAccount(source) if ChatDisabled then if not isGuestAccount ( acc ) then if not isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then outputChatBox ( "# [ عام ][ نظام الشات ]x الشات مغلق .", source, 255, 0, 0, true ) cancelEvent ( ) return end else outputChatBox ( "# [ عام ][ نظام الشات ]x الشات مغلق .", source, 255, 0, 0, true ) cancelEvent() return end end if isGuestAccount ( acc ) then return end local customTag = getAccountData ( acc, "customTag" ) if customTag then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox(customTag.." " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: "..customTag.." " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#ff0000* [ #000000Owner#ff0000 ] " .. getPlayerName ( source ) .. ":#a00000 " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Console ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Admin - Ex")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#777777* [ Admin - x ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Admin - Ex ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Admin - At")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#777777* [ Admin - At ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Admin - At ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("V.I.P")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFcc00* [ V.I.P ] " .. getPlayerName ( source ) .. ":#ffffff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ V.I.P ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#6600cc* [ Solider ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Police ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFF00* [ Level 1 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.1 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF6600* [ Level 2 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.2 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 3")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#0FC615* [ Level 3 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.3 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 4")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#007000* [ Co.Manager Lv.4 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.4 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 5")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* [ Manager ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.5 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 6")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#CC0000* [ Head.Manager ] " .. getPlayerName ( source ) .. ":#0099cc " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.6 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Head.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) .. ":#0099cc " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Head.Admin ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police.Active")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#6600cc* [ #ff0000Solider.Active#6600cc ] " .. getPlayerName ( source ) .. ":#ffffff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Police.Active ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Trainee")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFF00* [ Trainee ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Trainee ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Everyone")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT:" .. getPlayerName ( source ) .. ": " .. text) end end addEventHandler("onPlayerChat", getRootElement(), chatbox) اخي customTag ذا تاج احطه انا من داخل السرفر يعني بلوحه احط فيها الحساب والتاج فهمني
  14. النص طلع لاكن المشكله الحين م يطلع التاج
  15. طيب وش اسوي في طلبي ابي فقط لما تضغط حرف ف say تكون الكلمه عام بدلا من
  16. ضيفتو بردو م يطلع النص + طلع بالدي بق
  17. اخي انا حليت المشكله دي وخليت الكود بقا كدا unbindKey(source,"t", "down", "chatbox", "say") bindKey(source,"t", "down", "chatbox", "عام") addCommandHandler("عام", function (cmd, ...) local msg = table.concat ( {...}, " " ) if not msg then return end executeCommandHandler("say", msg) end ) دلوقتي طلعلي مشكله تانيه مفيش حاجه بتتطلع بالشات + بيطلع لي بالدي بق
  18. الكلام برضو م طلع بالشات + طلع لي بالدي بق خطا #Edit: السطر 148 الي هو هنا سطر 7
  19. ممكن تسويلي الكود لاني م فهمك
×
×
  • Create New...