View Single Post
Diva
Member
Join Date: Aug 2012
Location: Denmark
Old 05-07-2013 , 14:12   Re: Admin login/connect sound
Reply With Quote #14

Quote:
Originally Posted by hleV View Post
I'm sure there is a plugin like that. You should have used search.

This should work.
Code:
#include <amxmodx>   #define FLAG_ADMIN ADMIN_LEVEL_A   new g_AdminMusic[] = "sound/mp3/admin.mp3";   public plugin_precache() precache_generic(g_AdminMusic);   public client_authorized(Cl) {         if (!(get_user_flags(Cl) & FLAG_ADMIN)) return;           new PlayCmd[9];           switch (g_AdminMusic[strlen(g_AdminMusic) - 1])         {                 case '3': PlayCmd = "mp3 play";                 case 'v': PlayCmd = "spk";                   default: return;         }           client_cmd(0, "%s ^"%s^"", PlayCmd, g_AdminMusic); }
flag admin a? u sure it shouldt be ADMIN_IMMUNITY
if its surposed to put it on admins with the access flag A. right.. ?
Diva is offline