Originally Posted by Shadows Adi
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
#define MAX_FLOOD_REPEAT 4
#define MIN_FLOOD_TIME 0.75
#define MIN_FLOOD_NEXT_TIME 4.0
register_plugin(PLUGIN, VERSION, AUTHOR)
new Float:NexTime = get_gametime();
if(g_Flooding[id] > NexTime)
if(g_Flood[id] >= MAX_FLOOD_REPEAT)
//client_print(id, print_center, "You flood the chat/console and mute for %d Seconds", g_Flood)
g_Flooding[id] = NexTime + MIN_FLOOD_TIME + MIN_FLOOD_NEXT_TIME;
g_Flooding[id] = NexTime + MIN_FLOOD_TIME;
could u put to show a message like this when the player got muted: "You've been muted for 30 seconds. Wait 30s, REASON: Flooding". and the seconds will going down each time he types, example if he types something after 4 seconds, the message will be: "You've been muted for 30 seconds. Wait: 26s, REASON: Flooding".