[Release] Sound Menu

  • Initiateur de la discussion Jenni Gort
  • Date de début
MisterSweez

MisterSweez

Geek suprême
Messages
201
Score réaction
23
Points
115
SAlut tu peux PV J'ai besoin de toi :D
 
G

Gretox

Têtard
Messages
9
Score réaction
0
Points
5
Comment on Rajoute une Sound ?
 
Tom21200

Tom21200

Geek
Messages
34
Score réaction
1
Points
70
Bah mais une soundboard
 
A

AlbanC

Geek suprême
Messages
72
Score réaction
2
Points
100
Le menu ne s'ouvre pas : voici le seul fichier que j'ai edit :

Code:
--[[ Configuration ]]--
j_sound.config.MethodeOuverture = 1 -- (1: ChatCommand / 2: ContextMenu / 3: Touche au choix)
if j_sound.config.MethodeOuverture == 1 then -- Configuration ChatCommand (NE PAS TOUCHER CETTE LIGNE) j_sound.config.ChatCommand = "/bouncesound" -- la commande a entrer dans le chat pour ouvrir le sound menu j_sound.config.Titre = "Sound Menu [F3]" j_sound.config.TitrePosition = 20 -- Positionnement vertical du titre j_sound.config.F3_Fix = false -- Mettre en true seulement si F3 ne fonctionne pas !!!
elseif j_sound.config.MethodeOuverture == 2 then -- Configuration ContextMenu (NE PAS TOUCHER CETTE LIGNE) j_sound.config.Titre = "Sound Menu" j_sound.config.TitrePosition = 40 -- Positionnement vertical du titre
elseif j_sound.config.MethodeOuverture == 3 then -- Configuration Touche au choix (NE PAS TOUCHER CETTE LIGNE) j_sound.config.Touche = 96 -- http://wiki.garrysmod.com/page/Enums/BUTTON_CODE j_sound.config.Titre = "Sound Menu [F5]" j_sound.config.TitrePosition = 20 -- Positionnement vertical du titre
end -- (NE PAS TOUCHER CETTE LIGNE)
j_sound.config.CouleurTitre = Color(150, 150, 150, 255)
j_sound.config.Hauteur = "400" -- Hauteur du sound menu
j_sound.config.Position = "Droite" -- "Droite" ou "Gauche"
j_sound.config.Couleur = Color(30, 144, 255, 145) -- Couleur des lignes du sound menu
j_sound.config.AntiSpam = 0.8 -- Secondes pour relancer un son
-- Exemple: Juste pour un rank
j_sound.add[1] = { sound_name = "079 Breach", sound_path = "adminsound/079_breach.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[2] = { sound_name = "106 Breach", sound_path = "adminsound/106_breach.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[3] = { sound_name = "682 Breach", sound_path = "adminsound/682_breach.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[4] = { sound_name = "Alarm instru", sound_path = "adminsound/alarmintru.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[5] = { sound_name = "Alarme Niveau 1", sound_path = "adminsound/alarmlevel_1.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[6] = { sound_name = "Alarme Niveau 2", sound_path = "adminsound/alarmlevel_2.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[7] = { sound_name = "Alarme Niveau 3", sound_path = "adminsound/alarmlevel_3.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[8] = { sound_name = "Musique Epique", sound_path = "adminsound/epicmusic_1.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[9] = { sound_name = "Please, Evacuate", sound_path = "adminsound/evacuate.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[10] = { sound_name = "MTF Enterance", sound_path = "adminsound/mtf_1.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[11] = { sound_name = "Detonation", sound_path = "adminsound/scpnuke.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[12] = { sound_name = "Detonation Failed", sound_path = "adminsound/warheadfail.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[13] = { sound_name = "Please, Evacuate", sound_path = "adminsound/evacuate.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[14] = { sound_name = "Kevin MacLoad - Sneaky Snitch", sound_path = "1.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[15] = { sound_name = "Kevin MacLeod - Sneaky Snitch", sound_path = "1.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[16] = { sound_name = "Kevin MacLeod - Scheming Weasel", sound_path = "2.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[17] = { sound_name = "Kevin MacLeod - In The Hall of the Mountain", sound_path = "3.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[18] = { sound_name = "Kevin MacLeod - Fluffing a Duck", sound_path = "4.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[19] = { sound_name = "Kevin MacLeod - Merry Go", sound_path = "5.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[20] = { sound_name = "Kevin MacLeod - Carefree", sound_path = "6.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[21] = { sound_name = "Kevin MacLeod - There It Is", sound_path = "7.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[22] = { sound_name = "Kevin MacLeod - Killing Time", sound_path = "8.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[23] = { sound_name = "Kevin MacLeod - The Builder", sound_path = "9.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[24] = { sound_name = "Kevin MacLeod - Darkest Child", sound_path = "10.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[25] = { sound_name = "Kevin MacLeod - Local Forecast - Elevator", sound_path = "11.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[26] = { sound_name = "Kevin MacLeod - Movement Proposition", sound_path = "12.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[27] = { sound_name = "Kevin MacLeod - Club Diver", sound_path = "13.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
 
Tom21200

Tom21200

Geek
Messages
34
Score réaction
1
Points
70
A bah Amban
AlbanC à dit:
Le menu ne s'ouvre pas : voici le seul fichier que j'ai edit :

Code:
--[[ Configuration ]]--
j_sound.config.MethodeOuverture = 1 -- (1: ChatCommand / 2: ContextMenu / 3: Touche au choix)
if j_sound.config.MethodeOuverture == 1 then -- Configuration ChatCommand (NE PAS TOUCHER CETTE LIGNE) j_sound.config.ChatCommand = "/bouncesound" -- la commande a entrer dans le chat pour ouvrir le sound menu j_sound.config.Titre = "Sound Menu [F3]" j_sound.config.TitrePosition = 20 -- Positionnement vertical du titre j_sound.config.F3_Fix = false -- Mettre en true seulement si F3 ne fonctionne pas !!!
elseif j_sound.config.MethodeOuverture == 2 then -- Configuration ContextMenu (NE PAS TOUCHER CETTE LIGNE) j_sound.config.Titre = "Sound Menu" j_sound.config.TitrePosition = 40 -- Positionnement vertical du titre
elseif j_sound.config.MethodeOuverture == 3 then -- Configuration Touche au choix (NE PAS TOUCHER CETTE LIGNE) j_sound.config.Touche = 96 -- http://wiki.garrysmod.com/page/Enums/BUTTON_CODE j_sound.config.Titre = "Sound Menu [F5]" j_sound.config.TitrePosition = 20 -- Positionnement vertical du titre
end -- (NE PAS TOUCHER CETTE LIGNE)
j_sound.config.CouleurTitre = Color(150, 150, 150, 255)
j_sound.config.Hauteur = "400" -- Hauteur du sound menu
j_sound.config.Position = "Droite" -- "Droite" ou "Gauche"
j_sound.config.Couleur = Color(30, 144, 255, 145) -- Couleur des lignes du sound menu
j_sound.config.AntiSpam = 0.8 -- Secondes pour relancer un son
-- Exemple: Juste pour un rank
j_sound.add[1] = { sound_name = "079 Breach", sound_path = "adminsound/079_breach.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[2] = { sound_name = "106 Breach", sound_path = "adminsound/106_breach.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[3] = { sound_name = "682 Breach", sound_path = "adminsound/682_breach.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[4] = { sound_name = "Alarm instru", sound_path = "adminsound/alarmintru.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[5] = { sound_name = "Alarme Niveau 1", sound_path = "adminsound/alarmlevel_1.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[6] = { sound_name = "Alarme Niveau 2", sound_path = "adminsound/alarmlevel_2.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[7] = { sound_name = "Alarme Niveau 3", sound_path = "adminsound/alarmlevel_3.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[8] = { sound_name = "Musique Epique", sound_path = "adminsound/epicmusic_1.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[9] = { sound_name = "Please, Evacuate", sound_path = "adminsound/evacuate.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[10] = { sound_name = "MTF Enterance", sound_path = "adminsound/mtf_1.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[11] = { sound_name = "Detonation", sound_path = "adminsound/scpnuke.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[12] = { sound_name = "Detonation Failed", sound_path = "adminsound/warheadfail.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[13] = { sound_name = "Please, Evacuate", sound_path = "adminsound/evacuate.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[14] = { sound_name = "Kevin MacLoad - Sneaky Snitch", sound_path = "1.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[15] = { sound_name = "Kevin MacLeod - Sneaky Snitch", sound_path = "1.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[16] = { sound_name = "Kevin MacLeod - Scheming Weasel", sound_path = "2.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[17] = { sound_name = "Kevin MacLeod - In The Hall of the Mountain", sound_path = "3.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[18] = { sound_name = "Kevin MacLeod - Fluffing a Duck", sound_path = "4.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[19] = { sound_name = "Kevin MacLeod - Merry Go", sound_path = "5.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[20] = { sound_name = "Kevin MacLeod - Carefree", sound_path = "6.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[21] = { sound_name = "Kevin MacLeod - There It Is", sound_path = "7.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[22] = { sound_name = "Kevin MacLeod - Killing Time", sound_path = "8.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[23] = { sound_name = "Kevin MacLeod - The Builder", sound_path = "9.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[24] = { sound_name = "Kevin MacLeod - Darkest Child", sound_path = "10.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[25] = { sound_name = "Kevin MacLeod - Local Forecast - Elevator", sound_path = "11.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[26] = { sound_name = "Kevin MacLeod - Movement Proposition", sound_path = "12.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
j_sound.add[27] = { sound_name = "Kevin MacLeod - Club Diver", sound_path = "13.mp3", methode = 2, allowed = function() return j_sound.allowed(LocalPlayer(), { -- [TEAM_CITIZEN] = true }, { ["superadmin"] = true }) end
}
eh ben je pense que c’est dû à un fichier lua supprimé ou une erreur de lua
 
Tom21200

Tom21200

Geek
Messages
34
Score réaction
1
Points
70
Aproved babe
 
Dernière édition:
JarodSCP

JarodSCP

Geek
Messages
30
Score réaction
3
Points
95
Hey j'ai une question on peut ajouter des sounds ?
 
Love SCP

Love SCP

Têtard
Messages
7
Score réaction
0
Points
10
Salut ! Comment on ajoute des sons perso ?
 
Yoh Sambre ♪

Yoh Sambre ♪

Shaman Fou
Messages
16 273
Score réaction
9 685
Points
1 845
Love SCP à dit:
Salut ! Comment on ajoute des sons perso ?
un fichier de configuration est disponible dans l'addon ;) Jenni-Gort/j_sound
 
Love SCP

Love SCP

Têtard
Messages
7
Score réaction
0
Points
10
Yoh Sambre ♪ à dit:
un fichier de configuration est disponible dans l'addon ;) Jenni-Gort/j_sound
Oui mais je ne comprends pas le chemin du son
 
N

NemezisTV

Geek
Messages
47
Score réaction
0
Points
80
Hello en vrai c'est un super addon mais il faudrait ajouter un bouton StopSound (comme si on clear les sons avec Fadmin). Perso je modif ton addon pour l'utiliser en scp c'est pour ça que le stopsound est presque indispensable.
 
B

braconman

Geek
Messages
5
Score réaction
0
Points
65
salut j'aurait bession d'aide je ne comprend pas comment ajouter des sond j'ai déja fait un dossier serveur et clien en .wav j'ai configuré sur l'addon mais ça ne marche pas on l'entant pas ig
 
Discord d'entraide
Rejoignz-nous sur Discord