Raised This Month: $18 Target: $400
 4% 

[TF2] Giveaway System


Post New Thread Reply   
 
Thread Tools Display Modes
Author
StrikeR14
AlliedModders Donor
Join Date: Apr 2016
Location: Behind my PC
Plugin ID:
7009
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 03-31-2020 , 18:25   [TF2] Giveaway System
    Reply With Quote #1

    [TF2] Giveaway System


    Hi !
    This is the first plugin that I'm posting here. I hope I'm not breaking any rules and I hope you enjoy this plugin.



    Description:

    This plugin gives you a system that allows admins to host giveaways and randomize winners.
    Players can only win if they enter the giveaway by picking a number with the /ga command.
    At the end of the giveaway event, the random winner's name is displayed via a hud, and he receives a redeem code in order to confirm that he's the real winner in front of the host of the giveaway.
    The plugin only works for TF2 since many TF2 particles and sounds apply to players during the giveaway event.

    NOTE: Multiple giveaways at once are not supported.

    ConVars:
    • sm_giveaway_time - Duration of the giveaway event in seconds (default: 20)

    Commands:
    • sm_sga <redeem code> <prize> - Command for admins to start the giveaway event (default flag: RCON).
    • sm_startgiveaway <redeem code> <prize> - Same as above.
    • sm_aga - Command for admins to stop the running giveaway (default flag: RCON).
    • sm_abortgiveaway - Same as above.
    • sm_ga <1-100> - Command for players to pick a number in the range 1-100, in order for them to enter the running giveaway.
    • sm_giveaway <1-100> - Same as above.

    Screenshots:





    Installation:
    1. Make sure you have MoreColors.inc installed on your server.
    2. Place the .smx file in addons/sourcemod/plugins
    3. Reload the map and enjoy!

    Changelog:

    Code:
    1.0 - Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source ([TF2] Giveaway.sp - 29 views - 8.4 KB)
    File Type: smx [TF2] Giveaway.smx (15.8 KB, 31 views)
    __________________

    Last edited by StrikeR14; 04-01-2020 at 04:58. Reason: I replaced a reply message in the code
    StrikeR14 is offline
    Mr_panica
    Member
    Join Date: Jan 2017
    Location: Russia, Saint-Petersburg
    Old 04-13-2020 , 08:49   Re: [TF2] Giveaway System
    Reply With Quote #2

    Thanks for the plugin!
    I use it on my Jail Break servers
    __________________
    Sorry for my English.
    Mr_panica 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 19:49.


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