Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins Discussion (Moderator: MordyT)Plugin Idea
Pages: [1]   Go Down
  Print  
Author Topic: Plugin Idea  (Read 541 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Renting Server, no B3
Gameservers: CoD4
Posts: 11
Offline Offline
« on: August 13, 2010, 09:57:41 AM »

For Cod4..

I'm sure most of you know the console commands for changing the team names (g_teamname_axix, g_teamname_allies)
But those settings don't stick with a map rotate. I was wondering if anyone would like to make a plugin to automatically set the names you chose after each map. That way it saves you the trouble of bringing up rcon again and again.
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 180
Offline Offline
WWW
« Reply #1 on: August 13, 2010, 02:25:40 PM »

pb task
Logged

Jr. Member
**
OS: Windows
Type: Renting Server, no B3
Gameservers: CoD4
Posts: 11
Offline Offline
« Reply #2 on: August 13, 2010, 03:27:35 PM »

what if you don't run pb lol
Logged
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 180
Offline Offline
WWW
« Reply #3 on: August 13, 2010, 05:29:15 PM »

make it run g_teamname_axix <name> & g_teamname_allies <name> on EVT_GAME_ROUND_START

somthing like
Code:
    def onStartup(self): 
        self._adminPlugin = self.console.getPlugin('admin') 
        if not self._adminPlugin: 
            return False 
        #SET COMMAND LEVEL HERE 
        self.registerEvent(b3.events.EVT_GAME_ROUND_START) 
 
    def onEvent(self, event): 
        if event.type == b3.events.EVT_GAME_ROUND_START:
            self.console.write('g_teamname_axix Team 1')
            self.console.write('g_teamname_allies Team 2')
            return

idk
« Last Edit: August 13, 2010, 05:44:36 PM by Spoon » Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #4 on: August 13, 2010, 11:25:33 PM »

Have you looked at the configmanager plugin? That plugin will execute configs on mapstart...

http://www.bigbrotherbot.net/forums/downloads/?sa=view;down=18
Logged

Jr. Member
**
OS: Windows
Type: Renting Server, no B3
Gameservers: CoD4
Posts: 11
Offline Offline
« Reply #5 on: August 14, 2010, 03:12:58 PM »

Have you looked at the configmanager plugin? That plugin will execute configs on mapstart...

http://www.bigbrotherbot.net/forums/downloads/?sa=view;down=18

Shocked that is nifty lol. Surprised I overlooked that. Thanks man.
Logged
Tags: teamname team name cod4 axis allies 
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal