←  [RSS] Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

Simple Chat Processor (Redux)

Adminek AMXX.PL's Photo Adminek AMXX.PL 17.10.2012

HALLO EveryoneWell, as everyone may know, the old SCP plugin had a couple of bugs (which were mostly actually fixed in the latest source code in the google repoz), so I went ahead and created this new thread with the plugin + my own fixes.Version History:10-16-12: 1.1.0 - New Redux release.10-16-12: 1.1.1 - Correctly sends the recipient handle by-ref.Any suggestions? Reply to this thread. Quote: Originally Posted by Antithasys (Post 1559548) Simple Chat Processor Description:

Provides global forward for chat messages allowing other plugins to manipulate the display of chat messages. Currently this only supports SayText2 usermessage.

Console Variables:

None.

Installation:

Place the simple-chatprocessor.smx in the /sourcemod/plugins dir.Place the appropriate phrases file in the /sourcemod/translations dir.

Changelog: Include File PHP Code:

/********************************************************************** * When a player types a chat message * * NOTES: * Use MAXLENGTH_ constants above for formating the strings * Do not rely on the recipients handle to exist beyond the forward * Do not start another usermessage (PrintToChat) within this forward * * @param author The client index of the player who sent the chat message (Byref) * @param recipients The handle to the client index adt array of the players who should recieve the chat message * @param name The client's name of the player who sent the chat message (Byref) * @param message The contents of the chat message (Byref) * @noreturn **********************************************************************/forward Action:OnChatMessage(&author, Handle:recipients, String:name[], String:message[]);/********************************************************************** * Gets the current flags for the chat message * Should only be called within OnChatMessage() * * @return The current type of chat message (see constants) **********************************************************************/ native GetMessageFlags();

Notes: This plugin by itself does nothing. This plugin is the core plugin for the following other plugins:Simple Chat ColorsSimple Chat FilterSimple Chat ResponsesSimple Chat All DeadSimple Chat MeIf you want to use any of the above plugins you will need this plugin as well. Of course, anyone else is free to use this for their own plugins too!SVN (or Beta Links)If you want the latest version on the SVN you can use the links below. The release version of the plugin is attached.Source | Include | Plugin | No Config | PhrasesEnjoy!
Attached Files Posted Image scp.cstrike.phrases.txt (977 Bytes) Posted Image scp.tf.phrases.txt (709 Bytes) Posted Image scp.l4d.phrases.txt (752 Bytes) Posted Image scp.l4d2.phrases.txt (752 Bytes) Posted Image scp.inc (3.9 KB) Posted Image Get Plugin or Get Source (simple-chatprocessor.sp - 13.8 KB)

Wyświetl pełny artykuł
Quote