improved_join_team скиньте мне русскую версию

Тема в разделе "Общие вопросы", создана пользователем Асельдер, 1 авг 2014.

  1. Асельдер

    Асельдер

    Сообщения:
    6
    Симпатии:
    0
    Player ASELDER joined team Counter-Terrorists есть такой плагин тока на русском

    Игрок MeatballLover заходит за Ментов


    Игрок AbduL DjabaR заходит в Наблюдатели


    ?????????????

    люди помогите
     
  2. AlmazON

    AlmazON деревянный © yand3xmail

    Сообщения:
    4.505
    Симпатии:
    1.960
    Асельдер, это, что ль, видел у кого-то?
     
  3. Danyas

    Danyas Спасибо, браток © yand3xmail Модератор

    Сообщения:
    1.712
    Симпатии:
    451
    #pragma semicolon 1

    // ====[ INCLUDES ]============================================================
    #include <sourcemod>
    #include <morecolors>

    // ====[ DEFINES ]=============================================================
    #define PLUGIN_VERSION "1.3.0.2"

    // ====[ HANDLES | CVARS ]=====================================================
    new Handle:cvarEnabled;
    new Handle:cvarBots;
    new Handle:cvarTeamplay;

    // ====[ VARIABLES ]===========================================================
    new bool:g_bEnabled;
    new bool:g_bBots;
    new bool:g_bTeamplay;
    new String:g_strGame[12];

    // ====[ PLUGIN ]==============================================================
    public Plugin:myinfo =
    {
    name = "[Any] Improved Join Team Messages",
    author = "Oshizu and ReFlexPoison (Helped many times with plugin)",
    description = "Improves messages that appear when player joins team",
    version = PLUGIN_VERSION,
    url = "http://www.sourcemod.net",
    }

    // ====[ FUNCTIONS ]===========================================================
    public OnPluginStart()
    {
    CreateConVar("sm_jointeam_version", PLUGIN_VERSION, "Improved Join Team Messages Version", FCVAR_REPLICATED | FCVAR_PLUGIN | FCVAR_SPONLY | FCVAR_DONTRECORD | FCVAR_NOTIFY);

    cvarEnabled = CreateConVar("sm_jointeam_enabled", "1", "Enable Improved Join Team Messages\n0 = Disabled\n1 = Enabled", FCVAR_PLUGIN, true, 0.0, true, 1.0);
    cvarBots = CreateConVar("sm_jointeam_bots", "0", "Enable notifications of bot team changes\n0 = Disabled\n1 = Enabled", FCVAR_PLUGIN, true, 0.0, true, 1.0);
    cvarTeamplay = FindConVar("mp_teamplay");

    g_bEnabled = GetConVarBool(cvarEnabled);
    g_bBots = GetConVarBool(cvarBots);
    g_bTeamplay = GetConVarBool(cvarTeamplay);

    AutoExecConfig(true, "plugin.improvedjoinmessages");

    HookConVarChange(cvarEnabled, CVarChange);
    HookConVarChange(cvarBots, CVarChange);
    HookConVarChange(cvarTeamplay, CVarChange);

    HookEvent("player_team", Event_PlayerTeam, EventHookMode_Pre);

    GetGameFolderName(g_strGame, sizeof(g_strGame));
    }

    public CVarChange(Handle:hConvar, const String:strOldValue[], const String:strNewValue[])
    {
    if(hConvar == cvarEnabled)
    g_bEnabled = GetConVarBool(cvarEnabled);
    if(hConvar == cvarBots)
    g_bBots = GetConVarBool(cvarBots);
    if(hConvar == cvarTeamplay)
    g_bTeamplay = GetConVarBool(cvarTeamplay);
    }

    public Action:Event_PlayerTeam(Handle:hEvent, const String:strName[], bool:bDontBroadcast)
    {
    if(!g_bEnabled)
    return Plugin_Continue;

    new iClient = GetClientOfUserId(GetEventInt(hEvent, "userid"));
    if(!IsValidClient(iClient))
    return Plugin_Continue;

    if(!g_bBots && IsFakeClient(iClient))
    return Plugin_Continue;

    new iOldTeam = GetEventInt(hEvent, "oldteam");
    new iNewTeam = GetEventInt(hEvent, "team");

    SetEventBroadcast(hEvent, true);

    //Team Fortress 2
    //2 = RED (Red)
    //3 = BLU (Blue)
    if(StrEqual(g_strGame, "tf"))
    {
    switch(iOldTeam)
    {
    case 0, 1:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {gray}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {gray}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {gray}%N{default} joined team {red}RED", iClient);
    case 3: CPrintToChatAll("Player {gray}%N{default} joined team {blue}BLU", iClient);
    }
    }
    case 2:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {red}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {red}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {red}%N{default} joined team {red}RED", iClient);
    case 3: CPrintToChatAll("Player {red}%N{default} joined team {blue}BLU", iClient);
    }
    }
    case 3:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {blue}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {blue}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {blue}%N{default} joined team {red}RED", iClient);
    case 3: CPrintToChatAll("Player {blue}%N{default} joined team {blue}BLU", iClient);
    }
    }
    }
    }
    //Counter-Strike
    //2 = Terrorists (Red)
    //3 = Counter-Terrorists (Blue)
    else if(StrEqual(g_strGame, "cstrike"))
    {
    switch(iOldTeam)
    {
    case 0, 1:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Игрок {gray}%N заходит в {gray}наблюдатели", iClient);
    case 1: CPrintToChatAll("Игрок {gray}%N заходит в {gray}наблюдатели", iClient);
    case 2: CPrintToChatAll("Игрок {gray}%N{default} заходит за {red} теров", iClient);
    case 3: CPrintToChatAll("Игрок {gray}%N{default} заходит за {blue}Ментов", iClient);

    }
    }
    case 2:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {red}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {red}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {red}%N{default} joined team {red}Terrorists", iClient);
    case 3: CPrintToChatAll("Player {red}%N{default} joined team {blue}Counter-Terrorists", iClient);
    }
    }
    case 3:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {blue}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {blue}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {blue}%N{default} joined team {red}Terrorists", iClient);
    case 3: CPrintToChatAll("Player {blue}%N{default} joined team {blue}Counter-Terrorists", iClient);
    }
    }
    }
    }
    //Day of Defeat: Source
    //2 = Allies (Blue)
    //3 = Axis (Red)
    else if(StrEqual(g_strGame, "dod"))
    {
    switch(iOldTeam)
    {
    case 0, 1:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {gray}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {gray}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {gray}%N{default} joined team {allies}Allies", iClient);
    case 3: CPrintToChatAll("Player {gray}%N{default} joined team {axis}Axis", iClient);
    }
    }
    case 2:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {blue}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {blue}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {blue}%N{default} joined team {allies}Allies", iClient);
    case 3: CPrintToChatAll("Player {blue}%N{default} joined team {axis}Axis", iClient);
    }
    }
    case 3:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {red}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {red}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {red}%N{default} joined team {blue}Allies", iClient);
    case 3: CPrintToChatAll("Player {red}%N{default} joined team {red}Axis", iClient);
    }
    }
    }
    }
    //Half-Life 2: Deathmatch
    //2 = Rebels (Blue)
    //3 = Combine (Red)
    else if(StrEqual(g_strGame, "hl2mp") && g_bTeamplay)
    {
    switch(iOldTeam)
    {
    case 0, 1:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {gray}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {gray}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {gray}%N{default} joined team {blue}Combine", iClient);
    case 3: CPrintToChatAll("Player {gray}%N{default} joined team {red}Rebels", iClient);
    }
    }
    case 2:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {red}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {red}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {red}%N{default} joined team {blue}Combine", iClient);
    case 3: CPrintToChatAll("Player {red}%N{default} joined team {red}Rebels", iClient);
    }
    }
    case 3:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {blue}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {blue}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {blue}%N{default} joined team {blue}Combine", iClient);
    case 3: CPrintToChatAll("Player {blue}%N{default} joined team {red}Rebels", iClient);
    }
    }
    }
    }
    //Left 4 Dead
    //2 = Survivors (Blue)
    //3 = Infected (Red)
    else if(StrEqual(g_strGame, "left4dead"))
    {
    switch(iOldTeam)
    {
    case 0, 1:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {gray}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {gray}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {gray}%N{default} joined team {blue}Survivors", iClient);
    case 3: CPrintToChatAll("Player {gray}%N{default} joined team {red}Infected", iClient);
    }
    }
    case 2:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {blue}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {blue}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {blue}%N{default} joined team {blue}Survivors", iClient);
    case 3: CPrintToChatAll("Player {blue}%N{default} joined team {red}Infected", iClient);
    }
    }
    case 3:
    {
    switch(iNewTeam)
    {
    case 0: CPrintToChatAll("Player {red}%N joined team {gray}Unassigned", iClient);
    case 1: CPrintToChatAll("Player {red}%N{default} joined team {gray}Spectators", iClient);
    case 2: CPrintToChatAll("Player {red}%N{default} joined team {blue}Survivors", iClient);
    case 3: CPrintToChatAll("Player {red}%N{default} joined team {red}Infected", iClient);
    }
    }
    }
    }
    return Plugin_Continue;
    }

    // ====[ STOCKS ]==============================================================
    stock bool:IsValidClient(iClient, bool:bReplay = true)
    {
    if(iClient <= 0 || iClient > MaxClients || !IsClientInGame(iClient))
    return false;
    if(bReplay && (IsClientSourceTV(iClient) || IsClientReplay(iClient)))
    return false;
    return true;
    }

    Делаешь по аналогии, то что выделил уже перевел

    Добавлено через 1 минуту
    ойойой, пост AlmazON'а не увидел :(
     
    Последнее редактирование: 1 авг 2014
  4. AlmazON

    AlmazON деревянный © yand3xmail

    Сообщения:
    4.505
    Симпатии:
    1.960
    Нет, у меня другой плагин) Они похожи по своим функциям.
    Оффтоп
     
  5. Danyas

    Danyas Спасибо, браток © yand3xmail Модератор

    Сообщения:
    1.712
    Симпатии:
    451
    А, ну значит всё нормально.
    Оффтоп
     
  6. Асельдер

    Асельдер

    Сообщения:
    6
    Симпатии:
    0
    Собери да их я не умею собирать эти файлы

    Добавлено через 4 минуты
    файлы скинь

    Добавлено через 23 минуты
    ауу

    Добавлено через 36 минут
    improved_join_team такой нужен тока русский
     
    Последнее редактирование: 1 авг 2014
  7. Primo

    Primo Где мои манеры

    Сообщения:
    1.190
    Симпатии:
    306
    Оффтоп
     
    BatyaMedic и R1KO нравится это.
  8. Асельдер

    Асельдер

    Сообщения:
    6
    Симпатии:
    0
  9. KapaT

    KapaT Эгоист

    Сообщения:
    1.982
    Симпатии:
    408
    Асельдер,Тебе во втором посту скинули сылку на слово ЭТО нажми.
    Оффтоп
     
  10. artushonok

    artushonok

    Сообщения:
    961
    Симпатии:
    108
    Асельдер, что тебе не понятно?
     
  11. AlmazON

    AlmazON деревянный © yand3xmail

    Сообщения:
    4.505
    Симпатии:
    1.960
    Нет, не то конкретно, что он хотел. Оффтоп
     
  12. Асельдер

    Асельдер

    Сообщения:
    6
    Симпатии:
    0
    Игрок TAK SEBE заходит за Ментов
    Игрок (((упоратый бес!!!)) заходит за Ментов
    Игрок ЛПХ заходит за Ментов
    Игрок (((упоратый бес!!!)) заходит за Террористов
    вот такая нужна
     
  13. Danyas

    Danyas Спасибо, браток © yand3xmail Модератор

    Сообщения:
    1.712
    Симпатии:
    451
    Возьми и сделай, сказали же как
     
  14. BatyaMedic

    BatyaMedic Ньюсмейкер

    Сообщения:
    769
    Симпатии:
    123
    Оффтоп

    Добавлено через 1 минуту
    А загуглить религия не позволяет?
     
    Последнее редактирование: 6 авг 2014
  15. WindCube

    WindCube

    Сообщения:
    19
    Симпатии:
    10
    Оффтоп