Raised This Month: $ Target: $400
 0% 

Admin login/connect sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pur3
Junior Member
Join Date: Apr 2009
Old 04-16-2009 , 09:34   Admin login/connect sound
Reply With Quote #1

Hello every1 Please help me. I searching plugin when admin comming to server playing that admins owns music. I don't need thats hudmessages theres wrote like "*** admin joined to server" only admin music then he connecting to server. Maybe any1 can create that plugin In this forum i find some plugins but they don't worked. I need plugin for cs 1.6 NON-Steam because all friends playing non-steam. Thanx for help, and forgive me for bad english
pur3 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-16-2009 , 09:43   Re: Admin login/connect sound
Reply With Quote #2

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); }
__________________
hleV is offline
Diva
Member
Join Date: Aug 2012
Location: Denmark
Old 05-07-2013 , 14:12   Re: Admin login/connect sound
Reply With Quote #3

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
pur3
Junior Member
Join Date: Apr 2009
Old 04-16-2009 , 10:09   Re: Admin login/connect sound
Reply With Quote #4

i think this not that plugin about i talk. I try tu explane. Example ir Admin1 Admin2 and Admin3. All admins has his own intro example Admin1_intro Admin2_intro and Admin3_intro. Intro music files are in sounds/Your favorite direcory. And then admin become to server all players hearing his own music. U understand about what about i speaking?
pur3 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-16-2009 , 10:16   Re: Admin login/connect sound
Reply With Quote #5

You will have to tell me by what to check which admin is it - Admin1, Admin2 or Admin3. IP? SteamID? Name?
__________________
hleV is offline
pur3
Junior Member
Join Date: Apr 2009
Old 04-16-2009 , 10:19   Re: Admin login/connect sound
Reply With Quote #6

name
pur3 is offline
pur3
Junior Member
Join Date: Apr 2009
Old 04-16-2009 , 10:30   Re: Admin login/connect sound
Reply With Quote #7

i think that plugin must have *.ini or *.cfg file. Whereat will wrote for example "admin_nick" "sound/misc/song.mp3/wav"
"admin1_nick1" "sound/misc/song1.mp3/wav"
pur3 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-16-2009 , 10:30   Re: Admin login/connect sound
Reply With Quote #8

Code:
#include <amxmodx>   #define FLAG_ADMIN ADMIN_LEVEL_A   new g_AdminNames[][] = {         "hleV",         "pur3",         "BAILOPAN" };   new g_AdminMusic[][] = {         "sound/mp3/hlev.mp3",         "sound/mp3/pur3.mp3",         "sound/wav/bailopan.wav" };   public plugin_precache()         for (new Sound = 0; Sound < sizeof(g_AdminMusic); Sound++)                 precache_generic(g_AdminMusic[Sound]);   public plugin_init()         register_plugin("Admin Connect Music", "1.1", "hleV");   public client_authorized(Cl) {         if (!(get_user_flags(Cl) & FLAG_ADMIN)) return;           new PlayCmd[9], Name[32];         get_user_name(Cl, Name, 31);           for (new Num = 0; Num < sizeof(g_AdminNames); Num++) if (equal(Name, g_AdminNames[Num]))         {                                 switch (g_AdminMusic[Num][strlen(g_AdminMusic[Num]) - 1])                 {                         case '3': PlayCmd = "mp3 play";                         case 'v': PlayCmd = "spk";                           default: break;                 }                   client_cmd(0, "%s ^"%s^"", PlayCmd, g_AdminMusic);                   break;         } }
__________________
hleV is offline
ajpr
Junior Member
Join Date: Sep 2018
Old 03-18-2024 , 12:04   Re: Admin login/connect sound
Reply With Quote #9

Quote:
Originally Posted by hleV View Post
Code:
#include <amxmodx>   #define FLAG_ADMIN ADMIN_LEVEL_A   new g_AdminNames[][] = {         "hleV",         "pur3",         "BAILOPAN" };   new g_AdminMusic[][] = {         "sound/mp3/hlev.mp3",         "sound/mp3/pur3.mp3",         "sound/wav/bailopan.wav" };   public plugin_precache()         for (new Sound = 0; Sound < sizeof(g_AdminMusic); Sound++)                 precache_generic(g_AdminMusic[Sound]);   public plugin_init()         register_plugin("Admin Connect Music", "1.1", "hleV");   public client_authorized(Cl) {         if (!(get_user_flags(Cl) & FLAG_ADMIN)) return;           new PlayCmd[9], Name[32];         get_user_name(Cl, Name, 31);           for (new Num = 0; Num < sizeof(g_AdminNames); Num++) if (equal(Name, g_AdminNames[Num]))         {                                 switch (g_AdminMusic[Num][strlen(g_AdminMusic[Num]) - 1])                 {                         case '3': PlayCmd = "mp3 play";                         case 'v': PlayCmd = "spk";                           default: break;                 }                   client_cmd(0, "%s ^"%s^"", PlayCmd, g_AdminMusic);                   break;         } }
Hi everyone, the plugin is very good, but I found a problem, if there are three names listed in the plugin, and all three enter the server at the same time, the three songs play and generate a mixture of several sounds, the same happens if you change the map, I would like help to end this conflict of sounds.
ajpr is offline
pur3
Junior Member
Join Date: Apr 2009
Old 04-16-2009 , 10:33   Re: Admin login/connect sound
Reply With Quote #10

very very thanx
pur3 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode