Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.

  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Nóż nie rani


  • Zamknięty Temat jest zamknięty
7 odpowiedzi w tym temacie

#1 bakul. <3

    Wszechmogący

  • Użytkownik

Reputacja: 88
Zaawansowany

  • Postów:612
  • GG:
  • Imię:Przemek
  • Lokalizacja:Warszawa
Offline

Napisano 17.11.2009 19:02

Szukam pluginu, który po uderzeniu nożem przeciwnika nie będzie mu zabierał HP.
  • +
  • -
  • 0

#2 DarkGL

    Nie oddam ciasteczka !

  • Administrator

Reputacja: 6034
Godlike

  • Postów:10832
  • GG:
  • Steam:steam
  • Imię:Rafał
  • Lokalizacja:Warszawa
Offline

Napisano 17.11.2009 19:28

/* Plugin generated by AMXX-Studio */



#include <amxmodx>

#include <amxmisc>

#include <hamsandwich>



#define PLUGIN "New Plug-In"

#define VERSION "1.0"

#define AUTHOR "Home"





public plugin_init() {

	register_plugin(PLUGIN, VERSION, AUTHOR)

	RegisterHam(Ham_TakeDamage, "player","fwTakeDamage",0); 

}



public fwTakeDamage(this, idinflictor, idattacker, Float:damage, damagebits){ 

	if(get_user_weapon(idattacker) == CSW_KNIFE)

	{

		SetHamParamFloat(4, 150.0);

		

	}

	return HAM_IGNORED; 

}

  • +
  • -
  • 0

#3 bakul. <3

    Wszechmogący

  • Autor tematu
  • Użytkownik

Reputacja: 88
Zaawansowany

  • Postów:612
  • GG:
  • Imię:Przemek
  • Lokalizacja:Warszawa
Offline

Napisano 17.11.2009 20:47

Wywala errory i nie działa

L 11/17/2009 - 18:20:26: Start of error session.
L 11/17/2009 - 18:20:26: Info (map "aim_mp5") (file "addons/amxmodx/logs/error_20091117.log")
L 11/17/2009 - 18:20:26: [AMXX] Plugin file open error (plugin "Allow_round_finish.amxx")
L 11/17/2009 - 19:43:48: Start of error session.
L 11/17/2009 - 19:43:48: Info (map "aim_assault") (file "addons/amxmodx/logs/error_20091117.log")
L 11/17/2009 - 19:43:48: Invalid player id 0
L 11/17/2009 - 19:43:48: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:43:48: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:44:00: Invalid player id 0
L 11/17/2009 - 19:44:00: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:44:00: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:44:00: Invalid player id 0
L 11/17/2009 - 19:44:00: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:44:00: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:44:01: Invalid player id 0
L 11/17/2009 - 19:44:01: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:44:01: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:44:19: Invalid player id 0
L 11/17/2009 - 19:44:19: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:44:19: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:44:49: Invalid player id 0
L 11/17/2009 - 19:44:49: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:44:49: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:45:04: Invalid player id 0
L 11/17/2009 - 19:45:04: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:45:04: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:45:15: Invalid player id 0
L 11/17/2009 - 19:45:15: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:45:15: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:45:16: Invalid player id 0
L 11/17/2009 - 19:45:16: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:45:16: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:45:25: Invalid player id 0
L 11/17/2009 - 19:45:25: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:45:25: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:45:29: Invalid player id 0
L 11/17/2009 - 19:45:29: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:45:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:45:58: Invalid player id 0
L 11/17/2009 - 19:45:58: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:45:58: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:45:59: Invalid player id 0
L 11/17/2009 - 19:45:59: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:45:59: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:46:01: Invalid player id 0
L 11/17/2009 - 19:46:01: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:46:01: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:46:01: Invalid player id 0
L 11/17/2009 - 19:46:01: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:46:01: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:46:01: Invalid player id 0
L 11/17/2009 - 19:46:01: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:46:01: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:46:51: Invalid player id 0
L 11/17/2009 - 19:46:51: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:46:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:47:01: Invalid player id 0
L 11/17/2009 - 19:47:01: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:47:01: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:47:37: Invalid player id 0
L 11/17/2009 - 19:47:37: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:47:37: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:47:40: Invalid player id 0
L 11/17/2009 - 19:47:40: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:47:40: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:47:41: Invalid player id 0
L 11/17/2009 - 19:47:41: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:47:41: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:48:03: Invalid player id 0
L 11/17/2009 - 19:48:03: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:48:03: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:48:28: Invalid player id 0
L 11/17/2009 - 19:48:28: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:48:28: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:48:52: Invalid player id 0
L 11/17/2009 - 19:48:52: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:48:52: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:49:30: Invalid player id 0
L 11/17/2009 - 19:49:30: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:49:30: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:49:37: Invalid player id 0
L 11/17/2009 - 19:49:37: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:49:37: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:50:25: Invalid player id 0
L 11/17/2009 - 19:50:25: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:50:25: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:51:46: Invalid player id 0
L 11/17/2009 - 19:51:46: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:51:46: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:52:58: Invalid player id 0
L 11/17/2009 - 19:52:58: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!
L 11/17/2009 - 19:52:58: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/17/2009 - 19:53:06: Invalid player id 0
L 11/17/2009 - 19:53:06: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!


  • +
  • -
  • 0

#4 zer0.

    Godlike

  • Przyjaciel

Reputacja: 428
Wszechobecny

  • Postów:2116
  • Steam:steam
  • Lokalizacja:Kw
Offline

Napisano 17.11.2009 21:11

L 11/17/2009 - 18:20:26: [AMXX] Plugin file open error (plugin "Allow_round_finish.amxx")

Nie wrzuciłeś .amxx do /plugins

L 11/17/2009 - 19:53:06: [AMXX] Run time error 10 (plugin "kosa.amxx") (native "get_user_weapon") - debug not enabled!

Dopisz debug do kosa.amxx w plugins.ini
kosa.amxx debug
  • +
  • -
  • 0

#5 Mr. Pawlak

    Wygrałeś talon na kurwę i balon

  • Power User

Reputacja: 936
Master

  • Postów:1668
  • GG:
  • Lokalizacja:Mongolia
Offline

Napisano 17.11.2009 21:33

Jak nie działa czytaj to :D

http://amxx.pl/topic... ... htm#102858 ;)
  • +
  • -
  • 0

#6 Vertricus

    Godlike

  • Przyjaciel

Reputacja: 426
Wszechobecny

  • Postów:1549
  • Lokalizacja:.
Offline

Napisano 17.11.2009 21:38

/* Plugin generated by AMXX-Studio */ 

#include <amxmodx> 
#include <amxmisc> 
#include <hamsandwich> 

#define PLUGIN "Knife Dmg Block" 
#define VERSION "1.0" 
#define AUTHOR "Vertricus" 
new g_iMaxPlayers; 

public plugin_init() { 
	register_plugin(PLUGIN, VERSION, AUTHOR) 
	RegisterHam( Ham_TakeDamage , "player" , "fw_HamTakeDamage" ); 
	g_iMaxPlayers = get_maxplayers(); 
}
public fw_HamTakeDamage( id , idInflictor , attacker_id , Float:obrazenia  , damagebits ) 
{
	if ( !( 1 <= attacker_id <= g_iMaxPlayers ) ) 
		return HAM_IGNORED;
		
	new weapon;
	weapon = get_user_weapon(attacker_id)
	if (weapon == CSW_KNIFE) return HAM_SUPERCEDE;
	return HAM_IGNORED
}

@Pawlak był pierwszy jego działa moje pisane na szybko więc no sprawdzić zawsze możesz ;)
  • +
  • -
  • 0

#7 bakul. <3

    Wszechmogący

  • Autor tematu
  • Użytkownik

Reputacja: 88
Zaawansowany

  • Postów:612
  • GG:
  • Imię:Przemek
  • Lokalizacja:Warszawa
Offline

Napisano 18.11.2009 17:54

Jak nie działa czytaj to :D

http://amxx.pl/topic... ... htm#102858 ;)


Wgrałem ten plugin, bo myślałem, że będzie najlepiej działał, ale wywala błąd po debugowaniu.
L 11/18/2009 - 17:47:17: Invalid player id 0
L 11/18/2009 - 17:47:17: [AMXX] Displaying debug trace (plugin "knife.amxx")
L 11/18/2009 - 17:47:17: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 11/18/2009 - 17:47:17: [AMXX]    [0] textlByiAC.sma::hook_TakeDamage (line 19)
L 11/18/2009 - 17:47:52: Invalid player id 0
L 11/18/2009 - 17:47:52: [AMXX] Displaying debug trace (plugin "knife.amxx")
L 11/18/2009 - 17:47:52: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 11/18/2009 - 17:47:52: [AMXX]    [0] textlByiAC.sma::hook_TakeDamage (line 19)
L 11/18/2009 - 17:48:37: Invalid player id 0
L 11/18/2009 - 17:48:37: [AMXX] Displaying debug trace (plugin "knife.amxx")
L 11/18/2009 - 17:48:37: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 11/18/2009 - 17:48:37: [AMXX]    [0] textlByiAC.sma::hook_TakeDamage (line 19)
L 11/18/2009 - 17:49:21: Invalid player id 0
L 11/18/2009 - 17:49:21: [AMXX] Displaying debug trace (plugin "knife.amxx")
L 11/18/2009 - 17:49:21: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 11/18/2009 - 17:49:21: [AMXX]    [0] textlByiAC.sma::hook_TakeDamage (line 19)

  • +
  • -
  • 0

#8 mgr inż. Pavulon

    C35H60Br2N2O4

  • Przyjaciel

Reputacja: 1725
Godlike

  • Postów:6881
  • Steam:steam
  • Imię:Konrad
  • Lokalizacja:Koniecpol
Offline

Napisano 18.11.2009 17:58

Wgrałem ten plugin, bo myślałem, że będzie najlepiej działał, ale wywala błąd po debugowaniu.
Kod:

L 11/18/2009 - 17:47:17: Invalid player id 0
L 11/18/2009 - 17:47:17: [AMXX] Displaying debug trace (plugin "knife.amxx")
L 11/18/2009 - 17:47:17: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 11/18/2009 - 17:47:17: [AMXX] [0] textlByiAC.sma::hook_TakeDamage (line 19)
L 11/18/2009 - 17:47:52: Invalid player id 0
L 11/18/2009 - 17:47:52: [AMXX] Displaying debug trace (plugin "knife.amxx")
L 11/18/2009 - 17:47:52: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 11/18/2009 - 17:47:52: [AMXX] [0] textlByiAC.sma::hook_TakeDamage (line 19)
L 11/18/2009 - 17:48:37: Invalid player id 0
L 11/18/2009 - 17:48:37: [AMXX] Displaying debug trace (plugin "knife.amxx")
L 11/18/2009 - 17:48:37: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 11/18/2009 - 17:48:37: [AMXX] [0] textlByiAC.sma::hook_TakeDamage (line 19)
L 11/18/2009 - 17:49:21: Invalid player id 0
L 11/18/2009 - 17:49:21: [AMXX] Displaying debug trace (plugin "knife.amxx")
L 11/18/2009 - 17:49:21: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 11/18/2009 - 17:49:21: [AMXX] [0] textlByiAC.sma::hook_TakeDamage (line 19)

Użyj kodu który dał ci Vertricus, bo tamten nie ma sprawdzania czy obrażenia zadał gracz i stąd masz błąd.
  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych