Skocz do zawartości

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

Zom info


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

#1 hajduk

    Życzliwy

  • Użytkownik

Reputacja: 2
Nowy

  • Postów:30
  • GG:
  • Lokalizacja:Wrocław
Offline

Napisano 25.03.2008 05:46

Witam.
Mam prośbę może mi ktoś pomóc edytować tego plugina bo ja już nie mam głowy :(
Siedzę nad nim już drugi dzień i nie mogę usunąć tego co zaznaczone jest na obrazku.

Dołączona grafika

Jak usunę (%.1fu) to Odleglosc jast cały czas 0.0

PROSZĘ O POMOC

Moja przeróbka:
/* AMX Mod X
*   Zoom Info
*
* (c) Copyright 2007 by VEN
*
* This file is provided as is (no warranties)
*/

// plugin's main information
#define PLUGIN_NAME "Zoom Info"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "VEN"

#include <amxmodx>
#include <fakemeta>

#define HUDMSG_X 0.02
#define HUDMSG_Y 0.7

#define SET_HUDMSG(%1,%2) set_hudmessage(%1, %2, 0, HUDMSG_X, HUDMSG_Y, 0, 0.0, 0.1, 0.0, 0.0, 4)

#define FOV_DEFAULT 90
#define FOV_ZOOM_X3 15

// ported statsx.sma distance() function
#define UNITS_TO_METERS(%1) ((%1) * 0.0254)

public plugin_init() {
	register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
	register_forward(FM_PlayerPostThink, "fwPlayerPostThink")
}

public fwPlayerPostThink(id) {
	static fov
	if ((fov = pev(id, pev_fov)) >= FOV_DEFAULT || !fov)
		return FMRES_IGNORED

	static Float:units, player
	units = get_user_aiming(id, player, _:units)
	if (!is_user_alive(player))
		SET_HUDMSG(255, 255)
	else if (get_user_team(id) == get_user_team(player))
		SET_HUDMSG(0, 255)
	else
		SET_HUDMSG(255, 0)

	show_hudmessage(id, "Zoom: x%d^nOdleglosc: %.1fm (%.1fu)", fov <= FOV_ZOOM_X3 ? 3 : 2, UNITS_TO_METERS(units), units)

	return FMRES_IGNORED
}

Orginal:
/* AMX Mod X
*   Zoom Info
*
* (c) Copyright 2007 by VEN
*
* This file is provided as is (no warranties)
*/

// plugin's main information
#define PLUGIN_NAME "Zoom Info"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "VEN"

#include <amxmodx>
#include <fakemeta>

#define HUDMSG_X 0.02
#define HUDMSG_Y 0.7

#define SET_HUDMSG(%1,%2) set_hudmessage(%1, %2, 0, HUDMSG_X, HUDMSG_Y, 0, 0.0, 0.1, 0.0, 0.0, 4)

#define FOV_DEFAULT 90
#define FOV_ZOOM_X3 15

// ported statsx.sma distance() function
#define UNITS_TO_METERS(%1) ((%1) * 0.0254)

public plugin_init() {
	register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
	register_forward(FM_PlayerPostThink, "fwPlayerPostThink")
}

public fwPlayerPostThink(id) {
	static fov
	if ((fov = pev(id, pev_fov)) >= FOV_DEFAULT || !fov)
		return FMRES_IGNORED

	static Float:units, player
	units = get_user_aiming(id, player, _:units)
	if (!is_user_alive(player))
		SET_HUDMSG(255, 255)
	else if (get_user_team(id) == get_user_team(player))
		SET_HUDMSG(0, 255)
	else
		SET_HUDMSG(255, 0)

	show_hudmessage(id, "Zoom: x%d (%ddeg)^nDistance: %.1fm (%.1fu)", fov <= FOV_ZOOM_X3 ? 3 : 2, fov, UNITS_TO_METERS(units), units)

	return FMRES_IGNORED
}

PROSZĘ O POMOC
  • +
  • -
  • 0

#2 Abes Mapper

    Repulsion Gel

  • Przyjaciel

Reputacja: 2 017
Godlike

  • Postów:7 356
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Sulejówek
Offline

Napisano 25.03.2008 06:06

Proszę:

/* AMX Mod X
*   Zoom Info
*
* (c) Copyright 2007 by VEN
*
* This file is provided as is (no warranties)
*/

// plugin's main information
#define PLUGIN_NAME "Zoom Info"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "VEN"

#include <amxmodx>
#include <fakemeta>

#define HUDMSG_X 0.02
#define HUDMSG_Y 0.7

#define SET_HUDMSG(%1,%2) set_hudmessage(%1, %2, 0, HUDMSG_X, HUDMSG_Y, 0, 0.0, 0.1, 0.0, 0.0, 4)

#define FOV_DEFAULT 90
#define FOV_ZOOM_X3 15

// ported statsx.sma distance() function
#define UNITS_TO_METERS(%1) ((%1) * 0.0254)

public plugin_init() {
    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
    register_forward(FM_PlayerPostThink, "fwPlayerPostThink")
}

public fwPlayerPostThink(id) {
    static fov
    if ((fov = pev(id, pev_fov)) >= FOV_DEFAULT || !fov)
        return FMRES_IGNORED

    static Float:units, player
    units = get_user_aiming(id, player, _:units)
    if (!is_user_alive(player))
        SET_HUDMSG(255, 255)
    else if (get_user_team(id) == get_user_team(player))
        SET_HUDMSG(0, 255)
    else
        SET_HUDMSG(255, 0)

    show_hudmessage(id, "Zoom: x%d (%ddeg)^nOdleglosc: %.1fm", fov <= FOV_ZOOM_X3 ? 3 : 2, fov, UNITS_TO_METERS(units), units)

    return FMRES_IGNORED
}


Plugin sprawdzałem u siebie, wszystko działa poprawnie :)
  • +
  • -
  • 0

#3 hajduk

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 2
Nowy

  • Postów:30
  • GG:
  • Lokalizacja:Wrocław
Offline

Napisano 25.03.2008 07:36

OK ale teraz jest 2 problem żeby zlikwidować to kolo ZOOM
Dołączona grafika
  • +
  • -
  • 0

#4 Abes Mapper

    Repulsion Gel

  • Przyjaciel

Reputacja: 2 017
Godlike

  • Postów:7 356
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Sulejówek
Offline

Napisano 25.03.2008 16:44

/* AMX Mod X

*   Zoom Info

*

* (c) Copyright 2007 by VEN

*

* This file is provided as is (no warranties)

*/



// plugin's main information

#define PLUGIN_NAME "Zoom Info"

#define PLUGIN_VERSION "0.1"

#define PLUGIN_AUTHOR "VEN"



#include <amxmodx>

#include <fakemeta>



#define HUDMSG_X 0.02

#define HUDMSG_Y 0.7



#define SET_HUDMSG(%1,%2) set_hudmessage(%1, %2, 0, HUDMSG_X, HUDMSG_Y, 0, 0.0, 0.1, 0.0, 0.0, 4)



#define FOV_DEFAULT 90

#define FOV_ZOOM_X3 15



// ported statsx.sma distance() function

#define UNITS_TO_METERS(%1) ((%1) * 0.0254)



public plugin_init() {

    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)

    register_forward(FM_PlayerPostThink, "fwPlayerPostThink")

}



public fwPlayerPostThink(id) {

    static fov

    if ((fov = pev(id, pev_fov)) >= FOV_DEFAULT || !fov)

        return FMRES_IGNORED



    static Float:units, player

    units = get_user_aiming(id, player, _:units)

    if (!is_user_alive(player))

        SET_HUDMSG(255, 255)

    else if (get_user_team(id) == get_user_team(player))

        SET_HUDMSG(0, 255)

    else

        SET_HUDMSG(255, 0)



    show_hudmessage(id, "Zoom: x%d^nOdleglosc: %.1fm", fov <= FOV_ZOOM_X3 ? 3 : 2, fov, UNITS_TO_METERS(units), units)



    return FMRES_IGNORED

}

  • +
  • -
  • 0

#5 hajduk

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 2
Nowy

  • Postów:30
  • GG:
  • Lokalizacja:Wrocław
Offline

Napisano 25.03.2008 17:16

Abes_Ziomal chyba coś źle poszło bo pokazuje w odległości 0.0
Dołączona grafika
  • +
  • -
  • 0

#6 Abes Mapper

    Repulsion Gel

  • Przyjaciel

Reputacja: 2 017
Godlike

  • Postów:7 356
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Sulejówek
Offline

Napisano 26.03.2008 06:30

To raczej musi być. Możesz zmienić lub skasować napis "deg"

Po prostu musi być jedno w nawiasach. Wybieraj, albo tam gdzie jest zoom albo tam gdzie jest odległość :P
  • +
  • -
  • 0

#7 hajduk

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 2
Nowy

  • Postów:30
  • GG:
  • Lokalizacja:Wrocław
Offline

Napisano 26.03.2008 06:49

wybieram tam gdzie zoom mniej wkurzająca xD
Mam jeszcze 1 pytanko ściągnąłem tego plugin KLIK
W i nim jest taki dźwięk jak ktoś się dołącza takie bip i to mnie denerwuje darady to jakoś usunąć
  • +
  • -
  • 0

#8 Abes Mapper

    Repulsion Gel

  • Przyjaciel

Reputacja: 2 017
Godlike

  • Postów:7 356
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Sulejówek
Offline

Napisano 26.03.2008 15:56

Proszę:
http://www.speedysha.../804289659.html

Bez dźwięku
  • +
  • -
  • 0




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

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