TD[M]ER Posted December 15, 2012 Share Posted December 15, 2012 السلام عليكم ورحمةة الله وبركاتهه ابي كود لمن يجي مثلا واحد يدخل السيرفر ويسب يتحول كلامه من السبهه لـ ***** او ### او اي شيء وشكرا :] Link to comment
TAPL Posted December 15, 2012 Share Posted December 15, 2012 Event: "onPlayerChat" string.find cancelEvent outputChatBox Link to comment
TD[M]ER Posted December 15, 2012 Author Share Posted December 15, 2012 Event: "onPlayerChat" string.find cancelEvent outputChatBox لبى قلبكـ تسلم واللهه ماقصرت Link to comment
TD[M]ER Posted December 15, 2012 Author Share Posted December 15, 2012 كذا صح ؟ -- server side chat = { "....", } function chatF ( msg ) for k,v in ipairs (chat) do if string.find(msg,v) then cancelEvent(true) local pn = getPlayerName (source) outputChatBox("" .. pn .. " : ***********",0,255,0,true) end end addEventHandler( "onPlayerChat", getRootElement(), chatF ) Link to comment
hassan.k.s.a Posted December 15, 2012 Share Posted December 15, 2012 كذا صح ؟ -- server side chat = { "....", } function chatF ( msg ) for k,v in ipairs (chat) do if string.find(msg,v) then cancelEvent(true) local pn = getPlayerName (source) outputChatBox("" .. pn .. " : ***********",0,255,0,true) end end addEventHandler( "onPlayerChat", getRootElement(), chatF ) جربه ! Link to comment
TD[M]ER Posted December 15, 2012 Author Share Posted December 15, 2012 ظبط chat = { "...", } function chatF ( msg ) for k,v in ipairs (chat) do if string.find(msg,v) then cancelEvent(true) local pn = getPlayerName (source) outputChatBox(" " .. pn .. " : ***********",0,255,0,true) end end end addEventHandler( "onPlayerChat", getRootElement(), chatF ) المشكلةة ان الـ outputChatBox مايدعم لون الاسم >< Link to comment
abu5lf Posted December 15, 2012 Share Posted December 15, 2012 انت في حاجة المود ذاه https://community.multitheftauto.com/ind ... ls&id=3167 يحذف الكلمة حقت السب فقط مهب كل الرسالة Link to comment
Blaawee Posted December 15, 2012 Share Posted December 15, 2012 لازم تكمل جميع الارقمنت outputChatBox ( text , element visibleTo=getRootElement(), int r=231, int g=217, int b=176, bool colorCoded=false ) Link to comment
hassan.k.s.a Posted December 15, 2012 Share Posted December 15, 2012 outputChatBox (" " .. pn .. " : ***********", getRootElement(),255,0,0,true) Link to comment
TD[M]ER Posted December 15, 2012 Author Share Posted December 15, 2012 يعطيكم اللف اللف عافيهه الحين ظبط 100% الله يجزاكم الخير الله لايهينكم يعطيكم الف عافيهه Link to comment
TAPL Posted December 15, 2012 Share Posted December 15, 2012 المشكلةة ان الـ outputChatBox مايدعم لون الاسم >< getPlayerNametagColor Link to comment
hassan.k.s.a Posted December 15, 2012 Share Posted December 15, 2012 يعطيكم اللف اللف عافيهه الحين ظبط 100% الله يجزاكم الخير الله لايهينكم يعطيكم الف عافيهه ~ الله يعآفيك حيآك كل يوم ^ 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