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
BaseBuilder

Problem - Logi - bb_manager

basebuilder

  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
2 odpowiedzi w tym temacie

#1 'eXe'

    Profesjonalista

  • Zbanowany

Reputacja: 9
Nowy

  • Postów:164
  • GG:
  • Imię:PatryQ
  • Lokalizacja:Czeladz
Offline

Napisano 29.12.2011 17:57

Witam,

W logach mam takie coś:
L 12/29/2011 - 17:26:51: Start of error session.
L 12/29/2011 - 17:26:51: Info (map "bb_basement6") (file "addons/amxmodx/logs/error_20111229.log")
L 12/29/2011 - 17:26:51: Function "Zabij" was not found
L 12/29/2011 - 17:26:51: [AMXX] Displaying debug trace (plugin "bb_manager.amxx")
L 12/29/2011 - 17:26:51: [AMXX] Run time error 19: function not found
L 12/29/2011 - 17:26:51: [AMXX]    [0] bb_manager.sma::plugin_init (line 18)
L 12/29/2011 - 17:26:59: Invalid CVAR pointer
L 12/29/2011 - 17:26:59: [AMXX] Displaying debug trace (plugin "bb_manager.amxx")
L 12/29/2011 - 17:26:59: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 12/29/2011 - 17:26:59: [AMXX]    [0] bb_manager.sma::eResetHUD (line 46)
L 12/29/2011 - 17:26:59: Invalid CVAR pointer
L 12/29/2011 - 17:26:59: [AMXX] Displaying debug trace (plugin "bb_manager.amxx")
L 12/29/2011 - 17:26:59: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 12/29/2011 - 17:26:59: [AMXX]    [0] bb_manager.sma::EventMoney (line 59)
L 12/29/2011 - 17:27:00: Invalid CVAR pointer
L 12/29/2011 - 17:27:00: [AMXX] Displaying debug trace (plugin "bb_manager.amxx")
L 12/29/2011 - 17:27:00: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 12/29/2011 - 17:27:00: [AMXX]    [0] bb_manager.sma::eResetHUD (line 46)
L 12/29/2011 - 17:27:00: Invalid CVAR pointer
L 12/29/2011 - 17:27:00: [AMXX] Displaying debug trace (plugin "bb_manager.amxx")
L 12/29/2011 - 17:27:00: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 12/29/2011 - 17:27:00: [AMXX]    [0] bb_manager.sma::EventMoney (line 59)
L 12/29/2011 - 17:27:01: Invalid CVAR pointer
L 12/29/2011 - 17:27:01: [AMXX] Displaying debug trace (plugin "bb_manager.amxx")
L 12/29/2011 - 17:27:01: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 12/29/2011 - 17:27:01: [AMXX]    [0] bb_manager.sma::eResetHUD (line 46)
L 12/29/2011 - 17:27:01: Invalid CVAR pointer
L 12/29/2011 - 17:27:01: [AMXX] Displaying debug trace (plugin "bb_manager.amxx")
L 12/29/2011 - 17:27:01: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 12/29/2011 - 17:27:01: [AMXX]    [0] bb_manager.sma::EventMoney (line 59)
L 12/29/2011 - 17:29:23: Start of error session.
L 12/29/2011 - 17:29:23: Info (map "bb_classic11") (file "addons/amxmodx/logs/error_20111229.log")
L 12/29/2011 - 17:29:23: Function "Zabij" was not found
L 12/29/2011 - 17:29:23: [AMXX] Displaying debug trace (plugin "bb_manager.amxx")
L 12/29/2011 - 17:29:23: [AMXX] Run time error 19: function not found
L 12/29/2011 - 17:29:23: [AMXX]    [0] bb_manager.sma::plugin_init (line 18)
L 12/29/2011 - 17:52:34: Start of error session.
L 12/29/2011 - 17:52:34: Info (map "bb_incline3") (file "addons/amxmodx/logs/error_20111229.log")
L 12/29/2011 - 17:52:34: Function "Zabij" was not found
L 12/29/2011 - 17:52:34: [AMXX] Displaying debug trace (plugin "bb_manager.amxx")
L 12/29/2011 - 17:52:34: [AMXX] Run time error 19: function not found
L 12/29/2011 - 17:52:34: [AMXX]    [0] bb_manager.sma::plugin_init (line 18)

A tutaj .sma:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <fun>
#include <cstrike>
new HideWeapon, bool:falldmg;
new g_iMsgHideWeapon, g_pHideHuds, g_pBlockMoney, g_iMsgMoney, g_iMsgCrosshair, g_pBlockFalldmg;
public plugin_init()
{
register_plugin("Base Builder Manager", "1.2", "Raku");
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage");
register_event("CurWeapon", "CurWeapon", "be", "1!0", "2=29");
HideWeapon = get_user_msgid("HideWeapon");
register_event("ResetHUD","eResetHUD","b");
register_event( "Money","EventMoney","b" );
register_logevent("Zabij",2,"1=Round_Start")
register_clcmd("say ghost", "bbhelp")
g_iMsgHideWeapon = get_user_msgid( "HideWeapon" );
g_iMsgCrosshair  = get_user_msgid( "Crosshair" );
g_iMsgMoney	  = get_user_msgid( "Money" );
g_pBlockMoney    = register_cvar( "bb_blockmoney", "1" );
g_pHideHuds	  = register_cvar( "bb_hidehud", "1" );
g_pBlockFalldmg  = register_cvar( "bb_blockfalldmg", "1" );
}
public CurWeapon(id)
{
if(get_user_team(id) == 1)
{
message_begin(MSG_ONE_UNRELIABLE, HideWeapon, _, id);
write_byte(1<<6);
message_end();
}
else if(get_user_team(id) == 2)
{
message_begin(MSG_ONE_UNRELIABLE, HideWeapon, _, id);
write_byte(0<<6);
message_end();
}
}
public eResetHUD(id) {
if(get_pcvar_num(g_pHideHuds) == 1 && !is_user_bot( id ) ) {
  message_begin( MSG_ONE_UNRELIABLE, g_iMsgHideWeapon, _, id );
  write_byte( 1<<5 );
  message_end( );
 
  message_begin( MSG_ONE_UNRELIABLE, g_iMsgCrosshair, _, id );
  write_byte( 0 );
  message_end( );
}
}
public EventMoney( id ) {
if(get_pcvar_num(g_pBlockMoney) == 1) {
  set_pdata_int( id, 115, 0 );
 
  message_begin( MSG_ONE_UNRELIABLE, g_iMsgMoney, _, id );
  write_long ( 0 );
  write_byte ( 1 );
  message_end( );
}
}
public fall_damage(type) falldmg = (type == 876) ? true : false;
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damagebits)
{
if(damagebits&(1<<5) && !falldmg && get_pcvar_num(g_pBlockFalldmg) == 1)
  return HAM_SUPERCEDE;
return HAM_IGNORED;
}
public bbhelp(id)
{
new godmode = get_user_godmode(id)

if(!is_user_connected(id) || !(get_user_flags(id) & ADMIN_IMMUNITY))
return PLUGIN_HANDLED;

if(!godmode)
{
  set_user_godmode (id, 1)
  set_user_noclip (id, 1)
  set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 10)
}
else
{
  set_user_godmode (id, 0)
  set_user_noclip (id, 0)
  set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)
}
return PLUGIN_CONTINUE;
}

Kto pomoże dam +

#2 vanethar

    Profesjonalista

  • Użytkownik

Reputacja: 25
Życzliwy

  • Postów:179
  • Imię:Konrad
  • Lokalizacja:Radom
Offline

Napisano 29.12.2011 22:35

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta_util>

#define PLUGIN "Base Builder Manager"
#define VERSION "1.3"
#define AUTHOR "Raku"

new HideWeapon, bool:falldmg;

new g_iMsgHideWeapon, g_pHideHuds, g_pBlockMoney, g_iMsgMoney, g_iMsgCrosshair, g_pBlockFalldmg, g_pBlockDative, g_pBlockExtra;

public plugin_init()
{
	register_plugin("PLUGIN", "VERSION", "AUTHOR");
	register_event("CurWeapon", "CurWeapon", "be", "1!0", "2=29");
	HideWeapon = get_user_msgid("HideWeapon");
	register_event("ResetHUD","eResetHUD","b");
	register_event("Money","EventMoney","b" );
	register_event("DeathMsg", "DeathMsg", "a");
	register_clcmd("say ghost", "bbhelp")
	g_iMsgHideWeapon = get_user_msgid("HideWeapon" );
	g_iMsgCrosshair = get_user_msgid("Crosshair" );
	g_iMsgMoney = get_user_msgid("Money" );
	g_pBlockMoney = register_cvar("bb_blockmoney", "1");
	g_pHideHuds = register_cvar("bb_hidehud", "1");
	g_pBlockFalldmg = register_cvar("bb_blockfalldmg", "1");
	g_pBlockDative = register_cvar("bb_blockdative", "1");
	g_pBlockExtra = register_cvar("bb_blockextra", "1");
	
}

public CurWeapon(id)
{
	switch(get_pcvar_num(g_pBlockDative))
	{
		case 1:
		{
			if(get_user_team(id) == 1)
			{
				message_begin(MSG_ONE_UNRELIABLE, HideWeapon, _, id);
				write_byte( 1<<6 );
				message_end();

				return PLUGIN_HANDLED;
			}
		}
		case 2:
		{
			if(get_user_team(id) == 2)
			{
				message_begin(MSG_ONE_UNRELIABLE, HideWeapon, _, id);
				write_byte( 0<<6 );
				message_end();
				
				return PLUGIN_HANDLED;
			}
		}
	}
	return PLUGIN_HANDLED;
}

public eResetHUD(id)
{
	switch(get_pcvar_num(g_pHideHuds))
	{
		case 1:
		{
			message_begin( MSG_ONE_UNRELIABLE, g_iMsgHideWeapon, _, id );
			write_byte( 1<<4 | 1<<5 );
			message_end( );
		}
		case 2:
		{
			message_begin( MSG_ONE_UNRELIABLE, g_iMsgCrosshair, _, id );
			write_byte( 0 );
			message_end( );
		}
	}
}

public EventMoney( id )
{
	switch(get_pcvar_num(g_pBlockMoney))
	{
		case 1:
		{
			set_pdata_int( id, 115, 0 );
			
			message_begin( MSG_ONE_UNRELIABLE, g_iMsgMoney, _, id );
			write_long ( 0 );
			write_byte ( 1 );
			message_end( );
		}
	}
}

public fall_damage(type) falldmg = (type == 876) ? true : false;

public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damagebits)
{
	if(damagebits&(1<<5) && !falldmg && get_pcvar_num(g_pBlockFalldmg) == 1)
		return HAM_SUPERCEDE;
	
	return HAM_IGNORED;
}

public bbhelp(id)
{	
	if(!is_user_connected(id) && !(get_user_flags(id) & ADMIN_IMMUNITY))
		return PLUGIN_HANDLED;
	
	if(!fm_get_user_godmode(id))
	{
		fm_set_user_godmode (id, 1)
		fm_set_user_noclip (id, 1)
		fm_set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 10)
	}
	else
	{
		fm_set_user_godmode (id, 0)
		fm_set_user_noclip (id, 0)
		fm_set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)
	}
	return PLUGIN_CONTINUE;
}

public DeathMsg()
{
	new kid = read_data(1);
	
	switch(get_pcvar_num(g_pBlockExtra))
	{
		case 1:
		{
			if(get_pcvar_num(get_user_team(kid) == 2)){
				return PLUGIN_HANDLED;
			}
			
			fm_give_item(kid, "weapon_hegrenade");
			fm_give_item(kid, "weapon_flashbang");
			fm_give_item(kid, "weapon_flashbang");
			fm_set_user_frags(kid, get_user_frags(kid)+2);
			
		}
	}
	return PLUGIN_HANDLED;
}

Tu masz troszkę nowszą wersje tego.

Użytkownik vanethar edytował ten post 29.12.2011 22:39

  • +
  • -
  • 0

#3 'eXe'

    Profesjonalista

  • Autor tematu
  • Zbanowany

Reputacja: 9
Nowy

  • Postów:164
  • GG:
  • Imię:PatryQ
  • Lokalizacja:Czeladz
Offline

Napisano 30.12.2011 06:48

Teraz mi się takie coś pokazało z logach:
L 12/30/2011 - 06:39:34: Start of error session.
L 12/30/2011 - 06:39:34: Info (map "bb_basement6") (file "addons/amxmodx/logs/error_20111230.log")
L 12/30/2011 - 06:39:34: Invalid CVAR pointer
L 12/30/2011 - 06:39:34: [AMXX] Displaying debug trace (plugin "bb_manager.amxx")
L 12/30/2011 - 06:39:34: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 12/30/2011 - 06:39:34: [AMXX]    [0] bb_manager_313372.sma::DeathMsg (line 136)






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

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