Перейти к содержимому
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] adapt this to 4d1 xD

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

Can someone help me adapt this source code to 4d1 an compile it please? xD

public override void OnMapChange()
       {
           string currmap = GetDvar("mapname");

           if (currmap == "mp_radar")
           {
               g_speed_var = 265;
               jump_height_var = 245;
               fall_damage_var = 0;
               gravity_var = 800;

           }
           else if (currmap == "mp_village")
           {
               g_speed_var = 235;
               jump_height_var = 250;
               fall_damage_var = 0;
               gravity_var = 800;

           }
           else if (currmap == "mp_seatown")
           {
               g_speed_var = 235;
               jump_height_var = 260;
               fall_damage_var = 0;
               gravity_var = 800;

           }
           else if (currmap == "mp_bravo")
           {
               g_speed_var = 255;
               jump_height_var = 305;
               fall_damage_var = 0;
               gravity_var = 800;
           }
           else if (currmap == "mp_exchange")
           {
               g_speed_var = 228;
               jump_height_var = 130;
               fall_damage_var = 0;
               gravity_var = 800;
           }

           else if (currmap == "mp_underground")
           {
               g_speed_var = 255;
               jump_height_var = 255;
               fall_damage_var = 0;
               gravity_var = 800;
           }
           else if (currmap == "mp_dome")
           {
               g_speed_var = 265;
               jump_height_var = 240;
               fall_damage_var = 0;
               gravity_var = 800;
           }
           else if (currmap == "mp_paris")
           {
               g_speed_var = 257;
               jump_height_var = 265;
               fall_damage_var = 0;
               gravity_var = 800;
           }
           else if (currmap == "mp_plaza2")
           {
               g_speed_var = 230;
               jump_height_var = 210;
               fall_damage_var = 0;
               gravity_var = 800;
           }
           else if (currmap == "mp_carbon")
           {
               g_speed_var = 245;
               jump_height_var = 265;
               fall_damage_var = 0;
               gravity_var = 800;
           }
           else if (currmap == "mp_aground_ss")
           {
               g_speed_var = 245;
               jump_height_var = 310;
               fall_damage_var = 0;
               gravity_var = 800;
           }
           else if (currmap == "mp_alpha")
           {
               g_speed_var = 225;
               jump_height_var = 140;
               fall_damage_var = 0;
               gravity_var = 800;
           }
           else // if map not defined
           {
               g_speed_var = 226;
               jump_height_var = 245;
               fall_damage_var = 0;
               gravity_var = 800;

           }
           set_g_speed(g_speed_var);
           set_jump_height(jump_height_var);
           set_g_gravity(gravity_var);

           if (fall_damage_var == 0)
               disableFallDamage();
           else
               enableFallDamage();
       }

Featured Replies

Опубликовано:
Anyways it wont work in iw5m

thats why he wants help mate

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.