[Include] FloodControl.inc - LACKING FLOOD! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] FloodControl.inc - LACKING FLOOD! (
/showthread.php?tid=353491)
FloodControl.inc - NO FLOOD! -
RoacH` - 23.06.2012
Introduction:
Hello galerinha.. good as you all know there are some lammers who worship miserable servers with various types of flooding, such as death spam, flood chat/commands etc... with this script your problems are over! He aims to stop this, you can adimistrar various types of flood with a touch of magic!. One need only configure it to your liking
.
Functions:
The script. It allows you to manage various types of floods, and configure it to your liking! ![Tongue](images/smilies/razz.gif)
Name | Parameters | Function |
FLOOD_CONTROL_DEATH | N/A | Flood death spam, fake kill |
FLOOD_CONTROL_BOOT | N/A | Flood boot |
FLOOD_CONTROL_VEHICLES | N/A | Flood vehicles(Car mass spawner) |
FLOOD_CONTROL_COMMAND | N/A | Flood command |
FLOOD_CONTROL_CHAT | N/A | Flood chat |
OnPlayerFloodControl | (playerid, config) | Control panel |
OnPlayerFloodChat@Command | (playerid, config) | Panel of flood chat/commands |
Example:
PHP код:
#include <a_samp>
#include <FloodControl>
public OnPlayerFloodControl(playerid, config) {
if(config == FLOOD_CONTROL_DEATH) {
SendClientMessage(playerid, 0xFFFFFFFF, "FloodControl: You have been banned for flood death!");
Ban(playerid);
}
if(config == FLOOD_CONTROL_BOOT) {
SendClientMessage(playerid, 0xFFFFFFFF, "FloodControl: You have been banned for flood boot!");
Ban(playerid);
}
if(config == FLOOD_CONTROL_VEHICLES) {
SendClientMessage(playerid, 0xFFFFFFFF, "FloodControl: You have been banned for flood vehicle! (CAR MASS SPAWNER)");
Ban(playerid);
}
if(config == FLOOD_CONTROL_CHAT || FLOOD_CONTROL_COMMAND) {
SendClientMessage(playerid, 0xFFFFFFFF, "FloodControl: You were kicked by flood chat/command!");
Kick(playerid);
}
return true;
}
public OnPlayerText(playerid, text[]) {
// -- Starts counting --
OnPlayerFloodChat@Command(playerid, FLOOD_CONTROL_CHAT);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
// -- Starts counting --
OnPlayerFloodChat@Command(playerid, FLOOD_CONTROL_COMMAND);
if(!strcmp(cmdtext, "/floodcontrol", true)) {
SendClientMessage(playerid, 0xFFFFFFFF, "FloodControl: You can be kicked by flood!");
return 1;
}
return 0;
}
Download:
Pastebin
original topic
Questions, suggestions, bugs, Post here!
ChangeLog:
Credits:
RoacH` - Creator
SA-MP TEAM - For All
Re: FloodControl.inc - LACKING FLOOD! -
bgmrk - 23.06.2012
Nice RoacH'
Re: FloodControl.inc - LACKING FLOOD! -
cJMaster_ - 23.06.2012
Good Joob Roach.
Maybe I'll use it on my server to avoid flood of players.
Re: FloodControl.inc - LACKING FLOOD! -
Edvin - 23.06.2012
I will test it
![Smiley](images/smilies/smile.png)
if it work fine i will use it !
Nice release !
Re: FloodControl.inc - LACKING FLOOD! -
RoacH` - 23.06.2012
Quote:
Originally Posted by bgmrk
Nice RoacH'
|
Quote:
Originally Posted by doodem
Good Joob Roach.
Maybe I'll use it on my server to avoid flood of players.
|
Quote:
Originally Posted by Edvin
I will test it ![Smiley](images/smilies/smile.png) if it work fine i will use it !
Nice release !
|
Thank you
![Tongue](images/smilies/razz.gif)
!
Re: FloodControl.inc - LACKING FLOOD! -
im - 10.08.2012
Nice include. Tested flood with raksamp (
http://code.******.com/p/raksamp/) and it blocks it.
Re: FloodControl.inc - LACKING FLOOD! -
jpeg - 10.08.2012
WOW! Very Nice!
Re: FloodControl.inc - LACKING FLOOD! -
Pa1N - 19.08.2012
how to decrease the FLOOD_CONTROL_COMMAND timer? because if I type /help x4 the server kick me...