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: Descriptive 'Fire in the hole' [PRZERÓBKA]

Pokaż wyniki od 1 do 5 z 5
  1. #1 Descriptive 'Fire in the hole' [PRZERÓBKA] 
    Tata Neo i Taza Awatar bluSkay.aka
    Dołączył
    Apr 2008
    Posty
    4,348
    Witam, chciałbym aby ktoś mi poprawił komunikaty przy rzuconych granatach.
    HE komunikat na czerwono [UWAGA HEJDZ]
    FLASH komunikat na biało [UWAGA MLEKO]
    SMOKE komunikat na zielono [DYMIACA PALA]
    I tyle ;)
    Sam coś w kodzie .sma poprawiałem ale nic nie działa, tak więc prosze o wyrozumiałośc :)
     

  2. #2 Odp: Descriptive 'Fire in the hole' [PRZERÓBKA] 
    Adminus pospolitus
    Dołączył
    Jan 2008
    Wiek
    20
    Posty
    9,218
    Dawaj kod
    Najlepszy hosting www tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na www.naven.com.pl
    Jebać steama.
     

  3. #3 Odp: Descriptive 'Fire in the hole' [PRZERÓBKA] 
    Tata Neo i Taza Awatar bluSkay.aka
    Dołączył
    Apr 2008
    Posty
    4,348
    Kod:
    /* 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][] = {
    	" [UWAGA HEJDZ]",
    	" [UWAGA MLEKO]",
    	" [DYMIACA PALA]"
    }
    
    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 (RADIO): Fire in the hole!"
    
    new g_msgid_saytext
    new g_msgid_teaminfo
    
    public plugin_init() {
    	register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_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(msgid, dest, id) {
    	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_RADIOTYPE, arg, sizeof arg - 1)
    	if (!equal(arg, g_required_radiotype))
    		return PLUGIN_CONTINUE
    
    	get_msg_arg_string(RADIOTEXT_MSGARG_CALLERID, arg, sizeof arg - 1)
    	new caller = str_to_num(arg)
    	if (!is_user_alive(caller))
    		return PLUGIN_CONTINUE
    
    	new clip, ammo, weapon
    	weapon = get_user_weapon(caller, clip, ammo)
    	for (new i; i < sizeof 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_CALLERNAME, arg, sizeof arg - 1)
    			pos += formatex(text[pos], sizeof text - pos - 1, g_radiotext_template, arg)
    			copy(text[++pos], sizeof text - pos - 1, g_grenade_description[i])
    
    			new desccolor = g_grenade_desccolor[i]
    			if ((text[--pos] = g_color_code[desccolor]) == COLORCODE_TEAM) {
    				static teamname[12]
    				get_user_team(id, teamname, sizeof teamname - 1)
    
    				if (!equal(teamname, g_color_teamname[desccolor])) {
    					msg_teaminfo(id, g_color_teamname[desccolor])
    					msg_saytext(id, text)
    					msg_teaminfo(id, teamname)
    
    					return PLUGIN_HANDLED
    				}
    			}
    
    			msg_saytext(id, text)
    
    			return PLUGIN_HANDLED
    		}
    	}
    
    	return PLUGIN_CONTINUE
    }
    
    msg_teaminfo(id, teamname[]) {
    	message_begin(MSG_ONE, g_msgid_teaminfo, _, id)
    	write_byte(id)
    	write_string(teamname)
    	message_end()
    }
    
    msg_saytext(id, text[]) {
    	message_begin(MSG_ONE, g_msgid_saytext, _, id)
    	write_byte(id)
    	write_string(text)
    	message_end()
    }
    Tam ja małą zmiane wprowadziłem i ona nie działa, więc dalej nie kombinuje, bo hooy wie co zrobie ;)
     

  4. #4 Odp: Descriptive 'Fire in the hole' [PRZERÓBKA] 
    Adminus pospolitus
    Dołączył
    Jan 2008
    Wiek
    20
    Posty
    9,218
    Miałem na myśli działający kod.
    Najlepszy hosting www tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na www.naven.com.pl
    Jebać steama.
     

  5. #5 Odp: Descriptive 'Fire in the hole' [PRZERÓBKA] 
    Tata Neo i Taza Awatar bluSkay.aka
    Dołączył
    Apr 2008
    Posty
    4,348
    Kod:
    /* 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][] = {
    	" [explosive]",
    	" [flashbang]",
    	" [smokegren]"
    }
    
    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 (RADIO): Fire in the hole!"
    
    new g_msgid_saytext
    new g_msgid_teaminfo
    
    public plugin_init() {
    	register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_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(msgid, dest, id) {
    	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_RADIOTYPE, arg, sizeof arg - 1)
    	if (!equal(arg, g_required_radiotype))
    		return PLUGIN_CONTINUE
    
    	get_msg_arg_string(RADIOTEXT_MSGARG_CALLERID, arg, sizeof arg - 1)
    	new caller = str_to_num(arg)
    	if (!is_user_alive(caller))
    		return PLUGIN_CONTINUE
    
    	new clip, ammo, weapon
    	weapon = get_user_weapon(caller, clip, ammo)
    	for (new i; i < sizeof 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_CALLERNAME, arg, sizeof arg - 1)
    			pos += formatex(text[pos], sizeof text - pos - 1, g_radiotext_template, arg)
    			copy(text[++pos], sizeof text - pos - 1, g_grenade_description[i])
    
    			new desccolor = g_grenade_desccolor[i]
    			if ((text[--pos] = g_color_code[desccolor]) == COLORCODE_TEAM) {
    				static teamname[12]
    				get_user_team(id, teamname, sizeof teamname - 1)
    
    				if (!equal(teamname, g_color_teamname[desccolor])) {
    					msg_teaminfo(id, g_color_teamname[desccolor])
    					msg_saytext(id, text)
    					msg_teaminfo(id, teamname)
    
    					return PLUGIN_HANDLED
    				}
    			}
    
    			msg_saytext(id, text)
    
    			return PLUGIN_HANDLED
    		}
    	}
    
    	return PLUGIN_CONTINUE
    }
    
    msg_teaminfo(id, teamname[]) {
    	message_begin(MSG_ONE, g_msgid_teaminfo, _, id)
    	write_byte(id)
    	write_string(teamname)
    	message_end()
    }
    
    msg_saytext(id, text[]) {
    	message_begin(MSG_ONE, g_msgid_saytext, _, id)
    	write_byte(id)
    	write_string(text)
    	message_end()
    }
    Mała zmianka tylko była :)
     

Podobne wątki

  1. [przerobka] Przerobka stopki
    By Czookapik in forum Prośby o wykonanie grafiki
    Odpowiedzi: 1
    Ostatni post / autor: 18-05-2010, 22:10
  2. 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
  3. Problem z 'Description fire in the hole'
    By LuC@S K4nE in forum Problem z pluginem AMX/AMXX
    Odpowiedzi: 2
    Ostatni post / autor: 17-09-2009, 14:58
  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. Fire Child Born Into The Fire
    By Kazik Na Żywo in forum Gry przygodowe online
    Odpowiedzi: 0
    Ostatni post / autor: 15-05-2009, 01:26
  7. Przeróbka map z CSS do CS1.6ns
    By najox in forum Mapy do Counter Strike
    Odpowiedzi: 4
    Ostatni post / autor: 07-05-2009, 19:24
  8. 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
  9. 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
  10. Fire in the Hole
    By mosh in forum Gry strzelanki online
    Odpowiedzi: 0
    Ostatni post / autor: 06-02-2009, 16:48

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

Nikt jeszcze nie odwiedził tej strony poprzez wyszukiwarki
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
  •