Jump to content

v[ مشكلة ]v مشكلة لوحة تاجات الخاصة


#Dr.BnG

Recommended Posts

--- 

انك ديما تجي تحط مواضيع و تقول تعالو سكايب او ما اعرف اسوية ..

 

---

حاول تتعلم ولا - لا تنزل مواضيع بعد ذا موضوع و اترك منتدى لـ ناس ثانيه ..

مو فاضين كل شوي تنزل موضوع و تكتب ما اعرف او تعالو سكايب -_-

---

علي اقل حاول لو بشي بسيط

 

علشان نقول حاول و نساعده

 

و الله يوفقك ..

 

ان شاء الله يجي شخص و يساعدك

 

في امان الله

Link to comment

حبيبي سعد

انا ما انزل اي مواضيع غير لو حاولت في الكود وفشلت

وجربت كود مستر جراند

ومافي اي امل

ومدري وش فيهم مافي احد يبي يحطلي كود

ضضضض 

اصلا كل انزل اي موضوع ما استفاد شي 

ضض

Link to comment
34 minutes ago, #Dr.BnG said:

حبيبي سعد

انا ما انزل اي مواضيع غير لو حاولت في الكود وفشلت

وجربت كود مستر جراند

ومافي اي امل

ومدري وش فيهم مافي احد يبي يحطلي كود

ضضضض 

اصلا كل انزل اي موضوع ما استفاد شي 

ضض

اطرح محاولتك ...

Link to comment

مود تاجات هذا يشتغل علي السريال + الرتب العادية بدون تكرار

لاكن بدون لوحة

شوف يمكن تاخذ منه اكواد تفيدك

او استخدمه هو كامل

local root = getRootElement()
function chatbox(text, msgtype)
local account = getAccountName(getPlayerAccount(source))
local name = getPlayerName(source)
cancelEvent()

    if getPlayerSerial(source) == '530CB046171B1E7341EAA91C25A766F3' then
        outputChatBox('#33FFCC=[#FF0000Server#FF0099OWNER#33FFCC]= #cc0000*#FFFF00[#FF00ccMR.#00ffccGRAND#FFFF00]#cc0000* ~:#ffffff'.. text, root, 255, 255, 255, true)

	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then
        outputChatBox("#ff0033彡 #ff6600Server OwneR #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
	
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then
        outputChatBox("#ff0033彡 #ff0000Server OwneR #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help.Console")) then
        outputChatBox("#ff0033彡 #66ff66Help Console #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then
        outputChatBox("#ff0033彡 #66ffccCiriminal #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Console")) then
        outputChatBox("#ff0033彡 #ccff00Dieputy Console #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
	
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Black")) then
        outputChatBox("#ff0033彡 #cc6600Dieputy Black #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Managers")) then
        outputChatBox("#ff0033彡 #cc3333Managers #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then
        outputChatBox("#ff0033彡 #990099Manager #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Managers")) then
        outputChatBox("#ff0033彡 #996600Vote Managers #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Manager")) then
        outputChatBox("#ff0033彡 #996633Vote Manager #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then
        outputChatBox("#ff0033彡 #99ff00Manager-Acl #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Manager-Acl")) then
        outputChatBox("#ff0033彡 #ccff33Vote Manager-Acl #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Special.Prince")) then
        outputChatBox("#ff0033彡 #000066Special Prince #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Admin")) then
        outputChatBox("#ff0033彡 #ffff00Prince Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
	
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then
        outputChatBox("#ff0033彡 #3366ffPrince Server #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Admin")) then
        outputChatBox("#ff0033彡 #0000ffKing Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then
        outputChatBox("#ff0033彡 #669999Admin Black #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Mo7tref")) then
        outputChatBox("#ff0033彡 #33ffffAdmin Mo7taref #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Special.Admin")) then
        outputChatBox("#ff0033彡 #990000Special Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Boss")) then
        outputChatBox("#ff0033彡 #333399Admin Boss #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then
        outputChatBox("#ff0033彡 #ffcc00Admin General #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Server")) then
        outputChatBox("#ff0033彡 #336666Admin Server #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then
        outputChatBox("#ff0033彡 #990033Professional Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then
        outputChatBox("#ff0033彡 #00ff00Head Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then
        outputChatBox("#ff0033彡 #660000Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then
        outputChatBox("#ff0033彡 #999900SuperModerator #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then
        outputChatBox("#ff0033彡 #ff33ffModerator #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then
        outputChatBox("#ff0033彡 #663333Police #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then
        outputChatBox("#ff0033彡 #666600King Of Drift #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Time")) then
        outputChatBox("#ff0033彡 #339933King Of Time #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then
        outputChatBox("#ff0033彡 #ffffffEveryone #ff0033彡#ffffff" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		end
function WELCOME()
end
addEventHandler("onPlayerJoin", getRootElement(), WELCOME)
end
addEventHandler("onPlayerChat", root, chatbox)		
	

 

Link to comment
local root = getRootElement()
 
function chatbox(text, msgtype)
local systemDBconnect = dbConnect( 'sqlite', ':TagsSystem-Professional_v01/[TAGS system] Database.db' ) 
local checkTag = dbQuery( systemDBconnect, ' SELECT * FROM `TagsSystemPro` WHERE serial = ? ', getPlayerSerial( source ) ) 
local dbValues = dbPoll( checkTag, -1 ) 
if ( type( dbValues ) == 'table' and #dbValues ~= 0 ) then 
local state = dbValues[1]['state'] 
if ( state == 'Enabled' ) then return end end


    local account = getAccountName(getPlayerAccount(source))
    local name = getPlayerName(source)
 cancelEvent()
    if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then
        outputChatBox("NO" .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then
        outputChatBox("Console╝" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then
        outputChatBox("#D90B7C♦[ « #27F2F2Pro Race #D90B7C» ]♦" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		end
		
addEventHandler("onPlayerJoin", getRootElement(), ABOELGHAR)
end
addEventHandler("onPlayerChat", root, chatbox)

  function getSerialData(serial,key)
 if ( key and type(serial) == "string") then
  value = getElementData(root,serial.."&"..key)
 end
 return value
end

function setSerialData(serial,key,value)
 if( value and type(serial) == "string") then
  setElementData(root,serial.."&"..key,value)
  end
end

هذا هو الكود

تاج الرتبة شغال عادي

لكن المشكلة اجي اركب لاحد تاج

يجي تاج الرتبة ويجي التاج الخاص

ولو سحبته يجي تاج الرتبة بس

تعرف حل ؟؟؟

احد بس يعدلي الكود

ويخله ما يكرر لو ركبت تاج خاص

ويدزه

وشكرا :)

Link to comment

جربت هذا ؟ 

2 hours ago, MR.NaiF-MTA said:

مود تاجات هذا يشتغل علي السريال + الرتب العادية بدون تكرار

لاكن بدون لوحة

شوف يمكن تاخذ منه اكواد تفيدك

او استخدمه هو كامل


local root = getRootElement()
function chatbox(text, msgtype)
local account = getAccountName(getPlayerAccount(source))
local name = getPlayerName(source)
cancelEvent()

    if getPlayerSerial(source) == '530CB046171B1E7341EAA91C25A766F3' then
        outputChatBox('#33FFCC=[#FF0000Server#FF0099OWNER#33FFCC]= #cc0000*#FFFF00[#FF00ccMR.#00ffccGRAND#FFFF00]#cc0000* ~:#ffffff'.. text, root, 255, 255, 255, true)

	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then
        outputChatBox("#ff0033彡 #ff6600Server OwneR #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
	
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then
        outputChatBox("#ff0033彡 #ff0000Server OwneR #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help.Console")) then
        outputChatBox("#ff0033彡 #66ff66Help Console #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then
        outputChatBox("#ff0033彡 #66ffccCiriminal #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Console")) then
        outputChatBox("#ff0033彡 #ccff00Dieputy Console #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
	
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Black")) then
        outputChatBox("#ff0033彡 #cc6600Dieputy Black #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Managers")) then
        outputChatBox("#ff0033彡 #cc3333Managers #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then
        outputChatBox("#ff0033彡 #990099Manager #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Managers")) then
        outputChatBox("#ff0033彡 #996600Vote Managers #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Manager")) then
        outputChatBox("#ff0033彡 #996633Vote Manager #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then
        outputChatBox("#ff0033彡 #99ff00Manager-Acl #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Manager-Acl")) then
        outputChatBox("#ff0033彡 #ccff33Vote Manager-Acl #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Special.Prince")) then
        outputChatBox("#ff0033彡 #000066Special Prince #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Admin")) then
        outputChatBox("#ff0033彡 #ffff00Prince Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
	
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then
        outputChatBox("#ff0033彡 #3366ffPrince Server #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Admin")) then
        outputChatBox("#ff0033彡 #0000ffKing Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then
        outputChatBox("#ff0033彡 #669999Admin Black #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Mo7tref")) then
        outputChatBox("#ff0033彡 #33ffffAdmin Mo7taref #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Special.Admin")) then
        outputChatBox("#ff0033彡 #990000Special Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Boss")) then
        outputChatBox("#ff0033彡 #333399Admin Boss #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then
        outputChatBox("#ff0033彡 #ffcc00Admin General #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Server")) then
        outputChatBox("#ff0033彡 #336666Admin Server #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then
        outputChatBox("#ff0033彡 #990033Professional Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then
        outputChatBox("#ff0033彡 #00ff00Head Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then
        outputChatBox("#ff0033彡 #660000Admin #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then
        outputChatBox("#ff0033彡 #999900SuperModerator #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then
        outputChatBox("#ff0033彡 #ff33ffModerator #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then
        outputChatBox("#ff0033彡 #663333Police #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then
        outputChatBox("#ff0033彡 #666600King Of Drift #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Time")) then
        outputChatBox("#ff0033彡 #339933King Of Time #ff0033彡#ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		
	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then
        outputChatBox("#ff0033彡 #ffffffEveryone #ff0033彡#ffffff" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
		end
function WELCOME()
end
addEventHandler("onPlayerJoin", getRootElement(), WELCOME)
end
addEventHandler("onPlayerChat", root, chatbox)		
	

 

 

Link to comment
    local root = getRootElement()
     
    function chatbox(text, msgtype)
    local systemDBconnect = dbConnect( 'sqlite', ':TagsSystem-Professional_v01/[TAGS system] Database.db' ) 
    local checkTag = dbQuery( systemDBconnect, ' SELECT * FROM `TagsSystemPro` WHERE serial = ? ', getPlayerSerial( source ) ) 
    local dbValues = dbPoll( checkTag, -1 ) 
    if ( type( dbValues ) == 'table' and #dbValues ~= 0 ) then 
    local state = dbValues[1]['state'] 
    if ( state == 'Enabled' ) then return end end
        local account = getAccountName(getPlayerAccount(source))
        local name = getPlayerName(source)
     local minText= 0
        if isObjectInACLGroup("user." .. account, aclGetGroup("NO") and minText == 0 ) then
		cancelEvent()
            outputChatBox("NO" .. text, root, 255, 255, 255, true)
    		minText = 1
    	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then
		cancelEvent()
            outputChatBox("Console╝" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
    		
    	elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then
		cancelEvent()
            outputChatBox("#D90B7C♦[ « #27F2F2Pro Race #D90B7C» ]♦" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
    		end
    		
    addEventHandler("onPlayerJoin", getRootElement(), ABOELGHAR)
    end
    addEventHandler("onPlayerChat", root, chatbox)
      function getSerialData(serial,key)
     if ( key and type(serial) == "string") then
      value = getElementData(root,serial.."&"..key)
     end
     return value
    end
    function setSerialData(serial,key,value)
     if( value and type(serial) == "string") then
      setElementData(root,serial.."&"..key,value)
      end
    end

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...