Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saysound problem #178

Open
ok2217221791 opened this issue May 16, 2024 · 8 comments
Open

saysound problem #178

ok2217221791 opened this issue May 16, 2024 · 8 comments

Comments

@ok2217221791
Copy link

ok2217221791 commented May 16, 2024

[SM] No commands found for: Store - Sound item module
can quickly trigger it??
Just like the button J cheer

@nuclearsilo583
Copy link
Owner

what do you mean? Saysound cooldown applies for each player individually. You can disable cooldown for it by remove these link

@ok2217221791
Copy link
Author

Saysound it similar to it
https://forums.alliedmods.net/showthread.php?t=59952&highlight=cheer

This can be done through the cheer console command which most people will already have mapped to j

shopSaysound command what is
Instead of needing to use it every !shore option 》Accessories 》saysound

@nuclearsilo583
Copy link
Owner

Saysound already have chat trigger config. To use it with chat command without having to open the menu. Add a desire trigger for the item you want. For example "trigger" "cheer"
As for a random cheer within a single trigger. You need to code it.

@ok2217221791
Copy link
Author

OK
No messages ? : player XXX Issue sound
player XXX Issue jeer

@nuclearsilo583
Copy link
Owner

sorry I dont quite understand what you are trying to say. Can you give me your item config.

@ok2217221791
Copy link
Author

"Accessories"
{
	"Say Sounds"
	{
		"description"					"    Say it loud"
		"shortcut"						"saysound"
                    
		"Cheers"
		{
			"description"				"    Pay one time use forever"
			"Cheer #1"
			{
				"sound"					"cheer/cheer_1.wav"
				 "trigger"                  "cheer"
				"unique_id"				"uid_saysound_cheer1"
				"cooldown"				"30"
				"volume"				"0.400000" // Volume in float (0.1 = 10%, 1 = 100%)
				"origin"				"1" // 1 = Sound From global world, 2 = Sound From local player, 3 = Sound From player voice (recommend to use value 2)
				"price"					"10"
				"type"					"saysound"
				"preview"				"1"
			}
			"Cheer #2"
			{
				"sound"					"cheer/cheer_2.wav"
				 "trigger"                          "cheer"
			
				"unique_id"				"uid_saysound_cheer2"
				"volume"				"0.500000"
				"origin"				"1"
				"cooldown"				"30"
				"type"					"saysound"
				"preview"				"1"
				"Plans"
				{
					"1 day"
					{
						"price" "4000"
						"time" "86400"
					}
					"1 week"
					{
						"price" "25000"
						"time" "604800"
					}
					"30 days"
					{
						"price" "70000"
						"time" "2592000"
					}
				}
			}
			
		}
	}

@ok2217221791
Copy link
Author

ok2217221791 commented May 18, 2024

sorry I dont quite understand what you are trying to say. Can you give me your item config.

producing sound No Annncement message :
For example [store] player XXX Issue cheer

@nuclearsilo583
Copy link
Owner

if you want a message in chat. You need to code it. And also single "trigger" with multiple items is not present in the current build. You need to add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants