mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 05:43:46 +03:00
Upload
This commit is contained in:
61
gamemodes/darkrp/plugins/ln_hints/cl_hooks.lua
Normal file
61
gamemodes/darkrp/plugins/ln_hints/cl_hooks.lua
Normal file
@@ -0,0 +1,61 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
-- Called after all the plugins have been initialized.
|
||||
function PLUGIN:InitializedPlugins()
|
||||
ix.hints.Add("Tapez // avant votre message pour parler en OCC.")
|
||||
ix.hints.Add("Tapez .// ou [[ avant votre message pour parler localement en OCC.")
|
||||
ix.hints.Add("Rester accroupi en maintenant ALT et en appuyant sur SHIFT tout en restant immobile.")
|
||||
ix.hints.Add("Appuyez sur TAB pour afficher le menu principal ou maintenez la touche TAB enfoncée pour l'afficher temporairement.")
|
||||
ix.hints.Add("Appuyez sur E tout en regardant une entité pour ouvrir son menu.")
|
||||
ix.hints.Add("Vous pouvez modifier la description physique de votre personnage via la commande /CharDesc, le menu TAB ou le menu F1.")
|
||||
ix.hints.Add("Utilisez la commande /CharSearch pour rechercher le caractère que vous recherchez.")
|
||||
ix.hints.Add("Vous pouvez attacher des personnages en utilisant des liens tout en les regardant.")
|
||||
ix.hints.Add("Vous pouvez configurer vos paramètres côté client via le menu des paramètres.")
|
||||
ix.hints.Add("Vous voulez posséder une entreprise ? Contactez l'UTC.")
|
||||
ix.hints.Add("Le serveur ne serait pas là où il est actuellement sans le soutien de la communauté.")
|
||||
ix.hints.Add("Attention à ne pas vous noyer en allant vous baigner.")
|
||||
ix.hints.Add("Votre personnage n'est qu'un pauvre humain, évitez de sauter des hauts rebords.")
|
||||
ix.hints.Add("N'oubliez pas de dormir, votre personnage se fatigue.")
|
||||
ix.hints.Add("Essayez de vous faire des amis, la misère aime la compagnie.")
|
||||
ix.hints.Add("Ne commettez pas le crime si vous n'êtes pas prêt à faire le temps.")
|
||||
ix.hints.Add("Les rues de la cité sont sous la surveillance constante du Cartel. Faites attention.")
|
||||
ix.hints.Add("Ne jouez pas au malin avec le Cartel, ils ont pris le contrôle de la Terre en 7 heures.")
|
||||
ix.hints.Add("Vous avez le sentiment que vous voulez juste frapper quelqu'un ? Ne le faites pas.")
|
||||
ix.hints.Add("Obéissez au Cartel, vous serez content de l'avoir fait.")
|
||||
ix.hints.Add("Quand le Cartel frappe à la porte, mets toi au sol et vite.")
|
||||
ix.hints.Add("Besoin d'appeler la Protection Civile ? Investissez dans un dispositif d'aide.")
|
||||
ix.hints.Add("La Protection Civile protège la société civilisée, pas vous.")
|
||||
ix.hints.Add("Les admins sont là pour vous aider, veuillez les respecter et coopérer avec eux.")
|
||||
ix.hints.Add("Lorsque vous êtes engagé dans un échange de tirs, tirez pour manquer pour le rendre plus agréable.")
|
||||
ix.hints.Add("Le métagaming consiste à utiliser des informations OOC dans le RP. Ne le faites pas.")
|
||||
ix.hints.Add("N'oubliez pas qu'il s'agit d'un serveur de jeu de rôle. Vous jouez en tant qu'un personnage, pas vous-même.")
|
||||
ix.hints.Add("Si vous vous ennuyez et qu'il n'y a pas d'action, essayez un RP passif.")
|
||||
ix.hints.Add("Développez votre personnage, donnez-lui une histoire à raconter. Vous ne le regretterez pas.")
|
||||
ix.hints.Add("Le powergaming, c'est quand vous forcez vos actions sur les autres. Ne le faites pas.")
|
||||
ix.hints.Add("La plupart des factions ont des chats privés OOC. Accédez-y en entrant les initiales de la faction dans le chat.")
|
||||
ix.hints.Add("Appuyez sur F3 pour permettre aux autres personnes de vous reconnaître.")
|
||||
ix.hints.Add("Vous pouvez définir un faux nom pour vous reconnaître via le menu Personnage.")
|
||||
ix.hints.Add("Besoin de noter quelque chose pour plus tard ? Utilisez les notes personnelles via le menu F1.")
|
||||
ix.hints.Add("Vous pouvez effectuer des actions grâce a la commande /Act.")
|
||||
ix.hints.Add("Vous pouvez modifier le volume de la musique ambiante ou la désactiver via le menu des paramètres.")
|
||||
ix.hints.Add("Pas assez d'espace ? Utilisez des conteneurs pour stocker des objets ou investissez dans un sac à dos.")
|
||||
ix.hints.Add("Trop sombre ? Vous ne pouvez pas voir ? Investissez dans une lampe de poche.")
|
||||
ix.hints.Add("Essayez de regarder dans les ruelles sombres, les coins et les poubelles - vous trouverez peut-être quelque chose d'utile.")
|
||||
ix.hints.Add("Vous pouvez combiner des objets pour en créer de nouveaux via le menu Artisanat.")
|
||||
ix.hints.Add("La plupart des objets peuvent être désassemblés et récupérés pour les ressources via le menu Artisanat.")
|
||||
ix.hints.Add("Ennuyé ? Lisez un livre. Donnez à votre personnage des connaissances.")
|
||||
ix.hints.Add("Procurez-vous une radio pour communiquer sur de longues distances. Attention, elles sont illégales.")
|
||||
ix.hints.Add("Un scanner est sur le point de vous prendre en photo ? Souriez ! Chaque PC du district est sur le point de voir votre visage.")
|
||||
ix.hints.Add("Rester sous terre trop longtemps vous fera inhaler des gaz nocifs.")
|
||||
ix.hints.Add("Vous pouvez désactiver ces conseils via le menu des paramètres.")
|
||||
ix.hints.Add("Coincé dans un mur ? Vous avez été props-kill ? Utilisez la commande /UnStuck ! Attention, n'en abusez pas !.")
|
||||
end
|
||||
28
gamemodes/darkrp/plugins/ln_hints/cl_plugin.lua
Normal file
28
gamemodes/darkrp/plugins/ln_hints/cl_plugin.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
net.Receive("ixInitializeHints", function()
|
||||
if (ix.option.Get("enableHints", true)) then
|
||||
if (timer.Exists("ixHintsTimer")) then
|
||||
return
|
||||
end
|
||||
|
||||
timer.Create("ixHintsTimer", ix.option.Get("hintInterval", 300), 0, function()
|
||||
if (!LocalPlayer():GetCharacter()) then
|
||||
return
|
||||
end
|
||||
|
||||
if (ix.gui.notices) then
|
||||
ix.gui.notices:AddNotice(ix.hints.stored[math.random(1, #ix.hints.stored)])
|
||||
end
|
||||
end)
|
||||
end
|
||||
end)
|
||||
17
gamemodes/darkrp/plugins/ln_hints/languages/sh_english.lua
Normal file
17
gamemodes/darkrp/plugins/ln_hints/languages/sh_english.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
LANGUAGE = {
|
||||
optEnableHints = "Activer les indinces et conseils",
|
||||
optdEnableHints = "Si vous devez obtenir des indices de serveur avec un intervalle de minutes.",
|
||||
optHintInterval = "Intervalle d'indice et conseils",
|
||||
optdHintInterval = "L'intervalle auquel les conseils et indinces de serveur sont affichés."
|
||||
}
|
||||
17
gamemodes/darkrp/plugins/ln_hints/languages/sh_french.lua
Normal file
17
gamemodes/darkrp/plugins/ln_hints/languages/sh_french.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
LANGUAGE = {
|
||||
optEnableHints = "Activer les indinces et conseils",
|
||||
optdEnableHints = "Si vous devez obtenir des indices de serveur avec un intervalle de minutes.",
|
||||
optHintInterval = "Intervalle d'indice et conseils",
|
||||
optdHintInterval = "L'intervalle auquel les conseils et indinces de serveur sont affichés."
|
||||
}
|
||||
20
gamemodes/darkrp/plugins/ln_hints/libs/cl_hints.lua
Normal file
20
gamemodes/darkrp/plugins/ln_hints/libs/cl_hints.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ix.hints = ix.hints or {}
|
||||
ix.hints.stored = ix.hints.stored or {}
|
||||
|
||||
-- A function to register a hint.
|
||||
function ix.hints.Add(hint)
|
||||
if (!table.HasValue(ix.hints.stored, hint)) then
|
||||
ix.hints.stored[#ix.hints.stored + 1] = hint
|
||||
end
|
||||
end
|
||||
34
gamemodes/darkrp/plugins/ln_hints/sh_options.lua
Normal file
34
gamemodes/darkrp/plugins/ln_hints/sh_options.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ix.option.Add("enableHints", ix.type.bool, true, {
|
||||
category = "Apparence",
|
||||
OnChanged = function(oldValue, value)
|
||||
if (timer.Exists("ixHintsTimer")) then
|
||||
if (value) then
|
||||
timer.UnPause("ixHintsTimer")
|
||||
else
|
||||
timer.Pause("ixHintsTimer")
|
||||
end
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
ix.option.Add("hintInterval", ix.type.number, 300, {
|
||||
category = "Apparence",
|
||||
min = 1,
|
||||
max = 1800,
|
||||
OnChanged = function(oldValue, value)
|
||||
if (timer.Exists("ixHintsTimer")) then
|
||||
timer.Adjust("ixHintsTimer", value)
|
||||
end
|
||||
end
|
||||
})
|
||||
20
gamemodes/darkrp/plugins/ln_hints/sh_plugin.lua
Normal file
20
gamemodes/darkrp/plugins/ln_hints/sh_plugin.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
PLUGIN.name = "LN | Hints"
|
||||
PLUGIN.description = "Ajoute un système d'indices simple à Helix."
|
||||
PLUGIN.author = "Aspect™"
|
||||
|
||||
ix.util.Include("cl_hooks.lua")
|
||||
ix.util.Include("cl_plugin.lua")
|
||||
ix.util.Include("sh_options.lua")
|
||||
ix.util.Include("sv_hooks.lua")
|
||||
ix.util.Include("sv_plugin.lua")
|
||||
20
gamemodes/darkrp/plugins/ln_hints/sv_hooks.lua
Normal file
20
gamemodes/darkrp/plugins/ln_hints/sv_hooks.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
-- Called after a player has loaded into a character
|
||||
function PLUGIN:PlayerLoadedCharacter(client, character, oldChar)
|
||||
if (!client.hintsInitialized) then
|
||||
net.Start("ixInitializeHints")
|
||||
net.Send(client)
|
||||
|
||||
client.hintsInitialized = true
|
||||
end
|
||||
end
|
||||
12
gamemodes/darkrp/plugins/ln_hints/sv_plugin.lua
Normal file
12
gamemodes/darkrp/plugins/ln_hints/sv_plugin.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
util.AddNetworkString("ixInitializeHints")
|
||||
Reference in New Issue
Block a user