on join:
set (spam.%player%) to 0
on quit:
delete (spam.%player%)
on chat:
if (spam.%player%) is 0:
set (spam.%player%) to 2
else:
send "Spam Yapmayın" to player
cancel event
every second:
loop all players:
if (spam.%loop-player%) is greater than 0:
remove 1 from (spam.%loop-player%)