CSHOT.PL - Pluginy amxx , plugins amxx , server game counter strike , serwery gier , forum
Zapisywanie adresów IP - Printable Version

+- CSHOT.PL - Pluginy amxx , plugins amxx , server game counter strike , serwery gier , forum (https://cshot.pl)
+-- Forum: Counter-Strike (https://cshot.pl/forumdisplay.php?fid=54)
+--- Forum: Counter-Strike 1.6 (https://cshot.pl/forumdisplay.php?fid=55)
+---- Forum: PLUGINY (https://cshot.pl/forumdisplay.php?fid=62)
+---- Thread: Zapisywanie adresów IP (/showthread.php?tid=3313)



Zapisywanie adresów IP - Poster - 09-18-2025

[TITLE] Zapisywanie adresów IP
[URL] https://amxx.pl/topic/357-zapisywanie-adresów-ip/


Witam to jest takie cos jak amx_ip tylko ze lepsze
[Image: biggrin.gif] zapisuje ip
wszystkich graczy ( w tym cheaterów jak znajdzie)

opis ogólny

Zapisuje wszystkie adresy IP osób które byly na serwerze w pliku. Dodatkowo
oczywiście nick oraz godzina - czyli ktoś Ci mówi że był cziter, daje Ci demko
i już nie ma problemu z złapaniu jego IP."

Kod:




/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "IPLog"
#define VERSION "1.0"
#define AUTHOR "RaYden"

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}

public client_authorized(id)
{
if(is_user_bot(id)) return PLUGIN_CONTINUE;

new Name[33],ip[16],SteamID[33]
get_user_name(id, Name, 32)
get_user_ip(id, ip, 15, 1)
get_user_authid(id , SteamID , 32)


log_to_file("IPLog.txt"," Name: %s | STEAMID: %s | IP: %s ^n",Name,SteamID,ip)
return PLUGIN_CONTINUE
}


zapisuje: /cstrike/addons/amxmodx/logs/iplogs
Załączone pliki

* [url=https://amxx.pl/index.php?app=core&module=attach&section=attach&attach_id=62 "Pobierz załącznik"][Image: rar.gif][/url] [url=https://amxx.pl/index.php?app=core&module=attach&section=attach&attach_id=62 "Pobierz załącznik"]**logs.rar**[/url] **1,9 KB** 2366 Ilość pobrań







Załączniki:
logs.rar