Поиск Working AWP-Limit Plugin

Сообщения
132
Реакции
35
heyho,
using this amxx-plugin to limit one AWP to the Losing-Team - the Winning-Team isnt allowed to buy AWP at all.
but some players buy a second AWP and sometimes even the winning-team has AWP :/
i'm searching for a working AWP-Limit Plugin.
 
Сообщения
132
Реакции
35
thank you, but it seems that this plugin does not limit the AWP based on the winspread.
 
Сообщения
2,751
Реакции
3,017
Помог
61 раз(а)
C++:
if (winspread_awp)
    {
        if (team == 2)
            score_dif = ctscore - tscore
        else if (team == 1)
            score_dif = tscore - ctscore

        if (score_dif >= winspread_awp)
        {
            client_print(id,print_center,"You are on the winning team and cannot use AWP's (ScDif:%d, WsAWP:%d).", score_dif, winspread_awp)
            return PLUGIN_HANDLED
        }
    }
 
Сообщения
2,751
Реакции
3,017
Помог
61 раз(а)
Код:
#tryinclude "reapi.inc"

#if !defined _reapi_included
  #include "fakemeta.inc"
#endif

static GetWinsDiff() {
#if defined _reapi_included
  return abs(get_game_member(m_iNumTerroristWins) - get_game_member(m_iNumCTWins))
#else
  return abs(get_gamerules_int("CHalfLifeMultiplay", "m_iNumTerroristWins") - get_gamerules_int("CHalfLifeMultiplay", "m_iNumCTWins"))
#endif
}
 
Сообщения
66
Реакции
43
SergeyShorokhov, очень хотелось бы узнать какая именно команда проигрывает за счет разницы в счете
Код:
const WIN_DIFF = 20;

stock TeamName:rg_get_team_losers(&diff = 0)
{
    diff = get_member_game(m_iNumTerroristWins) - get_member_game(m_iNumCTWins);
   
    return abs(diff) < WIN_DIFF ? TEAM_UNASSIGNED : diff ? TEAM_CT : TEAM_TERRORIST;
}
 
Сообщения
2,751
Реакции
3,017
Помог
61 раз(а)
Impossible, код не правильный. Отрицательное значение в представлении булевом - положительное

Код:
new var1 = -3
if(var1)
  server_print("хобана")
 
Последнее редактирование:
Сообщения
132
Реакции
35
..........................
C++:
if (winspread_awp)
    {
        if (team == 2)
            score_dif = ctscore - tscore
        else if (team == 1)
            score_dif = tscore - ctscore

        if (score_dif >= winspread_awp)
        {
            client_print(id,print_center,"You are on the winning team and cannot use AWP's (ScDif:%d, WsAWP:%d).", score_dif, winspread_awp)
            return PLUGIN_HANDLED
        }
    }
This seems to be the relevant part from the snipermit-plugin from amxmodx.

Код:
#tryinclude "reapi.inc"

#if !defined _reapi_included
  #include "fakemeta.inc"
#endif

static GetWinsDiff() {
#if defined _reapi_included
  return abs(get_game_member(m_iNumTerroristWins) - get_game_member(m_iNumCTWins))
#else
  return abs(get_gamerules_int("CHalfLifeMultiplay", "m_iNumTerroristWins") - get_gamerules_int("CHalfLifeMultiplay", "m_iNumCTWins"))
#endif
}
But whats this?
Where do i need to put this Snippet to?
Sorry, but i know nothing about coding :/
 
Последнее редактирование:

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

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