Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[CS:GO] NotifyMOTD


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 494
  • Lokalizacja:AMXX.PL
Offline

Napisano 24.02.2013 01:03

DescriptionThis is a simple plugin for CS:GO for displaying MOTD or contacting admin if there is none on the server. It's a re-write of M3Motd plugin made by KaOs. Also, I used a method of displaying MOTD in CS:GO discovered by Bacardi. Special thanks to 11530 and ajr1234 for resolving my doubts. This is my first plugin and I am absolutely not a coder, so there may be bugs. (But I hope there aren't any).INSTALLATIONTo configure, you have to do six steps:1. Modify attached r_rules.html and set title and url to your proper rules website in the linevar popup=window.open("http://yourdomain.com/rules.html","title","height=720,width=1280");2. Do the step above for r_contact.html too.3. Place both r_rules.html and r_contact.html on your public http server (it may be Dropbox, but you have to place them in the /Public folder).4. Go back to your game server and set sm_rules_url to "http://yourdomain.com/r_rules.html" in your cfg/server.cfg (this is the link to the routing r_rules.html site)5. Do the step above for sm_contact_url "http://yourdomain.com/r_contact.html" in your cfg/server.cfg (this is the link to the routing r_contact.html site).6. Place notifymotd.smx in your sourcemod/plugins folder and load it.CVAR'ssm_rules_url - link to the .html file with JavaScript redirecting to proper MOTD filesm_contact_url - link to the .html file with JavaScript redirecting to your contact siteIN-GAME COMMANDS!admin - call admin contact site,!rules - show MOTD,!sm_rules nick|id (or sm_rules in the console, respectively) - show MOTD to specified target.CREDITSBacardi - fiding a method to display a popup in CS:GO,KaoS - creating original plugin.CHANGELOG0.1 - original releaseFEATURE REQUESTSOpenID login to contact site... But I don't really understand how to integrate SteamAPI with JavaScript, so I can't do this by myself.SCREENSHOTSShow rules to myself - https://dl.dropbox.c...61/csgo/ss1.jpgShow rules to other player - https://dl.dropbox.c...61/csgo/ss3.jpgContact admin - https://dl.dropbox.c...61/csgo/ss2.jpg Attached Files Dołączona grafika notifymotd.smx (5.1 KB) Dołączona grafika Get Plugin or Get Source (notifymotd.sp - 5.4 KB) Dołączona grafika rules_contact_html.zip (629 Bytes)

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych