Jump to content

طلب بسيط


Recommended Posts

اهلا بكل الاعضاء و رمضان كريم علي كل المسلمين

انا عندي مشكله بسيطه جدا

هو فيه كود يقدر يخلي جملة واحد كتبها متتكتبش؟

يعني انا عملت سكريبت و المفروض ان لو حد قال الكلمه دي يتعمله

Mute

هو انا مش محتاج احط السكربت هو لو حططلي الويكي يبقه كفايا

يعني الملخص

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

Mute

لكن انا بعرف اعمل الموت و كل ده سهل

المهم ازاي اخلي الجمله دي متتقلش

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

رمضان كريم

السلام عليكم و رحمة الله و بكراتة

Link to comment
words = {"fuck","noob","prick","idiot","ass","cum","gay","dick"} 
_root = getRootElement() 
_warnings = get("*Warnings") 
  
addEventHandler("onPlayerChat",_root, 
function (_msg,_type) 
        for _,_x in pairs(words) do 
            if string.find(_msg,string.lower(_x)) then 
            local _msg = string.lower(_msg) 
            cancelEvent() 
            if _type == 0 then 
            local _number = string.len(_x) 
            local g_Name = getPlayerName(source) 
            local _r,_g,_b = getPlayerNametagColor(source) 
            _msg = string.rep("*",tonumber(_number)) 
            outputChatBox( g_Name .. ":#FFFFFF " .. _msg , _root, _r, _g, _b, true) 
            else 
                    return 
                end 
            end 
        end 
    end 
) 

Link to comment
words = {":O","noob","prick","idiot","ass","cum","gay","dick"} 
_root = getRootElement() 
_warnings = get("*Warnings") 
  
addEventHandler("onPlayerChat",_root, 
function (_msg,_type) 
        for _,_x in pairs(words) do 
            if string.find(_msg,string.lower(_x)) then 
            local _msg = string.lower(_msg) 
            cancelEvent() 
            if _type == 0 then 
            local _number = string.len(_x) 
            local g_Name = getPlayerName(source) 
            local _r,_g,_b = getPlayerNametagColor(source) 
            _msg = string.rep("*",tonumber(_number)) 
            outputChatBox( g_Name .. ":#FFFFFF " .. _msg , _root, _r, _g, _b, true) 
            else 
                    return 
                end--if نهاية الاوله 
            end--if نهاية  الثاني 
        end---نهاية الوضيفة 
    end-- ذي حق شنو؟ علشان تكون عندي معلومه 
) 

Link to comment
words = {":O","noob","prick","idiot","ass","cum","gay","dick"} 
_root = getRootElement() 
_warnings = get("*Warnings") 
  
addEventHandler("onPlayerChat",_root, 
function (_msg,_type) 
        for _,_x in pairs(words) do 
            if string.find(_msg,string.lower(_x)) then 
            local _msg = string.lower(_msg) 
            cancelEvent() 
            if _type == 0 then 
            local _number = string.len(_x) 
            local g_Name = getPlayerName(source) 
            local _r,_g,_b = getPlayerNametagColor(source) 
            _msg = string.rep("*",tonumber(_number)) 
            outputChatBox( g_Name .. ":#FFFFFF " .. _msg , _root, _r, _g, _b, true) 
            else 
                    return 
                end--if نهاية الاوله 
            end--if نهاية  الثاني 
        end---نهاية الوضيفة 
    end-- ذي حق شنو؟ علشان تكون عندي معلومه 
) 

لو ان الأكواد مرتبه رآحح تفهم

end > if

end > if

end > for

end > function

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