Hi Courgette
I´ve seen this interesting topic "spawn kill detector help" from Virtus
http://forum.bigbrotherbot.net/the-code-bin/spawn-kill-detector-help/ and your name included in this code ( took this from the topic)
__version__ = '1.0'
__author__ = [color=red]'Courgette'[/color]
import b3
import b3.events
import b3.plugin
import time
class Tutorial1Plugin(b3.plugin.Plugin):
spawntime = {}
def onStartup(self):
# get the admin plugin so we can register commands
self._adminPlugin = self.console.getPlugin('admin')
if not self._adminPlugin:
# something is wrong, can't start without admin plugin
self.error('Could not find admin plugin')
return
def onStartup(self):
if self.console.gameName not in SUPPORTED_PARSERS:
self.error("This game is not supported by this plugin")
self.disable()
return
self.registerEvent(EVT_CLIENT_AUTH)
self._workerThread = threading.Thread(target=self._worker)
self._workerThread.setDaemon(True)
self._workerThread.start()
self._checkConnectedPlayers()
def onEvent(self,event, client)
if event.type == b3.events.EVT_CLIENT_SPAWN:
spawntime[client.guid] = int(time.time())
self.console.write('bigtext "test %s"' % (spawntime[client.guid]))
if event.type == b3.events.EVT_CLIENT_DISCONNECT:
del spawntime[client.guide]
if event.type == event.type == b3.events.EVT_CLIENT_KILL:
if int(time.time()) <= (spawntime[event.target] + 5):
self.console.write('bigtext "DO NOT SPAWN KILL"')
I was wondering if a plugin like this could be working for CoD, or if you have already developed it.
Thank you very much.
Greetings