Raised This Month: $46 Target: $400
 11% 

[Any] April Fools Joke MySQL (v1.1, 2020-03-30)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
shapeshifter
Junior Member
Join Date: Dec 2010
Plugin ID:
7003
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Pull off a harmless April Fools joke on your players.
    Old 03-26-2020 , 15:17   [Any] April Fools Joke MySQL (v1.1, 2020-03-30)
    Reply With Quote #1

    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)
    • 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.
    • 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.

    Images








    If you have used this plugin post below how many players you have fooled!

    Change Log
    Code:
    - V1.1 - Added Menu
    ** In order to test the plugin set sm_af_date_check 0 or else it will only work on the date specified.
    **This plugin requires https://forums.alliedmods.net/showthread.php?t=247770 in order to compile.
    Attached Files
    File Type: sp Get Plugin or Get Source (april_fools.sp - 11 views - 13.7 KB)
    File Type: smx april_fools.smx (17.4 KB, 5 views)
    File Type: cfg april_fools.cfg (457 Bytes, 7 views)
    File Type: zip april_fools_v1_1.zip (22.3 KB, 18 views)

    Last edited by shapeshifter; 03-31-2020 at 15:46.
    shapeshifter is offline
    Ejziponken
    AlliedModders Donor
    Join Date: Apr 2008
    Old 03-26-2020 , 15:36   Re: [Any] April Fools Joke MySQL (v1.0, 2020-03-26)
    Reply With Quote #2

    Does the command actually opens an admin menu with options like kick/ban? If not, I think that would make it a bit more funnier if it logged the players trying to use those commands.
    Ejziponken is offline
    shapeshifter
    Junior Member
    Join Date: Dec 2010
    Old 03-27-2020 , 20:59   Re: [Any] April Fools Joke MySQL (v1.0, 2020-03-26)
    Reply With Quote #3

    No the command currently only displays a chat message for what you set sm_af_message default is "APRIL FOOLS! XD" I can create a configurable menu in the next update.
    shapeshifter is offline
    shapeshifter
    Junior Member
    Join Date: Dec 2010
    Old 03-30-2020 , 15:04   Re: [Any] April Fools Joke MySQL (v1.0, 2020-03-26)
    Reply With Quote #4

    Quote:
    Originally Posted by Ejziponken View Post
    Does the command actually opens an admin menu with options like kick/ban? If not, I think that would make it a bit more funnier if it logged the players trying to use those commands.
    I have now added a menu option. Thanks for the suggestion.
    shapeshifter is offline
    Ejziponken
    AlliedModders Donor
    Join Date: Apr 2008
    Old 04-01-2020 , 17:59   Re: [Any] April Fools Joke MySQL (v1.0, 2020-03-26)
    Reply With Quote #5

    Quote:
    Originally Posted by shapeshifter View Post
    I have now added a menu option. Thanks for the suggestion.
    Thanks! We had 435 in our database after 24 hours
    And seems we have some loyal players also who came to us on discord and told us about the "bug"








    Last edited by Ejziponken; 04-01-2020 at 18:00.
    Ejziponken is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 01:09.


    Powered by vBulletin®
    Copyright ©2000 - 2020, vBulletin Solutions, Inc.
    Theme made by Freecode