Thread: Amx PM
View Single Post
Plugin Info:     Modification:          Category:          Approver:   v3x (159)
Sonic7145
Member
Join Date: Jul 2005
Location: USA
Old 12-31-2005 , 02:14   Amx PM
Reply With Quote #1

Amx PM
Version 1.3

Credits
v3x for helping me with the access.
Jrdn44053 for help with the strtok commands, and various other bits of code.

Description
This plugin somewhat resembles amx_psay. However, this command can be used by anyone, outside of the console. and allows players to send private messages to other players in-game.
Does not allow dead to alive chat, and logs all PMs so they are viewable in your log directory - a file entitled "pms.log". New in version 1.3, is a bug fix which would require correct capitalization of the target, which is no longer needed. Also, players are able to leave messages for the admin, even if an admin is not online!

Usage
1)
In console:
amx_pm <playerName> "<message>"
The message must be in quotation marks or it'll only send the first word.

2)
Regular chat:
/pm <Playername> <Message> - sends a private message to a player.
No quotes required.

/msgadmin <Message> - sends a message to the server admin, which is stored in a file so the admins can check their messages.
No quotes required.

3) Admins, to check the log files, simply go to your log folder in your AMXx directory.

Known Problems
-Typing just "/pm" sends a blank message to yourself.

Things to add
-Perhaps allow admins to see the messages in-game.
-Make the messages different-colored.

Updates
- /pm can now be used to send messages without opening console. See usage.
Attached Files
File Type: sma Get Plugin or Get Source (pm.sma - 5224 views - 3.5 KB)

Last edited by Sonic7145; 04-09-2007 at 19:08. Reason: Updated to 1.3.
Sonic7145 is offline