AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Information [3.6] (https://forums.alliedmods.net/showthread.php?t=184945)

shavit 05-10-2012 20:16

[ANY] Information [3.6]
 
1 Attachment(s)
This is not a duplicate of this!

Requirements:
SourceMod for the GeoIP extension for the "Country" field.
The Basecomm plugin for "Muted" and "Gagged" fields.

What's the plugin does:
By typing !info/!myinfo/!information you will get a list like that.
Spoiler


Cvars:
sm_information_version - Information version.
sm_information_enabled - Plugin's enabled? [1]
sm_information_menu - Information printing will be on menu or chat? [0 - Chat] [1 - Menu]
sm_information_targets - Allow admins to see another players information? (!info [name])

Planned:
ExtendedComm integration.

Commands:
sm_info
sm_myinfo
sm_information
All of those show your own information.
If the target options' available admins can type the same but with target argument.

Targets:
You need to be an admin with a generic flag/have the override "target_info".
Usage: sm_info <name>

Changelog:
Code:

3.6 (29 December 2013) -
* Now country shows also target's country, not yours.
 3.5 (21 April 2013) -
* Code optimizations.
* Minor fixes.
- Removed requirements, they are optional now.

3.1 (14 January 2013) -
* Fixed country doesn't show anything when on LAN server/unknown country in the GeoIP database.
+ Added admin status.

3.0 (12 January 2013) -

* Fixed country.
* Fixed a memory leak.
+ Added client index.

2.8 (24 August 2012) -
* Fixed the chat [It just showed "Name" instead of the real name]
+ Country
+ If the server don't have basecomm it will not show the mute/gag status.

2.7 (24 August 2012) -

* Oh man fixed targets for the final time.
* Changed seconds to minutes.

 2.6 (24 August 2012) -
* Targets working.
* Works with developer SM version. [Thanks SooStoked]
+ Connection time [Thanks SooStoked]
+ Targets override "target_info"

2.5 (24 August 2012) -
+ Full plugin rewrite.
+ New cvar.
+ Targets.

2.0 (12 May 2012) -

+ Menu Option.
+ Cvar to Disable/Enable Menu.
+ Config sourcemod/information.cfg to edit menu created.
- Removed Port from the IP Address.

1.0 (11 May 2012) -
* Initial release.


Pop0N 05-11-2012 09:23

Re: Information
 
Thanks Shavit, good plugin. :)

mickael002 05-11-2012 16:51

Re: Information
 
Excellent !

Thanks

Powerlord 05-11-2012 16:56

Re: Information
 
Quote:

Originally Posted by shavit (Post 1706472)
Menu, i will do it once i will know how to make strings work with menus, if anyone can help me with that please post.

I'm not really sure what you mean by that.

Whenever you add items to a menu, you give an identifier string (aka info string) and display string. Identifier string will be known only to your plugin. It is recommended to use something unique for each one, so you can identify it in the MenuAction_DisplayItem part of the MenuHandler.

The MenuAction_DisplayItem part of the MenuHandler is used to replace text with different translations (among other things).

Edit: If you want to add a list of players to a menu, I think there's a special command for that somewhere.

Quote:

Originally Posted by shavit (Post 1706472)
Note 2: Im not sure about the required compiler version, because im using 1.4, so im recommending to use it.

The BaseComm functions you're using require compiler version 1.4.

shavit 05-11-2012 18:24

Re: Information
 
Updated to version 2.0!

mickael002 05-12-2012 05:50

Re: Information
 
Hi,

Thanks for update.

Its possible to merge this plugin => https://forums.alliedmods.net/showthread.php?t=153659

sm_info (For All Player. Print to player the info)
sm_pinfo #target (For ADMFLAG_GENERIC, Print the target player info)

ADD :

- Country
- Connections Time

Thanks

shavit 06-09-2012 23:12

Re: Information
 
New thread layout!
Quote:

Originally Posted by mickael002 (Post 1707265)
Hi,

Thanks for update.

Its possible to merge this plugin => https://forums.alliedmods.net/showthread.php?t=153659

sm_info (For All Player. Print to player the info)
sm_pinfo #target (For ADMFLAG_GENERIC, Print the target player info)

ADD :

- Country
- Connections Time

Thanks

I already have !getinfo & country/connection time in My server, just fixing bugs and releasing soon!

mickael002 08-23-2012 11:29

Re: Information
 
A news ? please

shavit 08-23-2012 18:17

Re: Information
 
Quote:

Originally Posted by mickael002 (Post 1780248)
A news ? please

Forgot you, sorry :(
2.1 (24 August 2012) -
+ Full plugin rewrite.
+ New cvar.
+ Targets.

MasterMind420 08-23-2012 21:03

Re: [ANY] Information [2.5 24/August/2012]
 
Does this plugin support /n for starting a new line, if so then awesome, if not then please add this and it will be perfect info plugin thanks...


All times are GMT -4. The time now is 11:54.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.