Ok, done that... But I don't know how to implement that to my script. Anyone want to help me out with that?
PHP Code:
#pragma semicolon 1
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "PlayerAnnounce"
#define VERSION "1.0"
#define AUTHOR "greVen"
public plugin_init()
{
register_plugin("PlayerAnnounce","greVen","1.0");
}
public client_authorized(id)
{
set_task(1.0,"announce",id+5585);
}
public announce(id){
id = id-5585;
if (get_user_flags(id) & ADMIN_KICK)
{
new name[32];
get_user_name(id,name,sizeof(name)-1);
set_hudmessage(255, 255, 255, 0.03, 0.55, 0, 0.02, 5.0, 0.01, 0.1, 4)
show_hudmessage(0, "ADMIN: %s has connected.", name);
client_print(0, print_chat, "[ADMIN Connected] %s", name);
console_print(0, "#### ADMIN %s connected ####", name);
}
if (get_user_flags(id) & ADMIN_LEVEL_H)
{
new name[32];
get_user_name(id,name,sizeof(name)-1);
set_hudmessage(0, 255, 255, 0.03, 0.55, 0, 0.02, 5.0, 0.01, 0.1, 4)
show_hudmessage(0, "VIP: %s has connected.", name);
client_print(0, print_chat, "[VIP Connected] %s", name);
console_print(0, "#### VIP %s connected ####", name);
}
if (get_user_flags(id) & ADMIN_USER)
{
new name[32];
get_user_name(id,name,sizeof(name)-1);
console_print(0, "#### PLAYER %s connected ####", name);
client_print(0, print_chat, "[PLAYER Connected] %s",name);
}
}