Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
—————————————————————————
concommand.Add("info_hint", function(ply, cmd, args)
if #args < 1 then
ply:PrintMessage(HUD_PRINTCONSOLE, "Usage: info_hint <msg>")
else
local message = table.concat(args, " ")
ply:SendLua([[notification.AddLegacy("]] .. message .. [[", NOTIFY_HINT, 5)]])
end
end)
—————————————————————————
Create triggers on the map and use point_clientcommand to make the player enter console commands when the player touches a trigger. The console command is: info_hint "hint text" — Access for all players.
Example: info_hint "Press F to turn on the flashlight"
To indent, use: \n — Example: info_hint "New mission:\n\nKill all enemies."
You can use this code on a map through Hammer Editor or use it on your server. Save the file as 'info_hint.lua' and put it in the folder 'garrysmod\lua\autorun\server'.
Add triggers all over the map and slightly modify the lua script to display messages only for a special player.
you should have a mod where it does this automatically so I don't have to set it manually
Alors merci quand même ^_^