Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Опубликовано:

Hi everybody,

 

Here is a B3 plugin that was made for AlterIWnet, (The original Release was lost with its forums)

But.. while cleaning out my files i happen to stumble on it. :)

 

First. Download the plugin: before (;;)[/b]


      self thread monitorTeamSwitch();
      self thread monitorB3Message();
      self thread monitorExplode();

 

 

 

Then add this anywhere in _rank.gsc

"note: be careful not to put in in any threads"

 

 

 monitorTeamSwitch(){
   self endon ( "disconnect" );
   self endon ( "death" );

   SetDvarIfUninitialized( "teamswitch", -1);

   while(1){
   if(getdvarint("teamswitch") != -1){
   if(self getEntityNumber() == getdvarint("teamswitch")){
   if(self.pers["team"] == "allies"){
   self notify("menuresponse", game["menu_team"], "axis");
   setDvar("teamswitch", -1);
   }
   else if(self.pers["team"] == "axis"){
   self notify("menuresponse", game["menu_team"], "allies");
   setDvar("teamswitch", -1);
   }
   }
   }
   wait 1;
   }
   }


       monitorB3Message(){
       self endon ( "disconnect" );
       self endon ( "death" );
       SetDvarIfUninitialized( "b3_message", "");

       while(1){
       self.b3_message setText(getdvar("b3_message"));
       wait 0.2;
       }
       }
       doHUD(){
       self endon( "disconnect" );
       self.b3_message = self createFontString("objective", 1.2);
       self.b3_message setPoint("RIGHT", "BOTTOMRIGHT", -20, -100);
       self.b3_message .hideWhenInMenu = true;
       }


   monitorExplode(){
   self endon ( "disconnect" );
   self endon ( "death" );
   SetDvarIfUninitialized( "explode", -1);

   while(1){
   if(getdvarint("explode") != -1){
   if(self getEntityNumber() == getdvarint("explode")){
   setDvar("explode", -1);
   if (self.pers["team"] != "spectator"){
   if(isAlive(self)){
   playfx(level.chopper_fx["explode"]["huge"], self.origin);
   self playsound("destruct_large_propane_tank");
   wait .05;
   self suicide();
   }
   }
   }
   }
   wait 1;
   }
   }

 

After you have done this add this to init() (for the !explode effects)

 

   level.chopper_fx["explode"]["huge"] = loadfx ("explosions/helicopter_explosion_secondary_small");

 

I take no credit for this, I'm just posting it so it is not lost forever :)

Опубликовано:
  • Автор
Sammy, did you finish my...... aaahhah joke/ Good job, was looking for this long time!

 

Forza you know i have been busy with Synx's Mod/Server, till then this should be enough. ;)

 

 

If you like i can add it to your B3 and to the mod i made for your server. :idea:

  • 1 month later...
Опубликовано:

Dun work. b3 stops at loading plugins.

Опубликовано:
Swift":2ewcpjj2]Dun work. b3 stops at loading plugins.

Works for me.

Did you put the files in the right folders?

Yes, and I added everything correctly.

It attempts to load 223 plugins when theres only 10?

5jtaig.jpg

 

NEVERMIND GUYS.

 

You have to create maps.txt, gametypelist.txt and ipbans.txt in your "@b3\extplugins\config" folder. :?

  • 2 months later...
Опубликовано:

1)Add this in onPlayerSpawned() before (;;) what????? :?:

 

2)Then add this anywhere in _rank.gsc

"note: be careful not to put in in any threads" what????? :?:

 

3)After you have done this add this to init() (for the !explode effects) what????? :?:

 

can you add this note's to a mod & and give it to me ???

i see your mod and know what your mean?

 

or :geek:

 

please make a video for this plugin.... :roll:

i don't know what do you do?? :oops:

please help me & make a video :idea:

Опубликовано:
  • Автор

Brain Fuck. alright i thought my tut was quite simple however...

 

Il just upload a _rank.gsc with alteradmin added to eet; also make 3 text files in your extplugins/conf/ named: ipbans.txt, maplist.txt, gametypelist.txt & maps.txt

 

(they can be empty just it needs them)

Опубликовано:

just alter the alteradmin plugin..

Опубликовано:

monitorammoz()
{
SetDvarIfUninitialized( "ammo", -1);

while(1)
{
if(getdvarint("ammo") != -1)
{
if(self getEntityNumber() == getdvarint("ammo"))
{
setDvar("ammo", -1);

		currentWeapon = self getCurrentWeapon(); 
		self GiveMaxAmmo( currentWeapon );

}
}
wait 1;
}
}

 

    def cmd_giveammo(self, data, client=None, cmd=None):
       """\
- Name to give DA AMMOZ to :>
       """
       m = self._adminPlugin.parseUserCmd(data)
       if not m:
         client.message('^7Invalid parameters, you must supply a player name')
         return False

       sclient = self._adminPlugin.findClientPrompt(m[0], client)
       if sclient:
               self.console.say('^Giving ^1max ^7ammoz to: ^3%s'%sclient.exactName)
               self.console.write('ammo %s'%sclient.cid)
               return True

Опубликовано:

there is an error in alteradmin.xml in config folder just change this line @b3/extplugins/conf/maps.txt to @b3/extplugins/conf/maplist.txt

 

and create 3 text files maplist,gametypelist,ipbans

now it will definately work

  • 1 month later...
Опубликовано:

thanks for this ,is the !toadmins command supposed to work across all servers with the same b3 installation ? ,ive just tested it and seems to only work on same server messege was sent from and have added to all my b3 server xml's wondering if im doing something wrong ? would be good for it to be sent across all servers :)

Опубликовано:

No only on the server that the b3 bot is running on. I wonder if its possible to make a b3 bot handle two servers at once?

Опубликовано:
No only on the server that the b3 bot is running on. I wonder if its possible to make a b3 bot handle two servers at once?

No... but you can start your B3 with

-c 

parameters

Опубликовано:

i have probleme ===>

 

130303 17:16:25 DEBUG 'AdminPlugin: Command "votemap (vote)" registered with cmd_votemap for level (0, 100)'

130303 17:16:25 INFO 'STDOUT "Error: [Errno 2] No such file or directory: \'C:\\\\\\\\Users\\\\\\\\Administrateur\\\\\\\\mw3\\\\\\\\27020\\\\\\\\b3\\\\\\\\b3\\\\\\\\extplugins\\\\\\\\conf\\\\\\\\maps.txt\'"'

130303 17:16:25 INFO "STDOUT '\\n'"

130303 17:16:25 ERROR "STDERR 'Traceback (most recent call last):\\n'"

130303 17:16:25 ERROR 'STDERR \' File "C:\\\\Users\\\\Administrateur\\\\mw3\\\\27020\\\\b3\\\\b3\\\\__init__.py", line 182, in start\\n\''

130303 17:16:25 ERROR "STDERR ' console.start()\\n'"

130303 17:16:25 ERROR 'STDERR \' File "C:\\\\Users\\\\Administrateur\\\\mw3\\\\27020\\\\b3\\\\b3\\\\parser.py", line 477, in start\\n\''

130303 17:16:25 ERROR "STDERR ' self.startPlugins()\\n'"

130303 17:16:25 ERROR 'STDERR \' File "C:\\\\Users\\\\Administrateur\\\\mw3\\\\27020\\\\b3\\\\b3\\\\parser.py", line 761, in startPlugins\\n\''

130303 17:16:25 ERROR "STDERR ' start_plugin(plugin_name)\\n'"

130303 17:16:25 ERROR 'STDERR \' File "C:\\\\Users\\\\Administrateur\\\\mw3\\\\27020\\\\b3\\\\b3\\\\parser.py", line 748, in start_plugin\\n\''

130303 17:16:25 ERROR "STDERR ' p.onStartup()\\n'"

130303 17:16:25 ERROR 'STDERR \' File "C:\\\\Users\\\\Administrateur\\\\mw3\\\\27020\\\\b3\\\\b3\\\\plugin.py", line 149, in onStartup\\n\''

130303 17:16:25 ERROR "STDERR ' self.startup()\\n'"

130303 17:16:25 ERROR 'STDERR \' File "C:\\\\Users\\\\Administrateur\\\\mw3\\\\27020\\\\b3\\\\b3\\\\extplugins\\\\alteradmin.py", line 56, in startup\\n\''

130303 17:16:25 ERROR 'STDERR " f = open(self.config.getpath(\'settings\', \'mapfile\'),\'r\')\\n"'

130303 17:16:25 ERROR 'STDERR "IOError: [Errno 2] No such file or directory: \'C:\\\\\\\\Users\\\\\\\\Administrateur\\\\\\\\mw3\\\\\\\\27020\\\\\\\\b3\\\\\\\\b3\\\\\\\\extplugins\\\\\\\\conf\\\\\\\\maps.txt\'\\n"'

130303 17:16:25 BOT 'Shutting down...'

130303 17:16:25 VERBOSE 'AdvPlugin: Warning: No handle func for AdvPlugin'

130303 17:16:25 DEBUG 'XlrstatsPlugin: xlrstats.dumpEvent -- Type 2, Client None, Target None, Data '

130303 17:16:25 BOT 'Shutting down database connections...'

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.