AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Connect IP (https://forums.alliedmods.net/showthread.php?t=88698)

Swuifti 03-28-2009 07:20

Connect IP
 
Can some one make a plugin that shows the ip of a player when he connects in server and the pugin displays the name and IP of the player in HLDS/ console ...

Darknightcze2 03-28-2009 08:13

Re: Connect IP
 
HLDS always show connect message in console

Example:
Code:

"urcite<328><STEAM_0:0:xxxxxx><>" connected, address "93.91.144.xx:27005"
if you mean plugin which displays a connect message in chat, so try this:

use SEARCH! http://forums.alliedmods.net/showthread.php?p=555912

Swuifti 03-28-2009 08:20

Re: Connect IP
 
maybe i had put a cvar not to show the ip do you know that cvar ?

hleV 03-28-2009 08:30

Re: Connect IP
 
Code:
#include <amxmodx>   // Comment/uncomment these as you want #define CONNECTING // Show name & IP while connecting? //#define CONNECTED // Show name & IP after connected?   public plugin_init()         register_plugin("Connection Info in Console", "1.0", "hleV");   #if defined CONNECTING public client_connect(Client) {         new Name[32], IP[32];           get_user_name(Client, Name, 31);         get_user_ip(Client, IP, 31, 1);         server_print("%s (IP: %s) is connecting to server", Name, IP); } #endif   #if defined CONNECTED public client_putinserver(Client) {         new Name[32], IP[32];           get_user_name(Client, Name, 31);         get_user_ip(Client, IP, 31, 1);         server_print("%s (IP: %s) has connected to server", Name, IP); } #endif

Swuifti 03-28-2009 09:24

Re: Connect IP
 
Bravo thank you


All times are GMT -4. The time now is 20:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.