AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Admin login/connect sound (https://forums.alliedmods.net/showthread.php?t=90295)

pur3 04-16-2009 09:34

Admin login/connect sound
 
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 :)

hleV 04-16-2009 09:43

Re: Admin login/connect sound
 
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); }

pur3 04-16-2009 10:09

Re: Admin login/connect sound
 
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?:)

hleV 04-16-2009 10:16

Re: Admin login/connect sound
 
You will have to tell me by what to check which admin is it - Admin1, Admin2 or Admin3. IP? SteamID? Name?

pur3 04-16-2009 10:19

Re: Admin login/connect sound
 
name

pur3 04-16-2009 10:30

Re: Admin login/connect sound
 
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"

hleV 04-16-2009 10:30

Re: Admin login/connect sound
 
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;         } }

pur3 04-16-2009 10:33

Re: Admin login/connect sound
 
very very thanx :)

pur3 04-16-2009 10:45

Re: Admin login/connect sound
 
another question maybe you know with what program i can do sounds like ut killstreak adv or ultimate sounds i mean i want create sounds like what plugin with same sound effects

pur3 04-16-2009 11:06

Re: Admin login/connect sound
 
Hlev that last plugin not bad but i don't hear myself music then i conneting/loading to server...


All times are GMT -4. The time now is 03:00.

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