Raised This Month: $51 Target: $400
 12% 

[ANY] Roll Giveaway (v1.1 | 20-11-2014)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Plugin ID:
4371
Plugin Version:
v1.1
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Start and stop the ability for players to roll a random number. The highest number rolled wins!
    Old 09-30-2014 , 19:32   [ANY] Roll Giveaway (v1.1 | 20-11-2014)
    Reply With Quote #1

    [ANY] Roll Giveaway (v1.1 | 01-10-2014)


    Picture on left: roll_show "0". Picture on right: roll_show "1".

    Why did I make this plugin?
    Roll Giveaway was originally created as a private plugin requested by an AlliedMods user. After finishing the plugin I was considering the usefulness of it on my own servers and thought I'd share it with the rest of the community.

    What does this plugin do?
    - Roll Giveaway allows admins to start dice roll giveaways meaning everyone can roll a dice and whoever gets the highest number wins! The winner is shown in chat for everyone to see.
    - This plugin can also be used for many other reasons, not just giveaways, so don't feel restricted to using it only for giveaways due to the title.

    Features:
    - Ability to start and stop dice roll giveaways.
    - Winner is announced in chat.
    - Chat colour support using multicolors.inc
    - Configurable translations file.
    - Configurable dice roll conditions.
    - If multiple players get the highest number then a random player out of them will win.

    Commands:
    sm_startroll - Starts a roll giveaway.
    sm_rolldice - Rolls a dice to generate a random number.
    sm_stoproll - Stops a roll giveaway.

    Cvars:
    roll_giveaway_version - Roll Giveaway plugin version.
    roll_min - The minimum number a player can roll.
    roll_max - The maximum number a player can roll.
    roll_show - Should players rolls be shown to everyone?
    roll_playeralive - Should only alive players be able to roll a dice?

    Installation (roll_giveaway.zip):
    - Download roll_giveaway.zip
    - Extract the contents to a location you will remember.
    - Drag and drop the addons folder into the root directory of your server.
    - Done.

    Credits:
    - Thanks to the people that made the multicolors.inc file, you can download it from their GitHub page here.
    - Thanks to Meitis for assisting me when testing the plugin as well as helping fix a few minor bugs.
    - Thanks to Ownkruid for requesting the plugin and allowing me to release it publicly.

    Changelog:
    Code:
    20-11-2014 (v1.1)
    - "sm_roll" changed to "sm_rolldice" to fix conflicts with roll the dice plugins
    
    01-10-2014 (v1.0)
    - Initial release
    Notes:
    - multicolors.inc is required to compile the roll_giveaway.sp (multicolors.inc is included in the zip file if you want to compile the plugin yourself).
    Attached Files
    File Type: zip roll_giveaway.zip (30.9 KB, 923 views)
    __________________
    Steam - Sim
    Request a private plugin
    Not accepting requests at this time

    Last edited by sim242; 01-06-2015 at 03:41.
    sim242 is offline
    Send a message via Skype™ to sim242
    sim242
    AlliedModders Donor
    Join Date: Dec 2012
    Location: England
    Old 10-03-2014 , 10:17   Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
    Reply With Quote #2

    Slightly confused by your English, I understand you want the winner to be given an ak47 but what do you mean with the startroll thing? You want to be able to type !startroll and then it automatically ends after 10-15 seconds?
    __________________
    Steam - Sim
    Request a private plugin
    Not accepting requests at this time
    sim242 is offline
    Send a message via Skype™ to sim242
    ocwoody
    AlliedModders Donor
    Join Date: Nov 2010
    Location: huh
    Old 10-03-2014 , 10:56   Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
    Reply With Quote #3

    This is a great idea! Thanks for releasing it!
    __________________

    ocwoody is offline
    sim242
    AlliedModders Donor
    Join Date: Dec 2012
    Location: England
    Old 10-03-2014 , 11:04   Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
    Reply With Quote #4

    Quote:
    Originally Posted by ocwoody View Post
    This is a great idea! Thanks for releasing it!
    Thanks for the compliment It's my first public plugin.
    __________________
    Steam - Sim
    Request a private plugin
    Not accepting requests at this time
    sim242 is offline
    Send a message via Skype™ to sim242
    Ownkruid
    Senior Member
    Join Date: Nov 2013
    Old 10-03-2014 , 18:24   Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
    Reply With Quote #5

    I wonder who came up with the idea...
    __________________




    Ownkruid is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 10-03-2014 , 19:02   Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
    Reply With Quote #6

    Cool plugin. Did you ask the person you made it for if they were okay with you releasing it?
    Sreaper is offline
    sim242
    AlliedModders Donor
    Join Date: Dec 2012
    Location: England
    Old 10-03-2014 , 22:02   Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
    Reply With Quote #7

    Quote:
    Originally Posted by Sreaper View Post
    Cool plugin. Did you ask the person you made it for if they were okay with you releasing it?
    Yeah I did, he was fine with it. It was Ownkruid, probably going to add him in the credits soon, just forgot when I made the thread and have been busy haha.
    __________________
    Steam - Sim
    Request a private plugin
    Not accepting requests at this time
    sim242 is offline
    Send a message via Skype™ to sim242
    sim242
    AlliedModders Donor
    Join Date: Dec 2012
    Location: England
    Old 10-03-2014 , 22:57   Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
    Reply With Quote #8

    Quote:
    Originally Posted by sim242 View Post
    Yeah I did, he was fine with it. It was Ownkruid, probably going to add him in the credits soon, just forgot when I made the thread and have been busy haha.
    I'll probably look into this as a future update. (Wrong quote, see next page haha)
    __________________
    Steam - Sim
    Request a private plugin
    Not accepting requests at this time

    Last edited by sim242; 10-04-2014 at 08:17.
    sim242 is offline
    Send a message via Skype™ to sim242
    sim242
    AlliedModders Donor
    Join Date: Dec 2012
    Location: England
    Old 10-04-2014 , 08:16   Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
    Reply With Quote #9

    Quote:
    Originally Posted by Emilio3 View Post
    sorry my english is very bad
    yes is this
    you can edit sp please for
    i type !startroll only in chat and stoproll automatically ends in 10-15 or 20 seconds and the winner to be ak47 or other weapons
    would this be possible
    thanks you
    I'll probably look into this as a future update.
    __________________
    Steam - Sim
    Request a private plugin
    Not accepting requests at this time
    sim242 is offline
    Send a message via Skype™ to sim242
    sim242
    AlliedModders Donor
    Join Date: Dec 2012
    Location: England
    Old 10-28-2014 , 12:46   Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
    Reply With Quote #10

    Quote:
    Originally Posted by Emilio3 View Post
    sim242 can you help me for add this in sp
    i am use this plugin in my server l4d2 the only problem is no stop end automatically and in finish roll have not gift for players
    it use on the whole with other plugins opening ammobox sometimes Ships example: rollbox or tankbox,meteorbox,medicbox,matrixbox,etc,etc. only can i put 1 cvars "start_roll" in configuration ammobox, and i need gift for player
    the plugin itself is very good but have not gift i am waiting for you fix this for put forever in my server
    see this, only can 1 cvar
    sm_cvar hm_custombox_name "airstrikebox"
    sm_cvar hm_custombox_name2 "matrixbox"
    sm_cvar hm_custombox_name3 "rollbox"
    sm_cvar hm_custombox_name4 "test4box"
    sm_cvar hm_custombox_name5 "test5box"
    sm_cvar hm_custombox_name6 "test6box"
    sm_cvar hm_custombox_name7 "test7box"
    sm_cvar hm_custombox_command "sm_airstrikeplayer #%userid%"
    sm_cvar hm_custombox_command2 "sm_forcematrix 17"
    sm_cvar hm_custombox_command3 "sm_start_roll"
    I'm quite confused as to what you're asking.. This plugin doesn't give a prize?
    __________________
    Steam - Sim
    Request a private plugin
    Not accepting requests at this time
    sim242 is offline
    Send a message via Skype™ to sim242
    Reply



    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 18:43.


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