CertainLimit Posted July 26, 2012 Share Posted July 26, 2012 اهلا بكل الاعضاء و رمضان كريم علي كل المسلمين انا عندي مشكله بسيطه جدا هو فيه كود يقدر يخلي جملة واحد كتبها متتكتبش؟ يعني انا عملت سكريبت و المفروض ان لو حد قال الكلمه دي يتعمله Mute هو انا مش محتاج احط السكربت هو لو حططلي الويكي يبقه كفايا يعني الملخص لو حد كتب سب او شتيمه يتعمله Mute لكن انا بعرف اعمل الموت و كل ده سهل المهم ازاي اخلي الجمله دي متتقلش لو حد جبهالي يبقه شكرا اوي و لو مفهمش ممكن يقلي و انا اقله تفسير خالص عن اللي انا عاوزه و شكرا رمضان كريم السلام عليكم و رحمة الله و بكراتة Link to comment
TAPL Posted July 26, 2012 Share Posted July 26, 2012 https://community.multitheftauto.com/ind ... ls&id=1484 + https://wiki.multitheftauto.com/wiki/SetPlayerMuted Link to comment
Tete omar Posted July 26, 2012 Share Posted July 26, 2012 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
CertainLimit Posted July 26, 2012 Author Share Posted July 26, 2012 شكرا اوي ليكم انتو الاتنين تم التجربه و نفع شكرا اوي Link to comment
GAME_OVER!! Posted July 26, 2012 Share Posted July 26, 2012 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
3NAD Posted July 26, 2012 Share Posted July 26, 2012 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
GAME_OVER!! Posted July 26, 2012 Share Posted July 26, 2012 اها حلو ماقصرت خيو شوف موضوعي الي انا طارحه فيه طلب لو تعرف تنفذه طرحه اذا ماعليك آمر Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now