http://prntscr.com/ep6x3m
Code: Select all
#include <amxmodx> #include <amxmisc> #define PLUGIN "VIP & Admin prisijungimas" #define VERSION "1.0" #define AUTHOR "Adomaz" new sound[] = "Fleshke.eu/Prisijunge.wav" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_dictionary("VIP-ADMIN.txt")} public plugin_precache() { new temp[128] format(temp, 127, "sound/%s", sound) precache_sound(temp)} public client_putinserver(id) { new name[32] get_user_name(id, name, 31) if(get_user_flags(id) & ADMIN_KICK) { client_print_color(0, print_chat, "%L", "TEXT1", name); return PLUGIN_CONTINUE;} if(get_user_flags(id) & ADMIN_RESERVATION) { client_print_color(0, print_chat, "%L","TEXT2", name); return PLUGIN_CONTINUE;} client_cmd(0, "spk %s", sound) return PLUGIN_CONTINUE}