Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
plugin showip
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Tutorials
Author
Message
1202
banditu
[Mentally Stable]
Status: Offline
(since 29-05-2021 22:54)
Joined: 21 Nov 2006
Posts: 349
,
Topics: 106
Location:
Romania
Reputation:
548.9
Votes
: 9
Posted: 30-07-2009, 20:43:24
| Translate post to:
... (
Click for more languages
)
Am acest plugin pe adminmod,
Code:
/* Plugin for display of client IPs */
/* UserIPs v0.1 by Hanover Fist */
/* Written on 2/25/04 for AdminMOD 2.50.59 */
#include <core>
#include <console>
#include <string>
#include <admin>
#include <adminlib>
#define MAX_IPADDRESS 32
new STRING_VERSION[MAX_DATA_LENGTH] = "0.1";
new User[MAX_NAME_LENGTH];
public admin_showip(HLCommand,HLData,HLUserName,UserIndex){
new i;
new maxplayers = maxplayercount();
new Data[MAX_DATA_LENGTH];
new UserPort;
new UserID;
new WONID;
new Team;
new Text[MAX_DATA_LENGTH];
new UserIP[MAX_DATA_LENGTH];
convert_string(HLUserName,User,MAX_NAME_LENGTH);
convert_string(HLData,Data,MAX_DATA_LENGTH);
for(i=1; i<=maxplayers; i++) {
new Name[MAX_NAME_LENGTH];
if (playerinfo(i,Name,MAX_NAME_LENGTH,UserID,WONID,Team) != 0) {
get_userIP(Name,UserIP,MAX_DATA_LENGTH,UserPort);
while(strlen(Name)<=18) {
strcat(Name," ",MAX_NAME_LENGTH);
}
snprintf(Text,MAX_TEXT_LENGTH,"Name: %s - IP: %s",Name,UserIP);
messageex(User, Text, print_console);
}
}
return PLUGIN_HANDLED;
}
public plugin_init() {
plugin_registerinfo("UserIP Plugin","Lists clientss IP address.",STRING_VERSION);
plugin_registercmd("admin_showip","admin_showip",ACCESS_BAN,"admin_showip. Lists the IP addresses of clients.");
return PLUGIN_CONTINUE;
}
Am dori sa adaug un text inainte si la sfarsitul listei cu nick si ip ale jucatorilor unde trebuie sa il adaug mai exact? ca nu reusesc deloc...
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Tutorials
The time now is 16-02-2025, 02:54:29
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details