AboFaisal Posted May 29, 2013 Share Posted May 29, 2013 (edited) السلام عليكم ورحمه الله وبركاته ابي أضافتين في كود السب يضهر أسمه في الشات + مايجي السب يجي أسمه وسلامتكم الكود Server : local Words = { "removed - Tete, Reason: insults" } addEventHandler("onPlayerChat",getRootElement(), function ( msg , type ) for _,v in ipairs ( Words ) do if ( string.find ( msg,v ) ) then cancelEvent ( true ) for i = 1,0 do outputChatBox(" ",getRootElement()) end outputChatBox(" لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير",getRootElement(),255,0,0) end end end ) Edited May 29, 2013 by Guest Link to comment
PaiN^ Posted May 29, 2013 Share Posted May 29, 2013 local Words = { "removed - Tete, Reason: insults" } addEventHandler("onPlayerChat",getRootElement(), function ( msg , type ) for _,v in ipairs ( Words ) do if ( string.find ( msg,v ) ) then cancelEvent ( true ) outputChatBox("حاول التلفظ بألفاظ بذيئة "..getPlayerName( source ).." اللاعب", root, 255, 0, 0 ) outputChatBox(" لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير",getRootElement(),255,0,0) end end end ) Link to comment
AboFaisal Posted May 29, 2013 Author Share Posted May 29, 2013 local Words = { "removed - Tete, Reason: insults" } addEventHandler("onPlayerChat",getRootElement(), function ( msg , type ) for _,v in ipairs ( Words ) do if ( string.find ( msg,v ) ) then cancelEvent ( true ) outputChatBox("حاول التلفظ بألفاظ بذيئة "..getPlayerName( source ).." اللاعب", root, 255, 0, 0 ) outputChatBox(" لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير",getRootElement(),255,0,0) end end end ) Link to comment
AboFaisal Posted May 29, 2013 Author Share Posted May 29, 2013 العفو ذذ ,, يالغالي مو كامل انا قلت السب مايجي بس الكلام اللي مكتوب في شات بوكس + ابي الأكواد تضهر مثال : #555555 local Words = { "removed - Tete, Reason: insults" } addEventHandler("onPlayerChat",getRootElement(), function ( msg , type ) for _,v in ipairs ( Words ) do if ( string.find ( msg,v ) ) then cancelEvent ( true ) outputChatBox("#717D7D* [#FF0000 "..getPlayerName( source ).."#717D7D] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير", root, 255, 0, 0 ) end end end ) وشكرآ .. Link to comment
PaiN^ Posted May 29, 2013 Share Posted May 29, 2013 local Words = { "removed - Tete, Reason: insults" }; addEventHandler( 'onPlayerChat', root, function( msg , type ) for _,v in ipairs ( Words ) do if string.find( msg,v ) then cancelEvent ( true ); outputChatBox( '#717D7D* [#FF0000 '..getPlayerName( source )..'#717D7D] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير', root, 255, 0, 0, true ); end end end ); Link to comment
AboFaisal Posted May 29, 2013 Author Share Posted May 29, 2013 local Words = { "removed - Tete, Reason: insults" }; addEventHandler( 'onPlayerChat', root, function( msg , type ) for _,v in ipairs ( Words ) do if string.find( msg,v ) then cancelEvent ( true ); outputChatBox( '#717D7D* [#FF0000 '..getPlayerName( source )..'#717D7D] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير', root, 255, 0, 0, true ); end end end ); انا ابي إذا الحين انا لو سبيت في الشات ياكلب مايجي بالشات اني كتبت ياكلب بس يجي اللي في المود نفسه ChatBox بس ^ Link to comment
3NAD Posted May 29, 2013 Share Posted May 29, 2013 addEventHandler ( "onPlayerChat", root, function ( msg, type ) for _, v in ipairs ( Words ) do if string.find ( msg, v ) then cancelEvent ( ); return outputChatBox ( '#717D7D* [#FF0000 '..getPlayerName( source )..'#717D7D] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير', root, 255, 0, 0, true ); end end end ); تأكد ان مافيه مود ثاني يسوي مخارج نص شات Link to comment
AboFaisal Posted May 29, 2013 Author Share Posted May 29, 2013 addEventHandler ( "onPlayerChat", root, function ( msg, type ) for _, v in ipairs ( Words ) do if string.find ( msg, v ) then cancelEvent ( ); return outputChatBox ( '#717D7D* [#FF0000 '..getPlayerName( source )..'#717D7D] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير', root, 255, 0, 0, true ); end end end ); تأكد ان مافيه مود ثاني يسوي مخارج نص شات نفس الشي يضهر السب ويضهر الشات بوكس معه Link to comment
PaiN^ Posted May 29, 2013 Share Posted May 29, 2013 عندك مود تاج صح ؟ لأن في مود يسوي مخرج نص ثاني التاج أو الفري روم أو أي مود Link to comment
AboFaisal Posted May 29, 2013 Author Share Posted May 29, 2013 عندك مود تاج صح ؟لأن في مود يسوي مخرج نص ثاني التاج أو الفري روم أو أي مود ايه عندي مود التاج + يعني أحط الكود عند تاج الأدمن Link to comment
Tete omar Posted May 29, 2013 Share Posted May 29, 2013 ليش ما تحط السبات بعد ما يساعدونك .. بعد إذنك .. هذا منتدى محترم Link to comment
AboFaisal Posted May 29, 2013 Author Share Posted May 29, 2013 التاج مع الكود .. local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#FF0000* [ Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then outputChatBox("#999999 * [ Police ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("admint")) then outputChatBox("#993333* [ مسؤل الادمنيات ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin2")) then outputChatBox("#dd0000* [ Scripter ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("WorkShop")) then outputChatBox("#A23BEC* [ WorkShop ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote")) then outputChatBox("#7F5A58* [ Voted To Mod ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#C11B17* [ Owner ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("كموره")) then outputChatBox("#C11B17* [ Head Admin ] #FF0000❤彡●【#00BBFFالاسطوره كموره#FF0000】●彡❤ : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("نايف")) then outputChatBox("#ff8756* 彡 [ Owner Server 6AraT ] 彡 نـآيف : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#1D9C00* [ SuperModerator 1 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator2")) then outputChatBox("#259117* [ SuperModerator 2 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#0044ff* [ Moderator 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator2")) then outputChatBox("#2554C7* [ Moderator 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then outputChatBox("#C8BBBE* [ V.I.P ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("7Rame")) then outputChatBox("#52F3FF* [ Gang member ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("#C11B17* [ Head Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then outputChatBox("#444444* [ Big.Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KingDrift")) then outputChatBox("#D4A017* [ King Of Drift ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#717D7D* [ #FFFFFF#ff0000" .. name .. "#717D7D ] :#ffffff " .. text, root, 255, 255, 255, true) end addEventHandler("onPlayerJoin", getRootElement(), s3d) end addEventHandler("onPlayerChat", root, chatbox) local Words = { "removed - Tete, Reason: insults" }; addEventHandler ( "onPlayerChat", root, function ( msg, type ) for _, v in ipairs ( Words ) do if string.find ( msg, v ) then cancelEvent ( ); return outputChatBox ( '#717D7D* [#FF0000 '..getPlayerName( source )..'#717D7D ] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير', root, 255, 0, 0, true ); end end end ); Link to comment
кιηg-αвα∂у Posted May 29, 2013 Share Posted May 29, 2013 local root = getRootElement() local Words = { "removed - Tete, Reason: insults" }; function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#FF0000* [ Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then outputChatBox("#999999 * [ Police ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("admint")) then outputChatBox("#993333* [ مسؤل الادمنيات ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin2")) then outputChatBox("#dd0000* [ Scripter ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("WorkShop")) then outputChatBox("#A23BEC* [ WorkShop ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote")) then outputChatBox("#7F5A58* [ Voted To Mod ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#C11B17* [ Owner ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("كموره")) then outputChatBox("#C11B17* [ Head Admin ] #FF0000❤彡●【#00BBFFالاسطوره كموره#FF0000】●彡❤ : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("نايف")) then outputChatBox("#ff8756* 彡 [ Owner Server 6AraT ] 彡 نـآيف : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#1D9C00* [ SuperModerator 1 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator2")) then outputChatBox("#259117* [ SuperModerator 2 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#0044ff* [ Moderator 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator2")) then outputChatBox("#2554C7* [ Moderator 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then outputChatBox("#C8BBBE* [ V.I.P ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("7Rame")) then outputChatBox("#52F3FF* [ Gang member ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("#C11B17* [ Head Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then outputChatBox("#444444* [ Big.Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KingDrift")) then outputChatBox("#D4A017* [ King Of Drift ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#717D7D* [ #FFFFFF#ff0000" .. name .. "#717D7D ] :#ffffff " .. text, root, 255, 255, 255, true) end for _, v in ipairs ( Words ) do if string.find ( text, v ) then return outputChatBox ( '#717D7D* [#FF0000 '..getPlayerName( source )..'#717D7D ] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير', root, 255, 0, 0, true ); end end end addEventHandler("onPlayerChat", root, chatbox) Link to comment
AboFaisal Posted May 29, 2013 Author Share Posted May 29, 2013 local root = getRootElement() local Words = { "removed - Tete, Reason: insults" }; function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#FF0000* [ Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then outputChatBox("#999999 * [ Police ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("admint")) then outputChatBox("#993333* [ مسؤل الادمنيات ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin2")) then outputChatBox("#dd0000* [ Scripter ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("WorkShop")) then outputChatBox("#A23BEC* [ WorkShop ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote")) then outputChatBox("#7F5A58* [ Voted To Mod ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#C11B17* [ Owner ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("كموره")) then outputChatBox("#C11B17* [ Head Admin ] #FF0000❤彡●【#00BBFFالاسطوره كموره#FF0000】●彡❤ : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("نايف")) then outputChatBox("#ff8756* 彡 [ Owner Server 6AraT ] 彡 نـآيف : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#1D9C00* [ SuperModerator 1 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator2")) then outputChatBox("#259117* [ SuperModerator 2 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#0044ff* [ Moderator 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator2")) then outputChatBox("#2554C7* [ Moderator 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then outputChatBox("#C8BBBE* [ V.I.P ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("7Rame")) then outputChatBox("#52F3FF* [ Gang member ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("#C11B17* [ Head Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then outputChatBox("#444444* [ Big.Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KingDrift")) then outputChatBox("#D4A017* [ King Of Drift ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#717D7D* [ #FFFFFF#ff0000" .. name .. "#717D7D ] :#ffffff " .. text, root, 255, 255, 255, true) end for _, v in ipairs ( Words ) do if string.find ( text, v ) then return outputChatBox ( '#717D7D* [#FF0000 '..getPlayerName( source )..'#717D7D ] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير', root, 255, 0, 0, true ); end end end addEventHandler("onPlayerChat", root, chatbox) وين الكلمات ؟ Link to comment
кιηg-αвα∂у Posted May 29, 2013 Share Posted May 29, 2013 local root = getRootElement() local Words = { "removed - Tete, Reason: insults" }; function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#FF0000* [ Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then outputChatBox("#999999 * [ Police ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("admint")) then outputChatBox("#993333* [ مسؤل الادمنيات ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin2")) then outputChatBox("#dd0000* [ Scripter ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("WorkShop")) then outputChatBox("#A23BEC* [ WorkShop ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote")) then outputChatBox("#7F5A58* [ Voted To Mod ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#C11B17* [ Owner ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("كموره")) then outputChatBox("#C11B17* [ Head Admin ] #FF0000❤彡●【#00BBFFالاسطوره كموره#FF0000】●彡❤ : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("نايف")) then outputChatBox("#ff8756* 彡 [ Owner Server 6AraT ] 彡 نـآيف : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#1D9C00* [ SuperModerator 1 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator2")) then outputChatBox("#259117* [ SuperModerator 2 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#0044ff* [ Moderator 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator2")) then outputChatBox("#2554C7* [ Moderator 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then outputChatBox("#C8BBBE* [ V.I.P ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("7Rame")) then outputChatBox("#52F3FF* [ Gang member ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("#C11B17* [ Head Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then outputChatBox("#444444* [ Big.Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KingDrift")) then outputChatBox("#D4A017* [ King Of Drift ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#717D7D* [ #FFFFFF#ff0000" .. name .. "#717D7D ] :#ffffff " .. text, root, 255, 255, 255, true) end for _, v in ipairs ( Words ) do if string.find ( text, v ) then return outputChatBox ( '#717D7D* [#FF0000 '..getPlayerName( source )..'#717D7D ] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير', root, 255, 0, 0, true ); end end end addEventHandler("onPlayerChat", root, chatbox) وين الكلمات ؟ تيتي عدل مشاركتي وامسحهم ليش ما تحط السبات بعد ما يساعدونك .. بعد إذنك .. هذا منتدى محترم Words حطهم فوق داخل جدول Link to comment
AboFaisal Posted May 29, 2013 Author Share Posted May 29, 2013 (edited) local root = getRootElement() local Words = { "removed - Tete, Reason: insults" }; function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#FF0000* [ Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then outputChatBox("#999999 * [ Police ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("admint")) then outputChatBox("#993333* [ مسؤل الادمنيات ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin2")) then outputChatBox("#dd0000* [ Scripter ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("WorkShop")) then outputChatBox("#A23BEC* [ WorkShop ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote")) then outputChatBox("#7F5A58* [ Voted To Mod ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#C11B17* [ Owner ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("كموره")) then outputChatBox("#C11B17* [ Head Admin ] #FF0000❤彡●【#00BBFFالاسطوره كموره#FF0000】●彡❤ : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("نايف")) then outputChatBox("#ff8756* 彡 [ Owner Server 6AraT ] 彡 نـآيف : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#1D9C00* [ SuperModerator 1 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator2")) then outputChatBox("#259117* [ SuperModerator 2 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#0044ff* [ Moderator 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator2")) then outputChatBox("#2554C7* [ Moderator 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then outputChatBox("#C8BBBE* [ V.I.P ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("7Rame")) then outputChatBox("#52F3FF* [ Gang member ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("#C11B17* [ Head Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then outputChatBox("#444444* [ Big.Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KingDrift")) then outputChatBox("#D4A017* [ King Of Drift ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#717D7D* [ #FFFFFF#ff0000" .. name .. "#717D7D ] :#ffffff " .. text, root, 255, 255, 255, true) end for _, v in ipairs ( Words ) do if string.find ( text, v ) then return outputChatBox ( '#717D7D* [#FF0000 '..getPlayerName( source )..'#717D7D ] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير', root, 255, 0, 0, true ); end end end addEventHandler("onPlayerChat", root, chatbox) وين الكلمات ؟ تيتي عدل مشاركتي وامسحهم ليش ما تحط السبات بعد ما يساعدونك .. بعد إذنك .. هذا منتدى محترم Words حطهم فوق داخل جدول طيب أرسله خاص ع الأقل edit : ياكنق سويت اللي قلته ولا زبط edit #2: بالله مساعده Edited May 30, 2013 by Guest Link to comment
AboFaisal Posted May 29, 2013 Author Share Posted May 29, 2013 ممكن اعرف وش بغيت ؟ رسلت لك خاص لأن الكود فيها كلمات سب Link to comment
AboFaisal Posted May 29, 2013 Author Share Posted May 29, 2013 (edited) كود كنق حط عليه الكلمات وبس .. حطيت ونفس المشكله يطلع السب edit : شباب بالله ابي حل Edited May 30, 2013 by Guest Link to comment
S4MuEL Posted May 29, 2013 Share Posted May 29, 2013 ههنآ بآلجدول , آدخل آسم آلمفاتيح يلي تبيهآ .. ( كلمآت آلسب ) ذذ ولآ تنسى تسوي فآصلةة ققدآمم كل ققيمةة , كل مآ تبي تظيفف كلمةة سويهآ بـ سطر ففي آلجدول بين علآمةة تنصيص .. وظيفف آلفآصل , بس لو جيت تظيفف آخر قيمةة بآلجدول لآ تحط قدآمهآ فآصل .. مثآل , local Words = { "فيصل", "سآمويل" }; تلآحظظ آن بعد آلقيمةة " سآمويل " مآ في فآصصل .. Link to comment
xX|KeMo|Xx Posted May 30, 2013 Share Posted May 30, 2013 السلام عليكم شوف هذا لامود يمكن يعجبك viewtopic.php?f=161&t=55923 4-من مميزاته اذا احد نشر في السيرفر يمسح الشات ويصكه ميوت اذا احد سب في السيرفر يصكه ميوت ويكتب ايه قرانيه اذا احد حاول يزعج الادمن يحذره من الميوت تقدر تمسح الشات من الادمنيه تقدر تجمد الجميع من الادمنيه تقدر تطلع قوانين السيرفر في الشات من الادمنيه اذا تبي تستخدمهـ اقرآ الموضوع كويسـ عشان تعرف طريقت تشغيلهـ المهم cancelEvent() هذي ما تخلي السبه تخرج في الشات Link to comment
3NAD Posted May 30, 2013 Share Posted May 30, 2013 local Words = { "كلمة ممنوعة", "كلمة ممنوعة", "كلمة ممنوعة", "كلمة ممنوعة", }; function chatbox ( text, type ) local name = getPlayerName ( source ) for _, v in ipairs ( Words ) do if string.find ( text, v ) then outputChatBox ( "#717D7D* [#FF0000 "..name.."#717D7D ] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير", root, 255, 0, 0, true ); cancelEvent ( ) return false end end if type == 0 then cancelEvent ( ) local account = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#FF0000* [ Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then outputChatBox("#999999 * [ Police ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("admint")) then outputChatBox("#993333* [ مسؤل الادمنيات ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin2")) then outputChatBox("#dd0000* [ Scripter ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("WorkShop")) then outputChatBox("#A23BEC* [ WorkShop ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote")) then outputChatBox("#7F5A58* [ Voted To Mod ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#C11B17* [ Owner ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("كموره")) then outputChatBox("#C11B17* [ Head Admin ] #FF0000????#00BBFFالاسطوره كموره#FF0000???? : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("نايف")) then outputChatBox("#ff8756* ? [ Owner Server 6AraT ] ? نـآيف : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#1D9C00* [ SuperModerator 1 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator2")) then outputChatBox("#259117* [ SuperModerator 2 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#0044ff* [ Moderator 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator2")) then outputChatBox("#2554C7* [ Moderator 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then outputChatBox("#C8BBBE* [ V.I.P ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("7Rame")) then outputChatBox("#52F3FF* [ Gang member ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("#C11B17* [ Head Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then outputChatBox("#444444* [ Big.Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KingDrift")) then outputChatBox("#D4A017* [ King Of Drift ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#717D7D* [ #FFFFFF#ff0000" .. name .. "#717D7D ] :#ffffff " .. text, root, 255, 255, 255, true) end end end addEventHandler ( "onPlayerChat", root, chatbox ) 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