Czy takie coś zadziała?
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Admin Welcome"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
#define ADMIN ADMIN_LEVEL_A
#define PREMIUM ADMIN_LEVEL_H
public plugin_init()
register_plugin(PLUGIN, VERSION, AUTHOR)
public client_putinserver(id)
{
if (get_user_flags(id) && ADMIN)
{
new name[32]
get_user_name(id,name,31)
set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 6.0, 5.0)
show_hudmessage(0, "Przychodzi admin!^n %s",name)
}
if (get_user_flags(id) && PREMIUM !& ADMIN)
{
new name[32]
get_user_name(id,name,31)
set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 6.0, 5.0)
show_hudmessage(0, "Przychodzi gracz premium:!^n %s",name)
}
}
Jak zrobić, żeby po wyjściu z serwa pisało "admin/gracz premium nick wyszedl z serwa" ?