←  Szukam pluginu

AMXX.pl: Support AMX Mod X i SourceMod

»

amx_ip dla graczy

Locked

  • +
  • -
Grzelak's Photo Grzelak 04.10.2008

bardzo mocno potrzebuje tego pluginu :/

Jak na razie szukalem ale znalazlem jedynie dla adminow. A chcialbym aby wszyscy gracze mogli uzywac tej komendy.
Quote

  • +
  • -
PeZeT's Photo PeZeT 04.10.2008

W załączniku :]

Attached Files

Quote

  • +
  • -
grankee's Photo grankee 04.10.2008

No i masz, a dopiero była mowa, żeby nie brać pluginów bez kodu, bo mogą być zasyfiałe...

#include <amxmodx>
#include <amxmisc>

public plugin_init() 
{ 
    register_plugin("Pokaz IP","1.0","grankee"); 
    register_concmd("amx_ip","IP",0," - pokazuje IP graczy."); 
} 

public IP(id) 
{ 
    
    
    new ipek[22], imie[32];
    new ilee=0;
    new Players[32] , ile;  
    get_players( Players , ile);
    console_print(id , "IP graczy grajacych na servie:"); 
    for(new i=0; i < ile; i++) 
    { 
        get_user_ip(Players[i],ipek , 21 , 0); 
        get_user_name(Players[i] , imie , 31); 
        console_print(id , "%d) %s     - %s", (i + 1), imie , ipek); 
	ilee=i+1;
    }  
    console_print(id , "Wszystkich graczy: %d",ilee)
    return PLUGIN_HANDLED; 
}
Quote
Locked