• Регистрация на форуме отключена.
    Она будет открываться первого числа каждого месяца на 24 часа.

    Если необходимо - пишите админу группы Dev-CS в Telegram-чате.
Иконка ресурса

ReDeathrun 0.0.2

Нет прав для скачивания
Сообщения
1,174
Реакции
954
Предупреждения
10
Помог
9 раз(а)
If you are trying to leverage opportunities of engine and GameDLL, do it wisely.
Код:
public plugin_precache() {
    new const szRemoveEntities[][] = {
        "func_bomb_target", "func_escapezone", "func_hostage_rescue", "func_vip_safetyzone", "info_vip_start",
        "hostage_entity", "info_bomb_target", "info_hostage_rescue", "monster_scientist"
    };

    g_tRemoveEntities = TrieCreate();

    for(new i = 0; i < sizeof(szRemoveEntities); i++) {
        TrieSetCell(g_tRemoveEntities, szRemoveEntities[i], i);
    }

    g_iForwardSpawn = register_forward(FM_Spawn, "@FM_Spawn_Pre", ._post = false);
}
The code under spoiler is not needed, since everything can be turned off by ReGameDLL.
Part of entitis can be blocked without deleting or using spawn hook.
31 Янв 2021
The same goes for this too:
Код:
/* *amxmodx* */
@AmxmodxHooks() {
    register_clcmd("jointeam", "@clcmd_jointeam");
    register_clcmd("chooseteam", "@clcmd_jointeam");
}
Use opportunities of gamedll. There are enough examples.
 
Сообщения
278
Реакции
136
The code under spoiler is not needed, since everything can be turned off by ReGameDLL.
Part of entitis can be blocked without deleting or using spawn hook.
When I looked at the current plugins written on Reapi, I saw that they deleted them this way and I did this. I don't know how to delete it, but I will investigate. Thanks.
 
Сообщения
1,174
Реакции
954
Предупреждения
10
Помог
9 раз(а)
Сообщения
278
Реакции
136
and copy paste u got 'deathrun' mod. Why this better deathrun mod by mistrick? - Nothing
I tell by giving an example from myself, I do not use existing lots of plugins in deathrun mode. And I have to constantly edit the plugin. That's why I reduced it to a simple state. It may not be better, but it is not bad either. I don't make money by sharing plugins, my only goal is to share plugins that people can use easily. I am also doing this. I do not care about whatever you say.
 
Сообщения
483
Реакции
895
Помог
14 раз(а)
What would be with spectators?
 
Сообщения
278
Реакции
136
What would be with spectators?
I do not think that people love being spectators and watching them that how lovely bunny hop. That's why I do not support spectator but respawn.

+
But anyone who wants can also install the life plugin and set the spawn limits of people or I directly recommend them to use [1.1.4 (fix archive)] [Core + Modes] Deathrun Mod | Dev-CS.ru (dev-cs.ru). This mod is not better than that mod. It is just simpler.
 
Сообщения
31
Реакции
4
Код:
// before
get_players(iPlayers, iNum);
pNextTerrorist = iPlayers[random(iNum)];

////after. bots fix.
get_players(iPlayers, iNum,"ach");
pNextTerrorist = iPlayers[random(iNum)];

// fixed

@CSGameRules_RestartRound_Pre() {
    if(!get_member_game(m_bGameStarted)) {
        return;
    }

    if(!is_user_connected(pNextTerrorist)) {
        new iPlayers[32], iNum;
        get_players(iPlayers, iNum,"ach");
        pNextTerrorist = iPlayers[random(iNum)];

        client_print_color(0, print_team_red, "%L", LANG_PLAYER, "REDEATHRUN_NEXT_TERRORIST", pNextTerrorist);
    }

    for(new pPlayer = 1; pPlayer <= MaxClients; pPlayer++) {
        if(!is_user_alive(pPlayer) || !is_user_bot(pPlayer) || pPlayer == pNextTerrorist) {
            continue;
        }

        rg_set_user_team(pPlayer, TEAM_CT);
    }
    rg_set_user_team(pNextTerrorist, TEAM_TERRORIST);
}
 

Вложения

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу