Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[Any] April Fools Joke MySQL (v1.0, 2020-03-26)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
APRIL FOOLS


Description:
This plugin allows you to pull off a harmless April Fools joke on your players. It can log to either a flat file or MySQL database. You can also disable logging. It comes with many configurable options.

ConVars:
  • sm_af_enable - Enable the plugin? 0 = Disabled. 1 = Enabled(default). DEFAULT: 1
  • sm_af_log_type - How would you like to store the data? 0 = Disabled 1 = Flat File(default). 2 = MySQL. DEFAULT: 1
  • sm_af_log_path - Path to april-fools.log Must have sm_april_fools_log_type = 1 DEFAULT: logs/april-fools.log
  • sm_af_mysql_database_name - The database name entry in databases.cfg if using sm_april_fools_log_type = 2 DEFAULT: april_fools
  • sm_af_join_message - The April Fools message a player will see when they connect. DEFAULT: {default}You have connected as an {darkred}Admin{default}. Type {lightgreen}/acommands {default}for a list of commands.
  • sm_af_command_name - The command to trigger the april fools message. DEFAULT: acommands
  • sm_af_message - The message to display when someone triggers your command. DEFAULT:{green}APRIL FOOLS! XD
  • sm_af_display_time - How many seconds after the player has connected should the message be displayed? DEFAULT: 16.0
  • sm_af_date_check - Enable the plugin to automatically activate/deactivate for the date/time you specify. DEFAULT: 1
  • sm_af_enable_date_timestamp - The date/time as a unix timestamp that you would like this plugin to begin working! Use http://epochconverter.com with your local time to get the correct time. DEFAULT: 1585713600 (Wednesday, April 1, 2020 12:00:00 AM GMT-04:00 DST)
  • sm_af_disable_date_timestamp - The date/time as a unix timestamp that you would like this plugin to be disabled! DEFAULT: 1585800000 (Thursday, April 2, 2020 12:00:00 AM GMT-04:00 DST)


Commands:
  • sm_fools - Check how many players have been fooled! (Only works with MySQL "sm_af_log_type 2")
  • sm_acommands - Triggers the april fools message! (Please note this command may be changed in cfg/sourcemod/april_fools.cfg by changing sm_af_command_name)


How to enable this during a certain day?
NOTE: Setting this will not cause the plugin to activate at the exact time set. However once it has reached the time on the next map change the plugin should be enabled.
  • 1. Go to https://www.epochconverter.com/
  • 2. Set the date and time.
  • 3. Change GMT to Local Time
  • 4. Press Human date to Timestamp
  • 5. Copy the numbers after Epoch timestamp:
  • 6. Edit sm_af_enable_date_timestamp in april_fools.cfg
  • 7. Repeat steps 1-5 and edit sm_af_disable_date_timestamp in april_fools.cfg to set the end date.

**This plugin requires https://forums.alliedmods.net/showthread.php?t=247770 in order to compile.

Attached Files
File Type: zip april_fools_v1_0.zip (20.4 KB)
File Type: sp Get Plugin or Get Source (april_fools.sp - 11.8 KB)
File Type: smx april_fools.smx (16.4 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

×
×
  • Dodaj nową pozycję...