Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN_NAME "Welcome Message"
#define PLUGIN_VERSION "0.5"
#define PLUGIN_AUTHOR "Dotcom"
public plugin_init() // function to register the plugin
{
register_plugin (PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
}
public client_putinserver(id) // fuction to register that the user has entered the server
{
set_task(5.0, "print_msg", id)
set_task(15.0, "hud_msg", id)
}
public print_msg(id) // function to print a message
{
client_print(id, print_chat, "Welcome, this is my first plugin")
}
public hud_msg(id)
{
set_hudmessage(0, 255, 0, -1.0, -1.0)
show_hudmessage(id, "hey world!")
}
__________________