mute for time
#3

I made it already
Код:
if(ServerInfo[AntiSpam] == 1 && (PlayerInfo[playerid][Level] == 0 && !IsPlayerAdmin(playerid)) )
	{
		if(PlayerInfo[playerid][SpamCount] == 0) PlayerInfo[playerid][SpamTime] = TimeStamp();

	    PlayerInfo[playerid][SpamCount]++;
		if(TimeStamp() - PlayerInfo[playerid][SpamTime] > SPAM_TIMELIMIT) { 
			PlayerInfo[playerid][SpamCount] = 0;
			PlayerInfo[playerid][SpamTime] = TimeStamp();
		}
		else if(PlayerInfo[playerid][SpamCount] == SPAM_MAX_MSGS) {
			new string[64]; format(string,sizeof(string),"Server has Muted %s (Flood/Spam Protection)", PlayerName2(playerid));
			SendClientMessageToAll(red,string); print(string);
			PlayerInfo[playerid][Muted] = 1;
			return 0;
		}
	}
but it mute the member permanently not for 10 seconds.
Reply


Messages In This Thread
mute for time - by AhmedMohamed - 15.03.2014, 03:02
Re: mute for time - by DarkLored - 15.03.2014, 03:04
Re: mute for time - by AhmedMohamed - 15.03.2014, 03:10
Re: mute for time - by DarkLored - 15.03.2014, 03:40
Re: mute for time - by AhmedMohamed - 15.03.2014, 03:50

Forum Jump:


Users browsing this thread: 1 Guest(s)