-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b295619
commit 816cb0a
Showing
2 changed files
with
44 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,76 @@ | ||
//Please use mob or src (not usr) in these procs. This way they can be called in the same fashion as procs. | ||
/client/verb/wiki() | ||
set name = "wiki" | ||
set desc = "Type what you want to know about. This will open the wiki in your web browser." | ||
set desc = "Введите то, о чем вы хотите знать. После этого в вашем веб-браузере откроется вики-страница." | ||
set hidden = 1 | ||
if(CONFIG_GET(string/wikiurl)) | ||
var/query = tgui_input_text(src, "Enter Search:", "Wiki Search", "Homepage") | ||
if(query == "Homepage") | ||
var/query = tgui_input_text(src, "Введите запрос:", "Поиск по вики-сайту", "Домашняя страница") | ||
if(query == "Домашняя страница") | ||
src << link(CONFIG_GET(string/wikiurl)) | ||
else if(query) | ||
var/output = CONFIG_GET(string/wikiurl) + "/index.php?title=Special%3ASearch&profile=default&search=" + query | ||
src << link(output) | ||
else | ||
to_chat(src, "<span class='danger'>The wiki URL is not set in the server configuration.</span>") | ||
to_chat(src, "<span class='danger'>URL-адрес wiki не задан в конфигурации сервера.</span>") | ||
return | ||
|
||
/client/verb/forum() | ||
set name = "forum" | ||
set desc = "Visit the forum." | ||
set desc = "Посетите форум." | ||
set hidden = 1 | ||
if(CONFIG_GET(string/forumurl)) | ||
if(tgui_alert(src, "Open the forum in your browser?", "Forum", list("Yes", "No")) != "Yes") | ||
if(tgui_alert(src, "Откройте форум в своем браузере?", "Forum", list("Да", "Нет")) != "Да") | ||
return | ||
if(CONFIG_GET(string/forum_link_url) && prefs && !prefs.fuid) | ||
link_forum_account() | ||
src << link(CONFIG_GET(string/forumurl)) | ||
else | ||
to_chat(src, "<span class='danger'>The forum URL is not set in the server configuration.</span>") | ||
to_chat(src, "<span class='danger'>URL-адрес форума не задан в конфигурации сервера.</span>") | ||
|
||
/client/verb/rules() | ||
set name = "Rules" | ||
set desc = "View the server rules." | ||
set name = "Правила" | ||
set desc = "Просмотрите правила сервера." | ||
set hidden = 1 | ||
if(CONFIG_GET(string/rulesurl)) | ||
if(tgui_alert(src, "This will open the rules in your browser. Are you sure?", "Rules", list("Yes", "No")) != "Yes") | ||
if(tgui_alert(src, "После этого в вашем браузере откроются правила. Вы уверены?", "Правила", list("Да", "Нет")) != "Да") | ||
return | ||
src << link(CONFIG_GET(string/rulesurl)) | ||
else | ||
to_chat(src, "<span class='danger'>The rules URL is not set in the server configuration.</span>") | ||
to_chat(src, "<span class='danger'>URL-адрес правил не задан в конфигурации сервера.</span>") | ||
|
||
/client/verb/github() | ||
set name = "GitHub" | ||
set desc = "Visit the GitHub page." | ||
set desc = "Посетите страницу на GitHub." | ||
set hidden = 1 | ||
if(CONFIG_GET(string/githuburl)) | ||
if(tgui_alert(src, "This will open our GitHub repository in your browser. Are you sure?", "GitHub", list("Yes", "No")) != "Yes") | ||
if(tgui_alert(src, "Это откроет наш репозиторий на GitHub в вашем браузере. Вы уверены?", "GitHub", list("Да", "Нет")) != "Да") | ||
return | ||
src << link(CONFIG_GET(string/githuburl)) | ||
else | ||
to_chat(src, "<span class='danger'>The GitHub URL is not set in the server configuration.</span>") | ||
to_chat(src, "<span class='danger'>URL-адрес GitHub не задан в конфигурации сервера.</span>") | ||
|
||
/client/verb/discord() | ||
set name = "Discord" | ||
set desc = "Join our Discord server." | ||
set desc = "Присоединяйтесь к нашему серверу Discord." | ||
set hidden = 1 | ||
|
||
var/durl = CONFIG_GET(string/discordurl) | ||
if(CONFIG_GET(string/forum_link_url) && prefs && prefs.fuid && CONFIG_GET(string/discordforumurl)) | ||
durl = CONFIG_GET(string/discordforumurl) | ||
if(!durl) | ||
to_chat(src, "<span class='danger'>The Discord URL is not set in the server configuration.</span>") | ||
to_chat(src, "<span class='danger'>URL-адрес Discord не задан в конфигурации сервера.</span>") | ||
return | ||
if(tgui_alert(src, "This will invite you to our Discord server. Are you sure?", "Discord", list("Yes", "No")) != "Yes") | ||
if(tgui_alert(src, "Это пригласит вас на наш сервер Discord. Вы уверены?", "Discord", list("Да", "Нет")) != "Да") | ||
return | ||
src << link(durl) | ||
|
||
/client/verb/donate() | ||
set name = "Donate" | ||
set desc = "Donate to help with hosting costs." | ||
set desc = "Сделайте пожертвование, чтобы покрыть расходы на хостинг." | ||
set hidden = 1 | ||
if(CONFIG_GET(string/donationsurl)) | ||
if(tgui_alert(src, "This will open the donation page in your browser. Are you sure?", "Donate", list("Yes", "No")) != "Yes") | ||
if(tgui_alert(src, "После этого в вашем браузере откроется страница пожертвований. Вы уверены?", "Donate", list("Да", "Нет")) != "Да") | ||
return | ||
src << link(CONFIG_GET(string/donationsurl)) | ||
else | ||
to_chat(src, "<span class='danger'>The rules URL is not set in the server configuration.</span>") | ||
to_chat(src, "<span class='danger'>URL-адрес донатов не задан в конфигурации сервера.</span>") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters