Posts: 871
Threads: 114
Joined: May 2014
Quote:
Originally Posted by Abagail
pawn Код:
public OnPlayerText(playerid, text[]) { PlayerLastText[playerid]++; SetTimerEx("ResetPlayerText", 2000, false, "i", playerid); if(PlayerLastText[playerid] >= 5) { new string[24 + MAX_PLAYER_NAME+2]; format(string, sizeof(string), "%s(%d) is spamming - mute them.", GetName(playerid), playerid); SendMessageToAdmins(-1, string); } return 0; }
forward ResetPlayerText(playerid); public ResetPlayerText(playerid) { PlayerLastText[playerid] = 0; return 1; }
|
Ok this is
And How i can get message if player will not mute the player
I want to get message if admin will not mute the abuser
Tell mee to get just and SCM after this i will change to save it
Thanks tooo