[KilleR] Posted August 6, 2016 Share Posted August 6, 2016 السلام عليكم يوم يكتب اسم او مثل ياكيلر ينصك ميوت - بس طلب ثاني ابي كود يكتب سبب لاصكه والثاني مايكتب Link to comment
iMr.WiFi..! Posted August 6, 2016 Share Posted August 6, 2016 addEventHandler - "onPlayerChat" string.find setPlayerMuted Link to comment
N3xT Posted August 6, 2016 Share Posted August 6, 2016 local text = "كيلر" addEventHandler("onPlayerChat", root, function ( msg ) if string.find(msg,text) then if not isPlayerMuted ( source ) then setPlayerMuted(source, true) outputChatBox("تم صكك ميوت", source, 255, 0, 0, true) end end end ) Link to comment
Rockyz Posted August 7, 2016 Share Posted August 7, 2016 (edited) جرب من زمان مابرمج : Words = { "ياكيلر", "كيلر" } Mute = 1 -- عدد الدقائق لازالة الميوت function RemoveMute ( text ) setPlayerMuted ( source, false ) outputChatBox ( .. text , source, 255, 255, 0, true ) end addEventHandler ( "onPlayerChat", root, function ( msg, mtype ) for i, v in ipairs ( Words ) do if ( mtype == 0 ) or ( mtype == 2 ) then if string.find ( msg, v ) then if not ( isPlayerMuted ( source ) ) then setPlayerMuted ( source, true ) outputChatBox ( "دقيقة" tostring ( Mute ) "تم صكك ميوت لمدة", source, 255, 255, 0, true ) setTimer ( RemoveMute, Mute * 10000, 1, "تم ازالة الميوت" ) end end end end end ) Edited August 7, 2016 by Guest Link to comment
Rockyz Posted August 7, 2016 Share Posted August 7, 2016 عدلت شي بسيط انسخه مرة ثانية Link to comment
Rockyz Posted August 7, 2016 Share Posted August 7, 2016 Words = { "ياكيلر", "كيلر" } addEventHandler ( "onPlayerChat", root, function ( msg, mtype ) for i, v in ipairs ( Words ) do if ( mtype == 0 ) or ( mtype == 2 ) then if string.find ( msg, v ) then if not ( isPlayerMuted ( source ) ) then setPlayerMuted ( source, true ) outputChatBox ( "تم صكك ميوت", source, 255, 255, 0, true ) end end end end end ) لاتنسى تحطه في قروب الادمن Link to comment
EdeN Posted August 7, 2016 Share Posted August 7, 2016 حطه في قروب الادمن resouce.اسم المود Link to comment
Rockyz Posted August 7, 2016 Share Posted August 7, 2016 حطه في قروب الادمنresouce.اسم المود Words = { "ياكيلر", "كيلر" } addEventHandler ( "onPlayerChat", root, function ( msg, mtype ) for i, v in ipairs ( Words ) do if ( mtype == 0 ) or ( mtype == 2 ) then if string.find ( msg, v ) then if not ( isPlayerMuted ( source ) ) then setPlayerMuted ( source, true ) outputChatBox ( "تم صكك ميوت", source, 255, 255, 0, true ) end end end end end ) لاتنسى تحطه في قروب الادمن Link to comment
xNKM51 Posted August 8, 2016 Share Posted August 8, 2016 اخوي الكود حق سيرفر ولا كلنت 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