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.
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)
sm_af_display_menu - Display a menu before revealing its a joke? 0 = Disabled. 1 = Enabled(default).
sm_af_menu_title - The title of the menu. Only required if sm_af_display_menu = 1
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.