Jump to content

x [ طلب ] x فنكشنات


Recommended Posts

badWordsTable = { 
{ 'ورع' }, 
{ 'Word' }  
} 
  
addEventHandler( 'onPlayerChat', root, 
function( message ) 
    for _, Word in pairs ( badWordsTable ) do 
        if ( string.find( message, Word[1] ) ) then 
            cancelEvent(  ) 
                outputChatBox( '#FF0000*[ نظام المخالفات ]x   @ ' .. getPlayerName( source ) .. ' #FF0000, لقد اهان احد من اعضاء السيرفر ', root, 255, 0, 0, true ) 
                outputChatBox( '#FF0000*[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ', source, 255, 0, 0, true ) 
            else return 
        end 
    end 
end ) 
     

تمام بس الكلمة تظهر عاوزها ما تظهر

الكلام يظهر السبب هو انك مشغل مود الفري روم او مسوي مود تاجات

Edited by Guest
Link to comment
  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

badWordsTable = { 
{ 'ورع' }, 
{ 'Word' }  
} 
  
addEventHandler( 'onPlayerChat', root, 
function( message ) 
    for _, Word in pairs ( badWordsTable ) do 
        if ( string.find( message, Word[1] ) ) then 
            cancelEvent(  ) 
                outputChatBox( '#FF0000*[ نظام المخالفات ]x   @ ' .. getPlayerName( source ) .. ' #FF0000, لقد اهان احد من اعضاء السيرفر ', root, 255, 0, 0, true ) 
                outputChatBox( '#FF0000*[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ', source, 255, 0, 0, true ) 
            else return 
        end 
    end 
end ) 
     

تمام بس الكلمة تظهر عاوزها ما تظهر

لو عندك كود ثاني يسوي اظهار جيب الكلمة بنفس الجدول وبنفس الطريقة وسوي لها تغيير بـ

string.gsub 

او استعمل الكود اللي فوق للتحقق والألغاء ^

Link to comment

طيب كده ما شتغل

عذا علي الكلام :)

  
  
badWordsTable = {"كس امك", 
         "امك ",  
         "يابن",  
         "يا ابن",  
         "يابن",  
         "كس اختك",  
         "حمار",  
         "كلب",  
         "العن", 
         "المتناك", 
         "زب ", 
         "طيز",   
         "fack", 
         "ass",   
         "mother", 
         "انيك", 
         "خنيث", 
         "_!_",  
         "ورع",        
         "زق "} 
  
  
  
Words = {"حياكم الله في سيرفر", 
         "اكتب بالبحث",  
         "بالبحث",  
         "توزيع فلوس في سيرفر",  
         "توزيع ادمنيات في سيرفر",  
         "في البحث",  
         "بسيرفر",  
         "go to my",  
         "my server", 
         "سيرفر", 
          "طاره", 
          "6ArH", 
          "server",        
         "في سيرفر"} 
          
          
          
          
          
  
  
addEventHandler( 'onPlayerChat', root, 
function( message ) 
    for _, Word in pairs ( badWordsTable ) do 
        if ( string.find( message, Word[1] ) ) then 
            cancelEvent(  ) 
                outputChatBox( '#FF0000x[ نظام المخالفات ]x   @ ' .. getPlayerName( source ) .. ' #FF0000, لقد اهان احد من اعضاء السيرفر ', root, 255, 0, 0, true ) 
                outputChatBox( '#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ', source, 255, 0, 0, true ) 
                
            else return 
        end 
    end 
end ) 
  
  
  
     
    addEventHandler( 'onPlayerChat', root, 
function( message ) 
    for _, Word in pairs ( Words ) do 
        if ( string.find( message, Word[1] ) ) then 
            cancelEvent(  ) 
                outputChatBox("#FF0000x[ نظام المخالفات ]x   @ "..getPlayerName(source).." #FF0000, لقد حاول نشر سيرفر اخر ",root,255,0,0,true) 
                outputChatBox("#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب محاولة نشرك لسيرفر اخر غير سيرفر الملووك ",source,255,0,0,true) 
            else return 
        end 
    end 
end ) 
     
     

Link to comment

Server :

BLOCK = { 
    [ "ورع" ] = true, 
} 
  
addEventHandler ( "onPlayerChat", root, 
    function ( message, messageType ) 
        if ( messageType == 0 and string.find ( message, BLOCK [ message ] ) ) then 
            cancelEvent ( ) 
            outputChatBox ( "#FF0000*[ نظام المخالفات ]x   @ ".. getPlayerName ( source ) .." #FF0000, لقد اهان احد من اعضاء السيرفر ", root, 255, 0, 0, true ) 
            outputChatBox ( "#FF0000*[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ", source, 255, 0, 0, true ) 
        end 
    end 
) 

@ MR.GRAND : كودك غلط بسبب انك خليته يبحث باول كلمة في الجدول فقط

Link to comment
Server :
BLOCK = { 
    [ "ورع" ] = true, 
} 
  
addEventHandler ( "onPlayerChat", root, 
    function ( message, messageType ) 
        if ( messageType == 0 and string.find ( message, BLOCK [ message ] ) ) then 
            cancelEvent ( ) 
            outputChatBox ( "#FF0000*[ نظام المخالفات ]x   @ ".. getPlayerName ( source ) .." #FF0000, لقد اهان احد من اعضاء السيرفر ", root, 255, 0, 0, true ) 
            outputChatBox ( "#FF0000*[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ", source, 255, 0, 0, true ) 
        end 
    end 
) 

@ MR.GRAND : كودك غلط بسبب انك خليته يبحث باول كلمة في الجدول فقط

يعني اضيف الكلام للكود الي عطيتهولي

و ازود كمان كود للجدول التاني ؟

Link to comment

ما شتغل

  
BLOCK = { 
  [ "ورع" ] = true, 
    [ "ورعان" ] = true, 
        [ "كس امك" ] = true, 
            [ "امك" ] = true, 
                [ "يابن" ] = true, 
                    [ "يا ابن" ] = true, 
                     [ "كس اختك" ] = true, 
                            [ "حمار" ] = true, 
                                [ "كلب" ] = true, 
                                    [ "العن" ] = true, 
                                        [ "زب" ] = true, 
                                            [ "طيز" ] = true, 
                                                [ "fack" ] = true, 
                                                    [ "ass" ] = true, 
                                                            [ "mother" ] = true, 
                                                                    [ "انيك" ] = true, 
                                                                            [ "خنيث" ] = true, 
                                                                                    [ "_!_" ] = true, 
                                                                                            [ "زق" ] = true, 
                                                                                                    [ "كل خرا" ] = true, 
                                                                                                            [ "خرا" ] = true, 
                                                                                                                    [ "كل زق" ] = true, 
    [ "ورعين" ] = true 
} 
  
addEventHandler ( "onPlayerChat", root, 
    function ( message, messageType ) 
        if ( messageType == 0 and string.find ( message, BLOCK [ message ] ) ) then 
            cancelEvent ( ) 
            outputChatBox ( "#FF0000x[ نظام المخالفات ]x   @ ".. getPlayerName ( source ) .." #FF0000, لقد اهان احد من اعضاء السيرفر ", root, 255, 0, 0, true ) 
            outputChatBox ( "#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ", source, 255, 0, 0, true ) 
        end 
    end 
) 
  
  
  
  
  
  
  
        Words = { 
[ "حياكم الله في سيرفر" ] = true, 
    [ "اكتب بالبحث" ] = true, 
        [ "بالبحث" ] = true, 
            [ "بسيرفر" ] = true, 
                [ "go to my" ] = true, 
                    [ "my server" ] = true, 
                        [ "سيرفر" ] = true, 
                            [ "طاره" ] = true, 
                                [ "6ArH" ] = true, 
                                    [ "server" ] = true, 
                                        [ "زب" ] = true, 
                                            [ "طيز" ] = true, 
                                                [ "fack" ] = true, 
                                                    [ "ass" ] = true, 
                                                            [ "mother" ] = true, 
                                                                    [ "في سيرفر" ] = true, 
                                                                            [ "طارة" ] = true, 
                                                                                    [ "الوزاره" ] = true, 
                                                                                            [ "الوزارة" ] = true, 
                                                                                                    [ "وناسة تايم" ] = true, 
                                                                                                            [ "وناسة" ] = true, 
                                                                                                                    [ "جراند العرب" ] = true, 
    [ "جراند" ] = true 
} 
  
addEventHandler ( "onPlayerChat", root, 
    function ( message, messageType ) 
        if ( messageType == 0 and string.find ( message, Words [ message ] ) ) then 
            cancelEvent ( ) 
                outputChatBox("#FF0000x[ نظام المخالفات ]x   @ "..getPlayerName(source).." #FF0000, لقد حاول نشر سيرفر اخر ",root,255,0,0,true) 
                outputChatBox("#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب محاولة نشرك لسيرفر اخر غير سيرفر الملووك ",source,255,0,0,true) 
        end 
    end 
) 
  
  

Link to comment
BLOCK = { 
    [ "ورع" ] = true, 
    [ "ورعان" ] = true, 
    [ "كس امك" ] = true, 
    [ "امك" ] = true, 
    [ "يابن" ] = true, 
    [ "يا ابن" ] = true, 
    [ "كس اختك" ] = true, 
    [ "حمار" ] = true, 
    [ "كلب" ] = true, 
    [ "العن" ] = true, 
    [ "زب" ] = true, 
    [ "طيز" ] = true, 
    [ "fack" ] = true, 
    [ "ass" ] = true, 
    [ "mother" ] = true, 
    [ "انيك" ] = true, 
    [ "خنيث" ] = true, 
    [ "_!_" ] = true, 
    [ "زق" ] = true, 
    [ "كل خرا" ] = true, 
    [ "خرا" ] = true, 
    [ "كل زق" ] = true, 
    [ "ورعين" ] = true 
} 
  
Words = { 
    [ "حياكم الله في سيرفر" ] = true, 
    [ "اكتب بالبحث" ] = true, 
    [ "بالبحث" ] = true, 
    [ "بسيرفر" ] = true, 
    [ "go to my" ] = true, 
    [ "my server" ] = true, 
    [ "سيرفر" ] = true, 
    [ "طاره" ] = true, 
    [ "6ArH" ] = true, 
    [ "server" ] = true, 
    [ "زب" ] = true, 
    [ "طيز" ] = true, 
    [ "fack" ] = true, 
    [ "ass" ] = true, 
    [ "mother" ] = true, 
    [ "في سيرفر" ] = true, 
    [ "طارة" ] = true, 
    [ "الوزاره" ] = true, 
    [ "الوزارة" ] = true, 
    [ "وناسة تايم" ] = true, 
    [ "وناسة" ] = true, 
    [ "جراند العرب" ] = true, 
    [ "جراند" ] = true 
} 
  
addEventHandler ( "onPlayerChat", root, 
    function ( message, messageType ) 
        for i, v  in ipairs ( BLOCK ) do 
            if ( messageType == 0 and string.find ( message, v ) ) then 
                cancelEvent ( ) 
            end 
        end 
        outputChatBox ( "#FF0000x[ نظام المخالفات ]x   @ ".. getPlayerName ( source ) .." #FF0000, لقد اهان احد من اعضاء السيرفر ", root, 255, 0, 0, true ) 
        outputChatBox ( "#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ", source, 255, 0, 0, true ) 
    end 
) 
addEventHandler ( "onPlayerChat", root, 
    function ( message, messageType ) 
        for i, v  in ipairs ( Words ) do 
            if ( messageType == 0 and string.find ( message, v ) ) then 
                cancelEvent ( ) 
            end 
        end 
        outputChatBox("#FF0000x[ نظام المخالفات ]x   @ "..getPlayerName(source).." #FF0000, لقد حاول نشر سيرفر اخر ",root,255,0,0,true) 
        outputChatBox("#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب محاولة نشرك لسيرفر اخر غير سيرفر الملووك ",source,255,0,0,true) 
    end 
) 

Link to comment

لما اكتب اي كلم حتي لو كتبت سعيد يجي كل دا بالشات

outputChatBox ( "#FF0000x[ نظام المخالفات ]x   @ ".. getPlayerName ( source ) .." #FF0000, لقد اهان احد من اعضاء السيرفر ", root, 255, 0, 0, true ) 
        outputChatBox ( "#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ", source, 255, 0, 0, true ) outputChatBox("#FF0000x[ نظام المخالفات ]x   @ "..getPlayerName(source).." #FF0000, لقد حاول نشر سيرفر اخر ",root,255,0,0,true) 
        outputChatBox("#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب محاولة نشرك لسيرفر اخر غير سيرفر الملووك ",source,255,0,0,true) 

Link to comment
  • Moderators

  
BLOCK = { 
    "ورع", 
    "ورعين" 
} 
  
Words = { 
    'وناسة', 
    'وناسة تايم' 
} 
  
    addEventHandler ( "onPlayerChat", root, 
        function ( message, messageType ) 
            if ( messageType == 0 ) then 
                for i, v in ipairs ( BLOCK ) do 
                    if ( string.find(message,v) ) then 
                        cancelEvent ( ) 
                        outputChatBox ( "#FF0000x[ نظام المخالفات ]x   @ ".. getPlayerName ( source ) .." #FF0000, لقد اهان احد من اعضاء السيرفر ", root, 255, 0, 0, true ) 
                        outputChatBox ( "#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ", source, 255, 0, 0, true ) 
                        return 
                    end 
                end 
                for i, v in ipairs ( Words ) do 
                    if ( string.find(message,v) ) then 
                        cancelEvent ( ) 
                        outputChatBox("#FF0000x[ نظام المخالفات ]x   @ "..getPlayerName(source).." #FF0000, لقد حاول نشر سيرفر اخر ",root,255,0,0,true) 
                        outputChatBox("#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب محاولة نشرك لسيرفر اخر غير سيرفر الملووك ",source,255,0,0,true) 
                        break 
                    end 
                end 
            end 
        end 
    ) 
Link to comment
  
BLOCK = { 
    "ورع", 
    "ورعين" 
} 
  
Words = { 
    'وناسة', 
    'وناسة تايم' 
} 
  
    addEventHandler ( "onPlayerChat", root, 
        function ( message, messageType ) 
            if ( messageType == 0 ) then 
                for i, v in ipairs ( BLOCK ) do 
                    if ( string.find(message,v) ) then 
                        cancelEvent ( ) 
                        outputChatBox ( "#FF0000x[ نظام المخالفات ]x   @ ".. getPlayerName ( source ) .." #FF0000, لقد اهان احد من اعضاء السيرفر ", root, 255, 0, 0, true ) 
                        outputChatBox ( "#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ", source, 255, 0, 0, true ) 
                        return 
                    end 
                end 
                for i, v in ipairs ( Words ) do 
                    if ( string.find(message,v) ) then 
                        cancelEvent ( ) 
                        outputChatBox("#FF0000x[ نظام المخالفات ]x   @ "..getPlayerName(source).." #FF0000, لقد حاول نشر سيرفر اخر ",root,255,0,0,true) 
                        outputChatBox("#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب محاولة نشرك لسيرفر اخر غير سيرفر الملووك ",source,255,0,0,true) 
                        break 
                    end 
                end 
            end 
        end 
    ) 

تمام اخ نصور شكرا

بس لما احته ما تاج الكلمة تظهر

Link to comment
addEventHandler("onPlayerChat",root, 
    function( text, type) 
    if getElementData(source,"tag")  then return cancelEvent() end 
    if type == 1 or type == 2 then return end 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
    cancelEvent() 
    local r, g, b = getPlayerNametagColor(source) 
    return outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
    else 
    end 
    if getElementData ( resourceRoot, "chat" ) == true then cancelEvent() return outputChatBox ("[C.Console]: Chat has been locked by Console ",source,255,0,0,true) end 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then 
    cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#0099DC* [ Lv.1 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#2554C7* [ Lv.2 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#00cc11* [ Lv.3 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#007700* [ Lv.4 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#cc0000* [ Lv.5 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 6")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#FF0000* [ Lv.6 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
         elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#DCD800* [ VIP ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
                
                
         elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SaedAmer")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#cd0000* [ VIP ]#ffff00 سعيد : #ffFFff" .. text, getRootElement(), r, g, b, true ) 
                
                
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("mosp")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#02AB2F* [ AL-MLOok Event's] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
                 
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("kil")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#DCD800* [ Developer ]x#CCCCCC кιℓℓєя : #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#347235* [ T-Developer ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin - Ex")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#777777* [ Admin - EX ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#007F7F* [ Soldier ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#5494A7* [ AL-MLOoK ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
                
          
        end 
        end 
         ) 

Link to comment
BLOCK = { 
    "ورع", 
    "ورعين" 
} 
  
Words = { 
    'وناسة', 
    'وناسة تايم' 
} 
  
addEventHandler("onPlayerChat",root, 
    function( text, type) 
        if ( type == 0 ) then 
            for i, v in ipairs ( BLOCK ) do 
                if ( string.find(text,v) ) then 
                    cancelEvent ( ) 
                    outputChatBox ( "#FF0000x[ نظام المخالفات ]x   @ ".. getPlayerName ( source ) .." #FF0000, لقد اهان احد من اعضاء السيرفر ", root, 255, 0, 0, true ) 
                    outputChatBox ( "#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ", source, 255, 0, 0, true ) 
                    return 
                end 
            end 
            for i, v in ipairs ( Words ) do 
                if ( string.find(text,v) ) then 
                    cancelEvent ( ) 
                    outputChatBox("#FF0000x[ نظام المخالفات ]x   @ "..getPlayerName(source).." #FF0000, لقد حاول نشر سيرفر اخر ",root,255,0,0,true) 
                    outputChatBox("#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب محاولة نشرك لسيرفر اخر غير سيرفر الملووك ",source,255,0,0,true) 
                    break 
                end 
            end 
        end 
    end) 
    if getElementData(source,"tag")  then return cancelEvent() end 
    if type == 1 or type == 2 then return end 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
    cancelEvent() 
    local r, g, b = getPlayerNametagColor(source) 
    return outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
    else 
    end 
    if getElementData ( resourceRoot, "chat" ) == true then cancelEvent() return outputChatBox ("[C.Console]: Chat has been locked by Console ",source,255,0,0,true) end 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then 
    cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#0099DC* [ Lv.1 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#2554C7* [ Lv.2 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#00cc11* [ Lv.3 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#007700* [ Lv.4 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#cc0000* [ Lv.5 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 6")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#FF0000* [ Lv.6 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
         elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#DCD800* [ VIP ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
                
                
         elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SaedAmer")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#cd0000* [ VIP ]#ffff00 سعيد : #ffFFff" .. text, getRootElement(), r, g, b, true ) 
                
                
        elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("mosp")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#02AB2F* [ AL-MLOok Event's] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
                
                elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("kil")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#DCD800* [ Developer ]x#CCCCCC кιℓℓєя : #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#347235* [ T-Developer ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin - Ex")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#777777* [ Admin - EX ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#007F7F* [ Soldier ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
          
          
           elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
         cancelEvent() 
                local r, g, b = getPlayerNametagColor(source) 
                outputChatBox("#5494A7* [ AL-MLOoK ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
                
          
        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...