anti flood to my script - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: anti flood to my script (/showthread.php?tid=98567) anti flood to my script by Damire on 11-19-2011 at 02:01 AM
hey i just made a script that anyone on my contacts can call just by tiping the command "-comandtest" for example then the scripts sends a text that i made all good but, you know those friends start flooding me with the command RE: anti flood to my script by whiz on 11-25-2011 at 10:37 PM
For the timing cool down, you could set a variable to false when the command is used, and use MsgPlus::AddTimer() to set a delay for changing it back to true. Then, only allow sending the text if the variable is true. js code: As for ignoring after so many calls, you would need to keep count and check each time how many have been sent. You'd also need to add in some way of resetting the count after so long. js code: RE: anti flood to my script by matty on 11-26-2011 at 12:25 PM
Taking it one step further, making it work on a per contact basis... js code: RE: anti flood to my script by Spunky on 11-26-2011 at 03:42 PM
quote: Unless they change their name RE: anti flood to my script by matty on 11-27-2011 at 01:08 AM Good point... It was 7:30am... I shouldn't post so early! |