#include #include #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "speedkill" new g_Vip[33]; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_clcmd("say_team","g_Chat",_,"<* Wiadomosc>"); } public client_authorized(id) g_Vip[id] = true public g_Chat(id){ if(is_user_connected(id) && g_Vip[id]){ new g_Msg[192], g_Text[192]; read_argv(id,g_Msg,charsmax(g_Msg)); if(g_Msg[0] == '*'){ replace(g_Msg,charsmax(g_Msg),"*",""); new g_Name[64]; get_user_name(id,g_Name,charsmax(g_Name)); formatex(g_Text,charsmax(g_Text),"^x01(Vip Chat) ^x03%s :^x04%s",g_Name,g_Msg); for(new i=1;i<33;i++){ if(is_user_connected(i) && g_Vip[i]) ColorChat(i,GREEN,"%s", g_Text); } return PLUGIN_HANDLED_MAIN } } return PLUGIN_CONTINUE }