Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

MultiCFG for Deathmatch Advanced


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Lots of people have been asking on how to create a MultiCFG Deathmatch server. Im not a coder so I just found an easy temp solution until someone makes a proper plugin.

How to use:
You basically need a plugin that loads Deathmatch Advanced modes on a timer. This code below will do just that. You can change the time (default 300 sec). You can also add or remove modes (default has 4 modes). If you adding/removing modes you need to change "if(chosen == 3)" to match the amount of modes you running.

The modes like "Ak Colt" is found in the deathmatch.ini file.There you can create your own modes and play arround with the messages and configs to load such as HS only for example.
You can also edit the code and use respawn instead of equip if you like that better.

You can edit the code and compile it with https://spider.limetech.io/

Requirements:
Deathmatch Goes Advanced


MultiCFG code:
Code:

#include <sourcemod>

public void OnMapStart()
{
    CreateTimer(300.0, Timer_Callback, _, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
}

chosen = 0;

public Action Timer_Callback(Handle timer)
{

    if(chosen == 0)
        ServerCommand("dm_load \"Game Modes\" \"Ak Colt\" equip");
    else if(chosen == 1)
        ServerCommand("dm_load \"Game Modes\" \"Pistols\" equip");
    else if(chosen == 2)
        ServerCommand("dm_load \"Game Modes\" \"Scout knives\" equip");
    else if(chosen == 3)
        ServerCommand("dm_load \"Game Modes\" \"SMGs\" equip");

    if(chosen == 3)
        chosen = 0;

    chosen++;
    return Plugin_Continue;
}

Example of a mode from deathmatch.ini:
Code:

        "Ak Colt"
        {
            "SectionOptions"
            {
                "AdminMenuName" "Aim/AK-Colt"
                "PlayerDisplay" "AK-Colt"
            }
           
            "Load"
            {
                "Configs" "Options Default"
                "Configs" "Only HS Disabled"
                "Configs" "Show Menu"
                "Configs" "Primary AK and M4"
                "Configs" "Secondary Aim"
                "Configs" "No Nades"
            }
           
            "Cvars"
            { 
                "dm_default_primary" "weapon_ak47"
                "dm_default_secondary" "weapon_p250"
            }
        }

Support:
Any support for how to create new modes and configs should be asked in the Deathmatch Advanced thread.

Credit for the MultiCFG code:
backwards
Sikari

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

×
×
  • Dodaj nową pozycję...