I suggest you download some simple Plugins Source Code and learn from it,
because just what you are asking for here is more of a Plugin request than a Help request.
;)
How ever, here you go:
Code:
/* This is a comment */
// This is a comment, too
/* Below you see how to include an *.inc File.
They are needed in Order to use specific Functions */
#include <amxmodx> /* Always needed. Basic Functions like registering Plugin */
#include <fun> /* Fun Stuff. Glowing, changing Health and Armor and so on... */
#define VERSION "1.0" /* The current Version of your Plugin */
public plugin_init() /* This is called/executed when the Plugin loads/Map starts */
{
register_plugin("Speak and Glow",VERSION,"Silencer") /* Registers your Plugin. This is neccesary. */
}
public client_command(id) /* A special Function called when a Client does a Command. */
{
new type[16] /* Create a new Variable to store Data inside */
read_argv(0,type,15) /* In short, this will write the Command the Player used into the variable "type". Look up functions in amxmodx.org Function Database. */
if(equali(type,"say")) /* Self explaining - Look up the Function */
{
set_user_rendering(id,kRenderFxGlowShell,0,255,0,kRenderNormal,4) /* Green Glowing with Glow Shell Thickness of 4 (Thin) */
}
else
{
if(equali(type,"say_team")) /* Self explaining - Look up the Function */
{
set_user_rendering(id,kRenderFxGlowShell,0,255,255,kRenderNormal,4) /* Yellow Glowing with Glow Shell Thickness of 4 (Thin) */
}
}
// Use this to set Players rendering back to normal:
// set_user_rendering(id,kRenderFxNone,0,0,0,kRenderNormal,0)
// Note that "id" is a Variable which comes with the Function client_command,
// which is the Players Entity Id, going from 1 to 32.
}
Note that the Player will glow after he used "say" or "say_team".
You cannot make him Glow while he is typing a message, because the
Client/Player/User is not sending that Information to the Server in that Moment.
__________________