;this line checks if the variable exists and if it doesnt it sets it.if it does it increases it by 1.
$iif(%flood == $null,.set -u5 %flood 1,inc %flood 1)
;this line checks if the nickname is in the %fnick variable and if not it sets it.
$iif(%fnick == $null,.set -u5 %fnick $nick,//echo -a private msg)
;this line ignores the person if the person is alrady stored in the %fnick variable and if the %flood variable is more than 5.
$iif(%fnick == $nick && %flood > 4,/ignore $nick,//echo -a private msg)
;the .set -u5 means it will unset after 5 seconds,so that flood prot will ignore the person if you get more than 4 messages in 5 seconds.
;i can change it for you if you want