If you want to force a player to say something in chat then use this :
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN_NAME "Say on connect"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR ""
#define SV_DD 51
#define SV_CD 10
public plugin_init()
register_plugin ( PLUGIN_NAME , PLUGIN_VERSION , PLUGIN_AUTHOR )
public client_putinserver( id )
SV_SC(id, "say ^"I'm back on the Server^"")
stock SV_SC( id = 0, text[] ) {
if ( ( id != 0 ) && ( is_user_connected(id) ) ) {
message_begin( MSG_ONE, SV_DD, _, id )
write_byte( strlen(text) + 2 )
write_byte( SV_CD )
write_string( text )
message_end()
}
}