[ANY] Roll Giveaway (v1.1 | 20-11-2014)
1 Attachment(s)
[ANY] Roll Giveaway (v1.1 | 01-10-2014)
http://i59.tinypic.com/o9e9us.jpg http://i62.tinypic.com/vnzgc7.jpg 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)- 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). |
Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
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?
|
Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
This is a great idea! Thanks for releasing it!
|
Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
Quote:
|
Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
I wonder who came up with the idea... :roll:
|
Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
Cool plugin. Did you ask the person you made it for if they were okay with you releasing it?
|
Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
Quote:
|
Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
Quote:
|
Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
Quote:
|
Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
Quote:
|
| All times are GMT -4. The time now is 21:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.