PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Some Hud message for PPG that actually work =D"
#define VERSION "9999999999.0"
#define AUTHOR "Mecca"
new players[32] = true;
new num
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
get_players(players,num)
set_task(10.0,"hudmessage",69,"",0,"b");
register_clcmd("say /ajuda","helpon");
register_clcmd("say /ajudaoff","helpoff");
}
public hudmessage(id)
{
if(players[id]){
set_hudmessage(57, 199, 71, 0.45, 0.82, 0, 6.0, 12.0)
show_hudmessage(0, "Message!")
}
}
}
client_connect(id)
{
players[id] = true;
}
client_disconnect(id)
{
players[id] = false;
}
public helpon(id)
{
players[id] = true;
}
public helpoff(id)
{
players[id] = false;
}
Imtrying make a hud menu where shows a menu to all players when they enter the server. They can turn on the menu and off by using /helpon and helpoff. Unforgently i cant see the menu, probaly its about the ID crap and so I need help =S