UWAGA
W związku z upgrade'em Forum Wiaderko do vB 4.x ewentualne błędy i nieprawidłowości proszę zgłaszać w tym temacie
Serwery Counter Strike 1.6 wiaderko.com

HashJama [TP] 193.33.176.148:27015 status serwera HashJama [TP] połącz

HashJama [FFA] 193.33.176.188:27015status serwera HashJama [FFA] połącz

HashJama [DM] 193.33.176.53:27015status serwera HashJama [DM] połącz

HashJama [Aim Hs] 193.33.176.15:27015status serwera HashJama [Aim Hs] połącz

HashJama [Flags] 193.33.176.111:27015status serwera HashJama  [Flags] połącz

HashJama [AWP/HG DM] 193.33.176.50:27015status serwera HashJama [AWP/HG DM] 193.33.176.50:27015 połącz

HashJama [TP #2] 193.33.176.54:27015status serwera HashJama [TP #2] 193.33.176.54:27015 połącz

wiaderko.com [Ventrilo] v1.svoice.pl:6416status serwera wiaderko.com [Ventrilo]

SPONSOR:
pukawka.pl

Wątek: Problem z 'Description fire in the hole'

Pokaż wyniki od 1 do 3 z 3
  1. #1 Problem z 'Description fire in the hole' 
    Starsza lamka Awatar LuC@S K4nE
    Dołączył
    Aug 2009
    Posty
    54
    Cześć chciałbym prosić o plugin description fire in the hole 'Fire in the hole'spolszczyc na Uwaga Granat!!! a granaty na [HE] [FLESH] [SMOKE] zeby wygladalo np:tak
    Uwaga Granat!!! [HE]

    Proszil bym o skaplikowanie bo mi sie jakos nie udaje :((
     

  2. #2 Odp: Problem z 'Description fire in the hole' 
    Starsza lamka
    Dołączył
    Apr 2009
    Wiek
    19
    Posty
    96
    Kod php:
    /* AMX Mod X
    *   Descriptive 'Fire in the hole!'
    *
    * (c) Copyright 2006 by VEN
    *
    * This file is provided as is (no warranties)
    *
    *     DESCRIPTION
    *       Plugin provides additional colored text for "Fire in the hole!" radio chat message.
    *       The color and the text is different for each grenade type and can be altered.
    *       This will help teammates to get the throwed grenade type and act accordingly.
    *       Search for "EDITABLE" mark in the plugin's source code to configure text and color.
    *
    *     CREDITS
    *       Damaged Soul - colored chat text method
    *       p3tsin - team color override method
    */

    #include <amxmodx>

    #define PLUGIN_NAME "Descriptive 'Fire in the hole!'"
    #define PLUGIN_VERSION "0.1"
    #define PLUGIN_AUTHOR "VEN"

    enum grenade {
        
    GRENADE_HE,
        
    GRENADE_FLASH,
        
    GRENADE_SMOKE
    }

    // EDITABLE: grenade description
    new const g_grenade_description[_:grenade][] = {
        
    " [HE]",
        
    " [FLESH]",
        
    " [SMOKE]"
    }

    enum color {
        
    COLOR_NORMAL,
        
    COLOR_RED,
        
    COLOR_BLUE,
        
    COLOR_GRAY,
        
    COLOR_GREEN
    }

    // EDITABLE: grenade description text color
    new const g_grenade_desccolor[_:grenade] = {
        
    COLOR_RED,
        
    COLOR_GRAY,
        
    COLOR_GREEN
    }

    new const 
    g_grenade_weaponid[_:grenade] = {
        
    CSW_HEGRENADE,
        
    CSW_FLASHBANG,
        
    CSW_SMOKEGRENADE
    }

    #define COLORCODE_NORMAL 0x01
    #define COLORCODE_TEAM 0x03
    #define COLORCODE_LOCATION 0x04

    new const g_color_code[_:color] = {
        
    COLORCODE_NORMAL,
        
    COLORCODE_TEAM,
        
    COLORCODE_TEAM,
        
    COLORCODE_TEAM,
        
    COLORCODE_LOCATION
    }

    new const 
    g_color_teamname[_:color][] = {
        
    "",
        
    "TERRORIST",
        
    "CT",
        
    "SPECTATOR",
        
    ""
    }

    #define RADIOTEXT_MSGARG_NUMBER 5

    enum radiotext_msgarg {
        
    RADIOTEXT_MSGARG_PRINTDEST 1,
        
    RADIOTEXT_MSGARG_CALLERID,
        
    RADIOTEXT_MSGARG_TEXTTYPE,
        
    RADIOTEXT_MSGARG_CALLERNAME,
        
    RADIOTEXT_MSGARG_RADIOTYPE,
    }

    new const 
    g_required_radiotype[] = "#Fire_in_the_hole"
    new const g_radiotext_template[] = "%s: Uwaga Granat!!!"

    new g_msgid_saytext
    new g_msgid_teaminfo

    public plugin_init() {
        
    register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)

        
    register_message(get_user_msgid("TextMsg"), "message_text")

        
    g_msgid_saytext get_user_msgid("SayText")
        
    g_msgid_teaminfo get_user_msgid("TeamInfo")
    }

    public 
    message_text(msgiddestid) {
        if (
    get_msg_args() != RADIOTEXT_MSGARG_NUMBER || get_msg_argtype(RADIOTEXT_MSGARG_RADIOTYPE) != ARG_STRING)
            return 
    PLUGIN_CONTINUE

        
    static arg[32]
        
    get_msg_arg_string(RADIOTEXT_MSGARG_RADIOTYPEargsizeof arg 1)
        if (!
    equal(argg_required_radiotype))
            return 
    PLUGIN_CONTINUE

        get_msg_arg_string
    (RADIOTEXT_MSGARG_CALLERIDargsizeof arg 1)
        new 
    caller str_to_num(arg)
        if (!
    is_user_alive(caller))
            return 
    PLUGIN_CONTINUE

        
    new clipammoweapon
        weapon 
    get_user_weapon(callerclipammo)
        for (new 
    isizeof g_grenade_weaponid; ++i) {
            if (
    g_grenade_weaponid[i] == weapon) {
                static 
    text[192]
                new 
    pos 0
                text
    [pos++] = g_color_code[COLOR_NORMAL]

                
    get_msg_arg_string(RADIOTEXT_MSGARG_CALLERNAMEargsizeof arg 1)
                
    pos += formatex(text[pos], sizeof text pos 1g_radiotext_templatearg)
                
    copy(text[++pos], sizeof text pos 1g_grenade_description[i])

                new 
    desccolor g_grenade_desccolor[i]
                if ((
    text[--pos] = g_color_code[desccolor]) == COLORCODE_TEAM) {
                    static 
    teamname[12]
                    
    get_user_team(idteamnamesizeof teamname 1)

                    if (!
    equal(teamnameg_color_teamname[desccolor])) {
                        
    msg_teaminfo(idg_color_teamname[desccolor])
                        
    msg_saytext(idtext)
                        
    msg_teaminfo(idteamname)

                        return 
    PLUGIN_HANDLED
                    
    }
                }

                
    msg_saytext(idtext)

                return 
    PLUGIN_HANDLED
            
    }
        }

        return 
    PLUGIN_CONTINUE
    }

    msg_teaminfo(idteamname[]) {
        
    message_begin(MSG_ONEg_msgid_teaminfo_id)
        
    write_byte(id)
        
    write_string(teamname)
        
    message_end()
    }

    msg_saytext(idtext[]) {
        
    message_begin(MSG_ONEg_msgid_saytext_id)
        
    write_byte(id)
        
    write_string(text)
        
    message_end()

    Player: Uwaga Granat!!! [HE] (he na czerwono)
    Tak czy zmienić na
    Player (RADIO): Uwaga Granat!!! [HE]
    Załączone pliki
     

  3. #3 Odp: Problem z 'Description fire in the hole' 
    Starsza lamka Awatar LuC@S K4nE
    Dołączył
    Aug 2009
    Posty
    54
    WIelkie dzieki jest wszystko OK gibon leci
     

Podobne wątki

  1. [Problem] Cross Fire
    By Rikardo97 in forum Problemy techniczne z grami
    Odpowiedzi: 2
    Ostatni post / autor: 24-12-2010, 19:28
  2. Descriptive 'Fire in the hole' [PRZERÓBKA]
    By bluSkay.aka in forum Pisanie pluginów AMXX
    Odpowiedzi: 4
    Ostatni post / autor: 02-01-2010, 15:20
  3. PROBELM "Description fire in the hole"
    By LuC@S K4nE in forum Problem z pluginem AMX/AMXX
    Odpowiedzi: 3
    Ostatni post / autor: 03-12-2009, 17:06
  4. Język komendy głosowe Fire in a hole itp.
    By domis14 in forum Problemy z CS 1.6
    Odpowiedzi: 25
    Ostatni post / autor: 23-07-2009, 13:27
  5. Fire In The Hole - Zapraszam
    By doman in forum Archiwum serwerów Counter Strike 1.6 Steam i Non Steam
    Odpowiedzi: 13
    Ostatni post / autor: 18-05-2009, 20:34
  6. Wyciszenie dzwieku fire in the hole itp. ?
    By benek07 in forum Problemy z CS 1.6
    Odpowiedzi: 7
    Ostatni post / autor: 01-03-2009, 15:35
  7. Descriptive 'Fire in the hole!'
    By Mow mi 0 :** in forum Przydatne pluginy AMX i AMXX
    Odpowiedzi: 0
    Ostatni post / autor: 08-02-2009, 17:50
  8. Fire in the Hole
    By mosh in forum Gry strzelanki online
    Odpowiedzi: 0
    Ostatni post / autor: 06-02-2009, 16:48
  9. problem z friendly fire
    By Damcin in forum Problemy i konfiguracja AMXX
    Odpowiedzi: 16
    Ostatni post / autor: 29-10-2008, 20:21
  10. Problem z friendly fire
    By Koyen in forum Problemy z CS 1.6
    Odpowiedzi: 3
    Ostatni post / autor: 11-10-2008, 09:47

Odwiedzający znaleźli tę stronę szukając:

fire in the hole granat HE

cs plugin descript fire

Uprawnienia umieszczania postów
  • Nie możesz zakładać nowych tematów
  • Nie możesz pisać wiadomości
  • Nie możesz dodawać załączników
  • Nie możesz edytować swoich postów
  •