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

[ROZWIĄZANE] Pokazywanie danych o graczu w konsoli


Najlepsza odpowiedź speedkill, 25.01.2014 11:13


 

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "speedkill"

new g_PlayerName[33][64],
	g_PlayerAddress[33][32],
	g_PlayerAuthID[33][32],
	g_MaxPlayers;
	
new bool:g_SteamPlayer[33];

new const g_SteamMessage[][]={
	"NON STEAM",
	"STEAM"
};

public plugin_init(){
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_clcmd("amx_ip", "ShowInformations");
}

public plugin_cfg(){
	g_MaxPlayers = get_maxplayers();
}

public client_authorized(id){
	if(is_real_user(id)){
		get_user_name(id, g_PlayerName[id], charsmax(g_PlayerName[]));
		get_user_ip(id, g_PlayerAddress[id], charsmax(g_PlayerAddress[]));
		get_user_authid(id, g_PlayerAuthID[id], charsmax(g_PlayerAuthID[]));
		
		if(is_user_steam(id)){
			g_SteamPlayer[id] = true;
		}
	}	
}

public client_infochanged(id){
	new g_NamePlayer[64];
	get_user_info(id, "name", g_NamePlayer, charsmax(g_NamePlayer));
		
	if(!equal(g_PlayerName[id], g_NamePlayer)){
		copy(g_PlayerName[id], charsmax(g_PlayerName[]), g_NamePlayer);
	}
}

public ShowInformations(id){
	for(new i = 1; i <= g_MaxPlayers; i++){
		if(is_user_connected(i) && is_real_user(i)){
			console_print(id, "[ %d ] [ %s ] [ %s ] [ %s ] [ %s ]", get_user_index(g_PlayerName[i]), g_PlayerName[i], g_PlayerAddress[i], g_PlayerAuthID[i], g_SteamMessage[ g_SteamPlayer[i] ]);
		}
	}
	return PLUGIN_HANDLED;
}

stock is_real_user(id){
	if(is_user_bot(id) || is_user_hltv(id)){
		return false;
	}
	return true;
}

stock bool:is_user_steam(id){
	if(contain(g_PlayerAuthID[id], "STEAM_0:0:") != -1 || contain(g_PlayerAuthID[id], "STEAM_0:1:") != -1){
		return true;
	}
	return false;
}
Przejdź do postu


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

#1 Rivit

    Godlike

  • Support Team

Reputacja: 1 319
Godlike

  • Postów:4 380
Offline

Napisano 23.01.2014 16:56

Witam

Poszukuje takiego pluginu ktory po wpisaniu amx_ip drukuje w konsoli nastepujace informacje:

 

Id | Nick | IP | SiD | Steam lub Nonsteam


  • +
  • -
  • 0

#2 Wielkie Jol

    REPREZENTUJE SIEBIE I CAŁĄ GALAKTYKĘ

  • Support Team

Reputacja: 683
Wszechmogący

  • Postów:1 258
  • GG:
  • Lokalizacja:AMXX
Offline

Napisano 23.01.2014 17:06

amxx.pl/topic/48040-amx-ip-wyswietlanie-listy-zmiennych-ip/


  • +
  • -
  • 0

"Żaden etyczny inżynier oprogramowania nie zgodzi się napisać procedury zniszczBagdad. Jego poczucie etyki domaga się, aby napisał procedurę zniszczMiasto, a Bagdad przekazał jako parametr" - Nathaniel Borenstein.


#3 Rivit

    Godlike

  • Autor tematu
  • Support Team

Reputacja: 1 319
Godlike

  • Postów:4 380
Offline

Napisano 23.01.2014 17:24

Nie to nie ten styl


  • +
  • -
  • 0

#4 DarkGL

    Nie oddam ciasteczka !

  • Administrator

Reputacja: 6 555
Godlike

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

Napisano 23.01.2014 17:45

Styl można dostosować ;)


  • +
  • -
  • 0

#5 Rivit

    Godlike

  • Autor tematu
  • Support Team

Reputacja: 1 319
Godlike

  • Postów:4 380
Offline

Napisano 23.01.2014 18:24

W takim razie proszę o dostosowanie
  • +
  • -
  • 0

#6 speedkill

    Godlike

  • Przyjaciel

Reputacja: 1 592
Godlike

  • Postów:2 733
  • GG:
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Prudnik
Offline

Napisano 25.01.2014 11:13   Najlepsza odpowiedź

2014-01-25_00005.jpg
 
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "speedkill"

new g_PlayerName[33][64],
	g_PlayerAddress[33][32],
	g_PlayerAuthID[33][32],
	g_MaxPlayers;
	
new bool:g_SteamPlayer[33];

new const g_SteamMessage[][]={
	"NON STEAM",
	"STEAM"
};

public plugin_init(){
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_clcmd("amx_ip", "ShowInformations");
}

public plugin_cfg(){
	g_MaxPlayers = get_maxplayers();
}

public client_authorized(id){
	if(is_real_user(id)){
		get_user_name(id, g_PlayerName[id], charsmax(g_PlayerName[]));
		get_user_ip(id, g_PlayerAddress[id], charsmax(g_PlayerAddress[]));
		get_user_authid(id, g_PlayerAuthID[id], charsmax(g_PlayerAuthID[]));
		
		if(is_user_steam(id)){
			g_SteamPlayer[id] = true;
		}
	}	
}

public client_infochanged(id){
	new g_NamePlayer[64];
	get_user_info(id, "name", g_NamePlayer, charsmax(g_NamePlayer));
		
	if(!equal(g_PlayerName[id], g_NamePlayer)){
		copy(g_PlayerName[id], charsmax(g_PlayerName[]), g_NamePlayer);
	}
}

public ShowInformations(id){
	for(new i = 1; i <= g_MaxPlayers; i++){
		if(is_user_connected(i) && is_real_user(i)){
			console_print(id, "[ %d ] [ %s ] [ %s ] [ %s ] [ %s ]", get_user_index(g_PlayerName[i]), g_PlayerName[i], g_PlayerAddress[i], g_PlayerAuthID[i], g_SteamMessage[ g_SteamPlayer[i] ]);
		}
	}
	return PLUGIN_HANDLED;
}

stock is_real_user(id){
	if(is_user_bot(id) || is_user_hltv(id)){
		return false;
	}
	return true;
}

stock bool:is_user_steam(id){
	if(contain(g_PlayerAuthID[id], "STEAM_0:0:") != -1 || contain(g_PlayerAuthID[id], "STEAM_0:1:") != -1){
		return true;
	}
	return false;
}

  • +
  • -
  • 1

If you can dream it, you can do it.


#7 Rivit

    Godlike

  • Autor tematu
  • Support Team

Reputacja: 1 319
Godlike

  • Postów:4 380
Offline

Napisano 25.01.2014 12:04

@up

 

To jest zaj*****

A da sie jakos aby przez dproto rozpoznac czy gracz ma steam czy nie?


  • +
  • -
  • 0

#8 speedkill

    Godlike

  • Przyjaciel

Reputacja: 1 592
Godlike

  • Postów:2 733
  • GG:
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Prudnik
Offline

Napisano 25.01.2014 12:13

Pytanie tylko po co? http://amxx.pl/topic...eamid/?p=156461
  • +
  • -
  • 0

If you can dream it, you can do it.


#9 Rivit

    Godlike

  • Autor tematu
  • Support Team

Reputacja: 1 319
Godlike

  • Postów:4 380
Offline

Napisano 25.01.2014 12:23

Super.

Dziekuje.


  • +
  • -
  • 0




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

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