04.10.2014, 22:55
I have this on onplayertext.
pawn Код:
if ( PlayerInfo[ playerid ][ Muted ] == 1 )
{
PlayerInfo[ playerid ][ MuteWarnings ]++;
if ( PlayerInfo[ playerid ][ MuteWarnings ] < 5 )
FormatMSG( playerid, COLOR_ULTRARED, "You are muted, if you continue to speak you will be kicked. ({33CCFF}%d{FF0000}/5)", PlayerInfo[ playerid ][ MuteWarnings ] );
else
{
SendClientMessage( playerid, COLOR_ULTRARED, "You have been warned! Now you have been kicked" );
FormatLog( "KickLog", "*** %s(%d) have been auto-kicked. Reason: Exceding max mute warnings !", PlayerName( playerid ), playerid );
Kick( playerid );
}
return ( 0 );
}