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)Is there any plugins i can use to switch beween normal and oldschool mode
Pages: [1]   Go Down
  Print  
Author Topic: Is there any plugins i can use to switch beween normal and oldschool mode  (Read 511 times) Bookmark and Share
Newbie
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: Cod4, Cod6
Posts: 6
Offline Offline
« on: April 12, 2011, 10:04:46 AM »

hey all..
i need help it creating a plugin to switch between game modes (oldscool<>normal).
for cod4.

or can i edit a plugin...? and add some lines....

thanks...

Logged

Am0Nx

Newbie
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: Cod4, Cod6
Posts: 6
Offline Offline
« Reply #1 on: April 12, 2011, 10:47:07 AM »

the master admin plugin.. turns hardcore mode off/on..
is there anyone can edit this to change oldschool mode on/off?

masteradmin http://forum.bigbrotherbot.net/downloads/?sa=view%3bdown=48
Logged

Am0Nx
Newbie
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: Cod4, Cod6
Posts: 6
Offline Offline
« Reply #2 on: April 13, 2011, 04:07:38 AM »

def cmd_oldschool(self, data, client, cmd=None):
    """\
    Restart the current map.
    (You can safely use the command without the 'pa' at the beginning)
    """
    if not data:
      client.message('^7Missing data, type off or on behind the command')
      return False
    else:
      input = data.split(' ',1)
      if input[0] == 'on' :
          self.console.say('^2Gamemode set to^1 oldschool')
          time.sleep(2)
          self.console.write('scr_oldschool 1')
          self.console.write('fast_restart')
          return True
      if input[0] == 'off' :
          self.console.say('^2Gamemode set to^1 Normal')
          time.sleep(2)
          self.console.write('scr_oldschool 0')
          self.console.write('fast_restart')
          return True
      client.message('^7Invalid data, type off or on')   
    return True













i edited the masteradmin.py.....hardcore coding to this.........it works...
thanks
Logged

Am0Nx
Tags: oldschool server  cod4 
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal