PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new const Float:g_flPositions[][] = {
// Y, X
{ 0.25, -1.0 },
{ 0.50, -1.0 },
{ 0.75, -1.0 }
}
new const Float:HOLD_TIME = 10.0
new const Float:FADE_IN_TIME = 0.1
new const Float:FADE_OUT_TIME = 0.1
enum _:COLORS
{
R = 255,
G = 255,
B = 0
}
new g_iPosCount
new g_iCommand[33]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /command", "CmdCommand")
g_iPosCount = sizeof(g_flPositions)
}
public client_connect(id)
{
g_iCommand[id] = 0
}
public CmdCommand(id)
{
set_hudmessage(R, G, B, g_flPositions[g_iCommand[id]][1], g_flPositions[g_iCommand[id]][0], 0, 0.0, HOLD_TIME, FADE_IN_TIME, FADE_OUT_TIME, -1)
show_hudmessage(id, "Message :)")
g_iCommand[id]++
if(g_iCommand[id] == g_iPosCount)
{
g_iCommand[id] = 0
}
}
__________________