MisterSweez
Geek suprême
- Messages
- 201
- Score réaction
- 23
- Points
- 115
SAlut tu peux PV J'ai besoin de toi
--[[ 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 luaAlbanC à 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 }
un fichier de configuration est disponible dans l'addon Jenni-Gort/j_soundLove SCP à dit:Salut ! Comment on ajoute des sons perso ?
Oui mais je ne comprends pas le chemin du sonYoh Sambre ♪ à dit:un fichier de configuration est disponible dans l'addon Jenni-Gort/j_sound