[Any] Get IP
1 Attachment(s)
[Any] Get IP
Description: This is my first plugin that i'm uploading here on Alliedmods. A very simple plugin that can get IP's from players. I couldn't find a get ip plugin here yet, so i decided to upload it, plus its compatible with all multiplayer games. Commands:
Again, very simple plugin, i'm still learning, but it works! :wink: Changes: May 7th 2017 - 0.2
May 8th 2017 - 0.3
March 25th 2018 - 0.4
|
Re: [Any] Get IP
You can type "status" from the server console or "sm_rcon status" to get IP addresses. Just a side note.
|
Re: [Any] Get IP
Use ReplyToCommand instead of PrintToChat/Console so you reply to the source, otherwise your user will write the command from console and get the reply from chat (or the other way around).
|
Re: [Any] Get IP
I was also going to do something with geoip to and/or print the location of the player, might take a look into that soon.
but thanks fakuivan! |
Re: [Any] Get IP
Simple, lightweight. I like it.
|
Re: [Any] Get IP
Updated to newest syntax and added a Tag before each command, don't have to use it just a thought :3
PHP Code:
|
Re: [Any] Get IP
I learned some stuff from that, thanks!
And in the original code i had ADMFLAG_ROOT, but i was still unsure what flag to choose from. i might put it to cheats or root, but you can of course always change it in the overrides config file ;) |
Re: [Any] Get IP
Guys, %N is also a thing ;-)
|
Re: [Any] Get IP
Wiki: "N: Requires a client index; expands to a string containing the player's name."
so when i put that in place of the S where the targets name is supposed to be i dont need to convert it to a string? |
Re: [Any] Get IP
Quote:
PHP Code:
PHP Code:
(client is supposed to be a Valid Client.) |
All times are GMT -4. The time now is 19:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.