Advertisement
Guest User

re

a guest
Sep 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define ADMINFLAGS ADMIN_KICK
  5.  
  6. public plugin_init() {
  7.  
  8. register_plugin("Amx_showup", "1.0", "Vicious Vixen")
  9.  
  10. register_clcmd("amx_showip", "cmdShowIp", ADMINFLAGS);
  11.  
  12. }
  13.  
  14. public cmdShowIp(id, level,cid)
  15. {
  16. if( !cmd_access( id, level, cid, 1 ) )
  17. return PLUGIN_HANDLED;
  18. console_print(id, "Nume - IP - SteamID");
  19. console_print(id, "-----------------------------------");
  20.  
  21. new players[32], num;
  22. get_players(players, num);
  23.  
  24. for(new i = 0 ; i < num ; i++)
  25. {
  26. new name[32];
  27. new ipeki[32];
  28. new authid[32];
  29. get_user_name(players[i], name, 31)
  30. get_user_ip(players[i], ipeki, 31, 1)
  31. get_user_authid(players[i], authid, 31)
  32.  
  33. console_print(id, "%s - %s - %s", name, ipeki, authid);
  34. }
  35. console_print(id, "-----------------------------------");
  36.  
  37. return 1;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement