Shanks bnk Posted August 6 Share Posted August 6 (edited) Read The Description in Edited how the plugins works #include <zombie_escape> #define PLUGIN "VIP Sound Menu" #define VERSION "1.0" #define AUTHOR "bNk_" new g_iUsedTimes[33]; new g_pCvarUseTimes; new szFunSounds[][] = { "LocatedFile", "LocatedFile", "LocatedFile", "LocatedFile", "LocatedFile", "LocatedFile" }; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); g_pCvarUseTimes = register_cvar("ls_ze_used_times", "10"); register_clcmd("/soundmenu", "Menu_CostumeSounds_LB", ADMIN_RCON); register_clcmd("nightvision", "Menu_CostumeSounds_LB", ADMIN_RCON); } public plugin_precache() { for (new i = 0; i < sizeof(szFunSounds); i++) precache_sound(szFunSounds[i]); } public Menu_CostumeSounds_LB(id) { // Check if the user has the ADMIN_RCON flag if (!(get_user_flags(id) & ADMIN_RCON)) // Change to Server VIP Flag { client_print(id, print_chat, "[VIP] You do not have access to Sounds Menu "); return PLUGIN_HANDLED; } new iMenu = menu_create("\r[\w LS-ZE \r] \wSounds Menu", "Menu_Handler"); menu_additem(iMenu, "Sound-1", "", 0); menu_additem(iMenu, "Sound-2", "", 0); menu_additem(iMenu, "Sound-3", "", 0); menu_additem(iMenu, "Sound-4", "", 0); menu_additem(iMenu, "Sound-5", "", 0); menu_additem(iMenu, "Sound-6", "", 0); // Add more if u want menu_setprop(iMenu, MPROP_EXIT, MEXIT_ALL); menu_display(id, iMenu, 0); return PLUGIN_HANDLED; } public Menu_Handler(id, iMenu, iItem) { if (!is_user_connected(id)) { menu_destroy(iMenu) return PLUGIN_HANDLED } if (iItem == MENU_EXIT) { menu_destroy(iMenu) return PLUGIN_HANDLED } if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes)) { ze_colored_print(id, "!tMaximum limit has been reached! !y(Max: !g%d!y)", get_pcvar_num(g_pCvarUseTimes)) return PLUGIN_HANDLED } new szName[32] get_user_name(id, szName, charsmax(szName)) switch(iItem) { case 0: { emit_sound(id, CHAN_AUTO, szFunSounds[iItem], 1.0, ATTN_NORM, 0, PITCH_NORM) return PLUGIN_HANDLED } case 1: { emit_sound(id, CHAN_AUTO, szFunSounds[iItem], 1.0, ATTN_NORM, 0, PITCH_NORM) return PLUGIN_HANDLED } case 2: { emit_sound(id, CHAN_AUTO, szFunSounds[iItem], 1.0, ATTN_NORM, 0, PITCH_NORM) return PLUGIN_HANDLED } case 3: { emit_sound(id, CHAN_AUTO, szFunSounds[iItem], 1.0, ATTN_NORM, 0, PITCH_NORM) return PLUGIN_HANDLED } case 4: { emit_sound(id, CHAN_AUTO, szFunSounds[iItem], 1.0, ATTN_NORM, 0, PITCH_NORM) return PLUGIN_HANDLED } case 5: { emit_sound(id, CHAN_AUTO, szFunSounds[iItem], 1.0, ATTN_NORM, 0, PITCH_NORM) return PLUGIN_HANDLED } } // Means increment the g_iUsedTimes by 1 g_iUsedTimes[id]++ return PLUGIN_HANDLED } // Description : This Fun Plugin works with emit_sound Which means only Players who are closer to you depends on [PITCH_NORM] Means radius ( Can be changed ), Or you can change emit_sound with client_cmd(0, %spk ...) Means Evreyone can hear it /// Plugin Tested And works perfectly Edited August 6 by Shanks bnk Description : its Sounds menu Works with Emit_sound Which means only Players who are closer to you can hear which sound you played.. you can play such as memes sound or any sound you want, its also possible to make the sound play for evreyone [client_cmd] Link to comment Share on other sites More sharing options...
Co-Owner Vo1D Posted August 6 Co-Owner Share Posted August 6 No... We're not addin it " However difficult life may seem, there is always something you can do and succeed at " - Stephen Hawking Link to comment Share on other sites More sharing options...
Recommended Posts