This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
down
CTF Engine
if any1 knows how to add check for time after a char takes the flag, than set max time that a char has to score, and if he doesnt score for the time than flag is taken back.
This doesnt work, static - non static conflict or sth :P
ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { public void run() { if (_player._haveFlagCTF) { _flagsTaken.set(CTF._teams.indexOf(_teamNameHaveFlagCTF), false); spawnFlag(_teamNameHaveFlagCTF); removeFlagFromPlayer(this); broadcastUserInfo(); _haveFlagCTF = false; Announcements(CTF._eventName + "(CTF): " + _teamNameHaveFlagCTF + "'s flag returned."); _flagTask.cancel(false); _flagTask = null; } } }, Config.CTF_FLAG_TIMER * 1000);0 answers to this question
Recommended Posts