• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua CTF Event Spams FLAG over player; causing major pull!

WarZones

New Member
Joined
Oct 6, 2012
Messages
47
Reaction score
1
So this script works perfectly, but when the player has the flag it sends "FLAG!" like multiple times per second, causing major pull. I want to set it so it flashes once every second instead of going crazy over the character.


Code:
 if redStolen() < 0 then
			doSendAnimatedText(re,"FLAG!",TEXTCOLOR_DARKRED)
			doSendMagicEffect(re, CONST_ME_SOUND_RED)
        end
        if blueStolen() < 0 then
			doSendAnimatedText(bl,"FLAG!",TEXTCOLOR_GREEN)
			doSendMagicEffect(bl, CONST_ME_SOUND_GREEN)
	    end

Hopefully someone knows the code to throw in to make it process once every second instead of all the time. That would be appreciated, much REP for you! ;D
 
Back
Top