20.11.2013, 12:41
Quote:
OnFloodDetected what? Text, joining/disconnecting from the server, specific keys/features? This include either deserves the name OnConnectingFloodDetected or you should improve the code to make it fit it's name even more.
|
Might consider doing this:
pawn Код:
public OnFloodDetected(playerid, ip[], type)
{
if (type == FLOOD_TYPE_CONNECT)
{
...
}
else if (type == FLOOD_TYPE_CHAT)
{
...
}
else if (type == FLOOD_TYPE_BLABLA)
{
...
}
return 1;
}