AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Raffle (https://forums.alliedmods.net/showthread.php?t=143682)

NuclearWatermelon 11-23-2010 01:48

[ANY] Raffle
 
4 Attachment(s)
Made with the intention for holding raffles on TF2 trade servers by admins, this plugin ought to work on any source game (not tested on any but TF2) for whatever general purpose you might have for it.

Simply use the below commands to operate the plugin, and enjoy.




Installation:
  • Place smx into plugins folder.
  • Add contents of adminmenu_custom_additions.txt to the adminmenu_custom.txt file for an admin menu interface.




Dependencies:

Commands:
  • sm_raffle (/raffle): Preform a raffle
  • sm_raffle_assign [name] (/raffle_assign [name] [name2] [...]): Add a user to the raffle
  • sm_raffle_remove [name] (/raffle_remove [name] [name2] [...]): Remove a user from the raffle
  • sm_raffle_cancel (/raffle_cancel): Cancel a raffle
  • sm_raffle_list (/raffle_list): Lists all current participants in a raffle


CVars:
  • sm_raffle_version


Version Log:
  • v0.9: Changed from FindTarget to ProcessTargetString
  • v0.8: Removed immunity from targeting (and bots)
  • v0.7: Added logging to raffles
  • v0.6.2: Made sm_raffle_list a public command
  • v0.6.1: Bug fixes related to new features in 0.6
  • v0.6: Added list, cancel, and remove commands
  • v0.5: Added ability to add multiple users at once
  • v0.4: First public release

Matheus28 11-23-2010 06:59

Re: [ANY] Raffle
 
Add an option to add multiple users at once by typing "/raffle_assing omg, lol, test"

NuclearWatermelon 11-23-2010 22:47

Re: [ANY] Raffle
 
Quote:

Originally Posted by Matheus28 (Post 1355014)
Add an option to add multiple users at once by typing "/reffle_assing omg, lol, test"

Added this minus the comma. You can now put in multiple users like:

/raffle_assign user1 user2 user3

Thraka 11-24-2010 01:49

Re: [ANY] Raffle
 
Raffle for what?? Is this just virtual so i would like state I'm about to hold a raffle for X weapon!

If so, it would be cooler to do something like
sm_raffletime 60 //seconds a raffle is held for
sm_startraffle "Description of raffle"

then a player sees the text
Thraka is holding a raffle for [Description of raffle]
Type !raffle in chat to get a ticket...

Then the player would type !raffle (or maybe !ticket?) into chat
You have been assigned raffle ticket #21413

After 60 seconds passes one of the tickets is randomly drawn and everyone sees:
[Name] has won the raffle with ticket #21413!

The player sees
You have won the raffle! Contact [Name of admin starting raffle] for your prize!

NuclearWatermelon 11-24-2010 01:53

Re: [ANY] Raffle
 
Quote:

Originally Posted by Thraka (Post 1355540)
Raffle for what?? Is this just virtual so i would like state I'm about to hold a raffle for X weapon!

If so, it would be cooler to do something like
sm_raffletime 60 //seconds a raffle is held for
sm_startraffle "Description of raffle"

then a player sees the text
Thraka is holding a raffle for [Description of raffle]
Type !raffle in chat to get a ticket...

Then the player would type !raffle (or maybe !ticket?) into chat
You have been assigned raffle ticket #21413

After 60 seconds passes one of the tickets is randomly drawn and everyone sees:
[Name] has won the raffle with ticket #21413!

The player sees
You have won the raffle! Contact [Name of admin starting raffle] for your prize!

The way we've been using it (in tf2) is that everyone who wishes to join the raffle hands an admin one weapon, and they are assigned a raffle number. At the end, we run the raffle and whoever wins gets all items from the pot. Of course, since it works for any SM game currently I am not trying to make it specific to TF2, but such things could be added.

That said, I can see about adding something along the lines of /raffle_freeforall [time] [Description] which people could then join with /raffle_join

Is that sort of what you are asking for?

Matheus28 11-24-2010 06:40

Re: [ANY] Raffle
 
Well, that would be nice.

Thraka 11-24-2010 11:05

Re: [ANY] Raffle
 
ahh gotcha, yah i like both styles really

h00x 11-24-2010 11:24

Re: [ANY] Raffle
 
So does this add the player to the raffle after it shows in chat that an item has been traded/given to an admin for the "raffle pot" and then give them a ticket/number? OR does it allow them to just join?

NuclearWatermelon 11-24-2010 14:29

Re: [ANY] Raffle
 
Quote:

Originally Posted by h00x (Post 1355738)
So does this add the player to the raffle after it shows in chat that an item has been traded/given to an admin for the "raffle pot" and then give them a ticket/number? OR does it allow them to just join?

The admin has to use the /raffle_assign command to give a number to the person who gave them an item for the pot.

We've always done it where we give the number immediately after the trade, but I suppose you could do them all at once now. However, I do believe that doing them immediately following the trade better shows the admin's good intent on the raffle.

Thraka 11-24-2010 17:29

Re: [ANY] Raffle
 
One thing that would make it officinal I think is something like sm_raffleprep

This would post into chat in color
A new raffle is starting! Donate an item to [Admin Name] to be entered to win all donated items.

This way people cant hop on to the server and trick others into giving them items posing as an admin...


All times are GMT -4. The time now is 12:04.

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