Перейти к содержимому
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.

[Help]how to change Default Class, not by dsr? related to BOTS

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

TestClient.TakeAllWeapons();
TestClient.GiveWeapon("???");
TestClient.SwitchImmadiatlyTo("???");

EDIT : didn't readed your hole post.

I can , If I look at my Source... but I'm too lazy.

Featured Replies

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

wait.

 TestClient.OnNotify("joined_spectators", entity =>{entity.Notify("menuresponse", "team_marinesopfor", "autoassign");entity.AfterDelay(500, currentity =>{currentity.Notify("menuresponse", "changeclass", "class1");});});

Change Class1 to any other default class..

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

sorry. i already tried your way. it didn't wok.

there was one way to make bots have weapons by executing fast_restart at Server console.

After i executed fast_restart, bots had weapons according to infected_dsr_setting.

But, i want to know smart way.

 

i found simple way to change bot's weapons.

int count_bot = 9;
PlayerConnecting += new Action(player =>
           {
              // if (deployBOTS)
              // {
                 //  if (player.Name == ADMIN_name)
                  // {
                       AfterDelay(100, () =>
                       {
                           for (int i = 0; i < count_bot; i++)
                           {
                               Entity ent = Call("getentbynum", i);
                               Bots_Spawn(ent);
                           }
                       });
                  // }  
            //   }

           });
private void Bots_Spawn(Entity ent)
       {
           Entity testClient = Utilities.AddTestClient();
           if (testClient == null) { return; }
           testClient.Notify("joined_spectators");
       }

Join the conversation

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

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

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

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

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

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

Account

Navigation

Поиск

Поиск

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.