View Single Post
tedaimlocks
Senior Member
Join Date: Jan 2024
Old 04-24-2024 , 12:54   Re: asking player on connect
Reply With Quote #4

HTML Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Ask on connect"
#define VERSION "1.0"
#define AUTHOR "tedaimlocks"

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
}

public Menu(id) {
	new menu = menu_create("Do you want to change your MP3 volume?", "MenuHandler")
	menu_additem(menu, "Yes", "1")
	menu_additem(menu, "No", "2")
	menu_display(id, menu)
}

public MenuHandler(id, menu, item) {
	switch(item) {
		case 0: {
			client_cmd(id, "MP3Volume 0.02");
		}
		case 1: {
			return PLUGIN_HANDLED;
		}
	}
        return PLUGIN_HANDLED;
}

public client_putinserver(id) {
    set_task(5.0, "Menu", id);
}
Quote:
Originally Posted by Tote View Post
you cant change client side volume, considered slow hacking read rules.
Its not really a slowhack when the user agrees to it

Last edited by tedaimlocks; 04-24-2024 at 12:55.
tedaimlocks is offline