OciXCrom / IPShower

This plugin adds commands, which you can use to see the IP addresses of other players. The plugin automatically hides the IPs of administrators, because nowadays players often use the so called "flood", especially against the admins. The option for IP hiding can be disabled by a cvar. A menu can be used to check the IP of a specific player. Some forums require date and time when reporting players, so this plugin will automatically display them when using a command.
1 stars 0 forks source link

<colorchat> #1

Closed ArmynC closed 6 years ago

ArmynC commented 6 years ago

Why do you added "#include " as in AMXX 1.8.3 is already included. I miss something?

OciXCrom commented 6 years ago

@ArmynC - AMXX 1.8.3 isn't officially released yet. Most people still use 1.8.2, so if I don't include this, the plugin will be available only for people using 1.8.3 dev builds.

ArmynC commented 6 years ago

You could add something like: if amxmodx <1.8.3 -> include else continue..

OciXCrom commented 6 years ago

The colorchat include and the 1.8.3 functions don't use the same syntax so it can't be done with only one check. Having a colorchat library is not a problem even if you're using 1.8.3. It won't destroy your server or anything.

ArmynC commented 6 years ago

Yeah I know but if 1.8.3 support it I don't want to use it.. like I don't really wana it in include just for 1 plugin :( Any update in the future?

ArmynC commented 6 years ago

So.. can you make without the need of colorchat?

OciXCrom commented 6 years ago

I'm not going to waste my time with releasing 2 different versions for every single one of my plugins just because you don't want to have an additional include file whose size is 2 KB. This is the most ridiculous thing I've ever heard.

ArmynC commented 6 years ago

No to release different versions just to do multicompatible versions like other plugins.

ArmynC commented 6 years ago

See this

if AMXX_VERSION_NUM < 183

#include <colorchat>

#define print_team_default DontChange
#define print_team_grey Grey
#define print_team_red Red
#define print_team_blue Blue

#define MAX_PLAYERS 32
#define MAX_NAME_LENGTH 32

#define client_disconnected client_disconnect

endif

ArmynC commented 6 years ago

I manage to make it..

ip_shower.txt

OciXCrom commented 6 years ago

This is one of my few un-updated plugins in which I still use the colorchat library. In my newer plugins I use a different colorchat library (cromchat) that has different color symbols (&x04 instead of ^x04), so there's no chance that I'm going to add any support for 1.8.3 there. And, again - there is nothing wrong with using an additional library.