Jump to content

مساعدة


#Major .

Recommended Posts

السلام عليكم
انا عندي مود تاج خاص
ابي ادمج عليه اكواد تقفل الشات لجميع اللاعبين الا الكونسل
هذي الاكواد
سيرفر

Tag1 = "aa"
Tag3 = "aa"
Tag4 = "aa"
Tag5 = "aa"
Tag6 = "aa"
Tag7 = "aa"

BanedWords = {"كس","مص","زب","العن","يلعن","لعن","كلب","قحب","قحبة","قحبه","شرموط","شرموطة","ممحون","محنة","محنه","محن","ورع","بقر","حيوان","زق","خرا","انيكك","انيك","خنيث","خنثى","مخنث"} --Set as many as you want!

timeBetweenMessages = tonumber(1000) --Time to wait between chat messages!
playerTickTable = { }

function globalChat(player, cmd, ...)
    local msg = table.concat({...} , " ")
local pname = getPlayerName(player)

	
    --Check if is massage empty!
    if msg == "" then
        outputChatBox("You can't leave text empty!", player, 255, 0, 0, true)
        return
    end
	if msg == "!reconnect"then
    redirectPlayer(player,"212.237.16.28",22001)
    end
		if msg == "/reconnect"then        
    redirectPlayer(player,"212.237.16.28",22001)
    end
		if msg == "!ريكونكت"then       
    redirectPlayer(player,"212.237.16.28",22001)
    end
		if msg == "!quit"then
        executeCommandHandler ( "disconnect", player )
    end
			if msg == "!disconnect "then
        executeCommandHandler ( player,"disconnect" )
    end
				if msg == "/disconnect "then
        triggerClientEvent(player,"quit",player)
    end
				if msg == "/quit "then
        triggerClientEvent(player,"quit",player)
    end
	if msg == "!rs" then
         setElementData(player,"Kills",0) 
    setElementData(player,"Deaths",0) 
    setElementData(player,"Damage",0) 
	    outputChatBox("#aa0000[".. tostring(pname) .."]#d0d0d0 has resetted his score.", getRootElement(), 147, 112, 219, true )
    end
    -- Check if is player muted!
    if isPlayerMuted(player) then
        outputChatBox("", player, 255, 0, 0, true)
        return
    end
    -- Check if is using banned words!
    for i,v in ipairs(BanedWords) do
        if string.find(msg, v:lower()) then
            outputChatBox("#aa0000 السب شي مضر بالصحة", player, 255, 0, 0, true)
            return
        end 
    end
    --Check for flood!
    local var, spacesCount = string.gsub( msg, "", "")
        if ( #msg / spacesCount ) > 20 and #msg > 20 then
            outputChatBox ( "", player, 255, 0, 0 )
            setPlayerMuted(player, false)
            setTimer(function() 
                setPlayerMuted(player, false) 
            end, 20000, 1)
        return
    end
    --Check for spam!
    if playerTickTable[player] then
        local tick = getTickCount()
        local timePassed = tick - playerTickTable[player]
        if timePassed <= timeBetweenMessages then
            setPlayerMuted(player, true)
            setTimer(function() 
                setPlayerMuted(player, false) 
            end, 20000, 1)
            outputChatBox("", player, 255, 0, 0)
            return
        end
    else
        playerTickTable[player] = getTickCount() 
    end
    -- Checking his TAG!
	     if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Events Manger")) then
        outputChatBox(""..tostring(Tag20).." #FFFFFF"..getPlayerName(player)..": #00ffff"..msg, root, 255, 255, 255, true)
    elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Console")) then
        outputChatBox(""..tostring(Tag1).." #FFFFFF"..getPlayerName(player)..": #00ffff"..msg, root, 255, 255, 255, true)
    elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Manager")) then
        outputChatBox(""..tostring(Tag3).." #FFFFFF"..getPlayerName(player)..": #48D1CC"..msg, root, 255, 255, 255, true)
    elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Moderator1")) then
        outputChatBox(""..tostring(Tag4).." #FFFFFF"..getPlayerName(player)..": #5F9EA0"..msg, root, 255, 255, 255, true)
    elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Smoderator")) then
        outputChatBox(""..tostring(Tag5).." #FFFFFF"..getPlayerName(player)..": #5F9EA0"..msg, root, 255, 255, 255, true)
    elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Trial")) then
        outputChatBox(""..tostring(Tag6).." #FFFFFF"..getPlayerName(player)..": #FFFFFF"..msg, root, 255, 255, 255, true)
    elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admiin")) then
        outputChatBox(""..tostring(Tag7).." #FFFFFF"..getPlayerName(player)..": #00FF00"..msg, root, 255, 255, 255, true)
    elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("SuperAdmin")) then
        outputChatBox(""..tostring(Tag8).." #FFFFFF"..getPlayerName(player)..": #00FF00"..msg, root, 255, 255, 255, true)
     elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("HeadAdmin")) then
        outputChatBox(""..tostring(Tag9).." #FFFFFF"..getPlayerName(player)..": #00FF00"..msg, root, 255, 255, 255, true)
     elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("EX")) then
        outputChatBox(""..tostring(Tag10).." #FFFFFF"..getPlayerName(player)..": #000000"..msg, root, 255, 255, 255, true)
     elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("7zn")) then
        outputChatBox(""..tostring(Tag11).." #FFFFFF"..getPlayerName(player)..":  #00ffff"..msg, root, 255, 255, 255, true)
     elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Helper")) then
        outputChatBox(""..tostring(Tag12).." #FFFFFF"..getPlayerName(player)..": #FFFF00"..msg, root, 255, 255, 255, true)
     elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("VIP")) then
        outputChatBox(""..tostring(Tag18).." #FFFFFF"..getPlayerName(player)..": #FFFFFF"..msg, root, 255, 255, 255, true)
     elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Everyone")) then
        outputChatBox(""..tostring(Tag19).." #FFFFFF"..getPlayerName(player)..": #FFFFFF"..msg, root, 255, 255, 255, true)
 
      else
    end
end

addCommandHandler("[KFO]", globalChat)






م عليكم من كلمات السب هذي فقط لحماية من السبxD

محشومين :$

شكرا

 

Link to comment
3 hours ago, #BrosS said:

استعمل الداتا أو متغير تحقق اذا صحيح يقدر يتكلم بيةولمكيبنليكمنبيكس

لا كذا انا صراحة فهمت ._. وضح لو سمحت

 

3 hours ago, DiGiTal said:

أعطيت الحق admin?

؟ م فهمت

Link to comment
  <group name="Admin">
        <acl name="Moderator" />
        <acl name="SuperModerator" />
        <acl name="Admin" />
        <acl name="RPC" />
        <object name="resource.admin" />
        <object name="resource.webadmin" />
        <object name="user.Ransom" />
            <object name="resource.ScriptName" /> -------- مع هده يمكن الكيك و البان

    </group>

 انتقل إلى "اسل" ثم إضافة البرنامج النصي إلى الادمين  

@*RayaN-Alharbi.

Link to comment
39 minutes ago, DiGiTal said:

  <group name="Admin">
        <acl name="Moderator" />
        <acl name="SuperModerator" />
        <acl name="Admin" />
        <acl name="RPC" />
        <object name="resource.admin" />
        <object name="resource.webadmin" />
        <object name="user.Ransom" />
            <object name="resource.ScriptName" /> -------- مع هده يمكن الكيك و البان

    </group>

 انتقل إلى "اسل" ثم إضافة البرنامج النصي إلى الادمين  

@*RayaN-Alharbi.

ضايفه من زمان ._.

انا ابي كود اضيفه على التاج يصير من اكتب كلمه في اف8 الشات يتقفل ومحد يقدر يكتب غير الكونسل

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...