Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #define ADMINFLAGS ADMIN_KICK
- public plugin_init() {
- register_plugin("Amx_showup", "1.0", "Vicious Vixen")
- register_clcmd("amx_showip", "cmdShowIp", ADMINFLAGS);
- }
- public cmdShowIp(id, level,cid)
- {
- if( !cmd_access( id, level, cid, 1 ) )
- return PLUGIN_HANDLED;
- console_print(id, "Nume - IP - SteamID");
- console_print(id, "-----------------------------------");
- new players[32], num;
- get_players(players, num);
- for(new i = 0 ; i < num ; i++)
- {
- new name[32];
- new ipeki[32];
- new authid[32];
- get_user_name(players[i], name, 31)
- get_user_ip(players[i], ipeki, 31, 1)
- get_user_authid(players[i], authid, 31)
- console_print(id, "%s - %s - %s", name, ipeki, authid);
- }
- console_print(id, "-----------------------------------");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement