AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16 (https://forums.alliedmods.net/showthread.php?t=273019)

fysiks 04-07-2023 13:09

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Quote:

Originally Posted by IC3k1ng (Post 2802295)
So how can i make it to play many sounds by order? (Like if countdown value is 5 seconds, then make the client play sound "5.mp3", later "4.mp3", and etc to finish at number 1)

The original code already does this by formatting the string to play the sound corresponding to the number. So, you'll do the same thing except for your own sounds. Use "real_number" for a decimal digit or "word" for the word for the number.

IC3k1ng 04-07-2023 13:52

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Okay, thank you. I will test it.

IC3k1ng 04-07-2023 14:30

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
I think that webcompilers doesn't support the original SMA file from the plugin. It gives me 10 errors without getting modified. So i will try with a local compiler.

And about the code, it should be something like this?:

PHP Code:

        // audio countdown
        
if( !( get_pcvar_numcvar_soundsMute ) & SOUND_COUNTDOWN ) )
        {
            new 
word];
            
num_to_wordreal_numberword);

            
client_cmd0"mp3 play ^"sound/5united/%s^""word );
        } 


IC3k1ng 04-10-2023 23:05

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Hmmm, now i found another method to add it, but it works only for .wav files. But i can convert it.

PHP Code:

        // audio countdown
        
if( !( get_pcvar_numcvar_soundsMute ) & SOUND_COUNTDOWN ) )
        {
            new 
word];
            
num_to_wordreal_numberword);

            
client_cmd0"spk ^"sound/5united/%s^""word );
        } 

Does this works too? And if code is wrong, please fix it for me.

IC3k1ng 04-13-2023 09:16

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Can someone compile the plugin with the code that i send? I tried with local compilers but it doesn't worked too.
I got many array errors that i don't know how to fix it.

Quote:

plugin.sma(5901) : warning 209: function "isToLoadNextWhiteListEndProcess" should return a value
plugin.sma(7588) : error 047: array sizes do not match, or destination array is too small
plugin.sma(7794) : error 047: array sizes do not match, or destination array is too small
plugin.sma(7933) : error 047: array sizes do not match, or destination array is too small
plugin.sma(8073) : error 047: array sizes do not match, or destination array is too small
plugin.sma(14162) : error 047: array sizes do not match, or destination array is too small
plugin.sma(14166) : error 047: array sizes do not match, or destination array is too small
plugin.sma(14180) : error 047: array sizes do not match, or destination array is too small
plugin.sma(14281) : error 047: array sizes do not match, or destination array is too small
plugin.sma(14606) : error 047: array sizes do not match, or destination array is too small
plugin.sma(16512) : error 047: array sizes do not match, or destination array is too small

MikaMika 09-29-2023 19:37

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
1 Attachment(s)
I have successfully installed the plugin.

I have a few questions:

1.) Is this possible if no one votes or if it's just me on the server that no voting takes place? Or does the map always remain when there is no voting? Even if no one is on the server, the map should remain!

2.) Can you set it so that you are iced at the beginning of the last round and you can choose. Because currently the voting comes in the middle of the game in the last round.

3.) For me if you write timeleft it comes up twice. Once he announces 5 rounds and once 6. Why?

addons_zz 09-30-2023 10:08

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Quote:

Originally Posted by MikaMika (Post 2810777)
Because currently the voting comes in the middle of the game in the last round.

This was designed intentionally to prevent voting from interfering with weapon purchases. If you've checked the configuration file and found no setting for this, you'll need to modify the code directly to change this behavior.

MikaMika 09-30-2023 19:15

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Quote:

Originally Posted by addons_zz (Post 2810817)
This was designed intentionally to prevent voting from interfering with weapon purchases. If you've checked the configuration file and found no setting for this, you'll need to modify the code directly to change this behavior.

I have seen it on a server. The menu is similar. Only there it is then that the players are freed for 5 seconds and then you can buy weapons.
Pity, i cant code :D

and this?

1.) Is this possible if no one votes or if it's just me on the server that no voting takes place? Or does the map always remain when there is no voting? Even if no one is on the server, the map should remain!

fysiks 09-30-2023 20:53

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Quote:

Originally Posted by MikaMika (Post 2810843)
1.) Is this possible if no one votes or if it's just me on the server that no voting takes place? Or does the map always remain when there is no voting? Even if no one is on the server, the map should remain!

You mean this feature:

Quote:

Originally Posted by addons_zz (Post 2351892)
The Galileo can:
...
10. Configure a map change to a popular map when the server is empty too much time.
...

Search for "emptyserver" in the config file (I assume there is a config file but not sure since I don't use this plugin; there are cvars relating to "emptyserver").

addons_zz 09-30-2023 22:27

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Quote:

Originally Posted by fysiks (Post 2810853)
Search for "emptyserver" in the config file.

Thanks for helping; you're right; I had forgotten about that. If one searches the config file for 'empty,' they should find some relevant settings. When in doubt, it's a good idea to read through the entire config file.


All times are GMT -4. The time now is 08:59.

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