Blockland Forums > Modification Help

Flood Protection

Pages: << < (4/5) > >>

Kalphiter:


--- Quote from: General on July 24, 2010, 02:04:16 PM ---I think so, since the value is 1 for 10 seconds.

--- End quote ---
So, it activates their flood protection?

herb:

this seems pointless imo...

maybe if i knew what you were actually trying to do here...

General:


--- Quote from: Kalphiter on July 24, 2010, 02:06:04 PM ---So, it activates their flood protection?

--- End quote ---
The echo proved that it has values, it also proved that 1 means the client is under flood protection, you could try this yourself. After finding that it has values, I tried to use it in my script which failed. Basically, I wanted it to continue the code if the client was not under flood protection, instead it resulted in giving me two flood warnings and continued running the code:

--- Code: ---package TEST
{
     function serverCmdMessageSent(%client, %text)
     {
          if(spamAlert(%client) == 0)
          {
               //Code goes here
          }
          parent::serverCmdMessageSent(%client, %text);
     }
};
activatePackage(TEST);
--- End code ---
The echo said yes, it does activate their flood protection. It doesn't seem that way in the code, unless I've made a mistake in it? I need some clarification on this, this is how I'm presuming it works.



--- Quote from: herb on July 24, 2010, 02:58:45 PM ---this seems pointless imo...

maybe if i knew what you were actually trying to do here...

--- End quote ---
Maybe re-reading the posts will help, I've left enough information on what I am trying to do.

General:

Still need help...

MegaScientifical:

Whatever you do, don't clear the spamAlert function. It crashes the game if anyone talks...

Pages: << < (4/5) > >>

Go to full version