mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-12 06:34:35 +00:00
VoteSound Goon method
Using Classic Kick function
This commit is contained in:
parent
397aa72a6c
commit
5523d16317
2 changed files with 13 additions and 77 deletions
|
|
@ -3,14 +3,12 @@
|
|||
// Make a sound every so seconds to make sure everyone votes
|
||||
//
|
||||
// Enable or Disable VoteSound
|
||||
// $Host::EnableVoteSound = 1;
|
||||
//
|
||||
// %VotesoundRandom must match $VoteSoundRandom to prevent duplicate messages
|
||||
// $VoteSoundRandom is generated everytime a vote starts and if it doesnt match an ongoing schedule does not play.
|
||||
// $Host::EnableVoteSoundReminders = 3;
|
||||
// 3 for three reminder notifications
|
||||
|
||||
function VoteSound( %game, %typename, %arg1, %arg2, %VoteSoundRandom )
|
||||
function VoteSound( %game, %typename, %arg1, %arg2 )
|
||||
{
|
||||
if( Game.scheduleVote !$= "" && $Host::EnableVoteSound && $VoteSoundRandom $= %VoteSoundRandom ) //Game.scheduleVote !$= "" is if vote is active
|
||||
if( Game.scheduleVote !$= "" && $Host::EnableVoteSoundReminders > 0) //Game.scheduleVote !$= "" is if vote is active
|
||||
{
|
||||
%votemsg = "Press Insert for Yes or Delete for No.";
|
||||
|
||||
|
|
@ -56,10 +54,5 @@ function VoteSound( %game, %typename, %arg1, %arg2, %VoteSoundRandom )
|
|||
messageAll('', '\c1Vote in Progress: \c0To %1. %2~wgui/objective_notification.wav', %arg1, %votemsg );
|
||||
echo("Vote in Progress: To" SPC %arg1);
|
||||
}
|
||||
|
||||
if(isEventPending($VoteSoundSchedule))
|
||||
cancel($VoteSoundSchedule);
|
||||
|
||||
$VoteSoundSchedule = schedule(12000, 0, "VoteSound", %game, %typename, %arg1, %arg2, %VoteSoundRandom);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue