AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Roll Giveaway (v1.1 | 20-11-2014) (https://forums.alliedmods.net/showthread.php?t=249129)

sim242 09-30-2014 19:32

[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)
- "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).

sim242 10-03-2014 10:17

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?

ocwoody 10-03-2014 10:56

Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
 
This is a great idea! Thanks for releasing it!

sim242 10-03-2014 11:04

Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
 
Quote:

Originally Posted by ocwoody (Post 2206516)
This is a great idea! Thanks for releasing it!

Thanks for the compliment :) It's my first public plugin.

Ownkruid 10-03-2014 18:24

Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
 
I wonder who came up with the idea... :roll:

Sreaper 10-03-2014 19:02

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?

sim242 10-03-2014 22:02

Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
 
Quote:

Originally Posted by Sreaper (Post 2206708)
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.

sim242 10-03-2014 22:57

Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
 
Quote:

Originally Posted by sim242 (Post 2206763)
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)

sim242 10-04-2014 08:16

Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
 
Quote:

Originally Posted by Emilio3 (Post 2206751)
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.

sim242 10-28-2014 12:46

Re: [ANY] Roll Giveaway (v1.0 | 01-10-2014)
 
Quote:

Originally Posted by Emilio3 (Post 2216870)
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?


All times are GMT -4. The time now is 21:18.

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