+Source|> Posted June 11, 2017 Share Posted June 11, 2017 لاهنتم الله يوفقكم دايم تساعدوني وتفهموني ابي كود الحين انا اكتب في الشات ابي اللاعب ينتظر مدة 3 ثواني ثم يرجع يكتب واذا كرر ياخذ ميوت Link to comment
#kAsR Posted June 11, 2017 Share Posted June 11, 2017 سويها بالجداول table = { } 'onPlayerChat' outputChatBox return حاول وراح نساعدك ان شاء الله Link to comment
#Soking Posted June 11, 2017 Share Posted June 11, 2017 Flood , Var , aTimer = { } , { } , { } addEventHandler ( 'onPlayerChat' , root , function ( ) if ( not isPlayerMuted ( source ) ) then if ( Var [ source ] == 3 ) then if ( not isTimer ( aTimer [ source ] ) ) then aTimer [ source ] = setTimer ( function ( source ) Var [ source ] , aTimer [ source ] , Flood [ source ] = 0 , nil , nil setPlayerMuted ( source , false ) outputChatBox ( "* Hi , You Can Talk " , source ) end , 5000 , 1 , source ) end if ( Flood [ source ] == 2 ) then outputChatBox ( " * Muted " , source ) setPlayerMuted ( source , true ) cancelEvent ( ) else outputChatBox ( " * You Can't Say In Chat Now " , source ) Flood [ source ] = ( Flood [ source ] or 0 ) + 1 cancelEvent ( ) end else Var [ source ] = ( Var [ source ] or 0 ) + 1 end end end ) Link to comment
#Soking Posted June 11, 2017 Share Posted June 11, 2017 2 hours ago, A7MEDENO said: شكرا العفو 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